|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.errai.databinding.client.UnspecificListChangeHandler<M>
M
- public abstract class UnspecificListChangeHandler<M>
A BindableListChangeHandler
that can be used in case details of the underlying list
mutation are irrelevant (when the sole information that the list has changed is sufficient).
Constructor Summary | |
---|---|
UnspecificListChangeHandler()
|
Method Summary | |
---|---|
void |
onItemAdded(List<M> source,
M item)
Called when a single item has been appended to the list. |
void |
onItemAddedAt(List<M> source,
int index,
M item)
Called when a single item has been added to the list at the provided index. |
void |
onItemChanged(List<M> source,
int index,
M item)
Called when a single item has been changed. |
void |
onItemRemovedAt(List<M> source,
int index)
Called when a single item has been removed from the list at the provided index. |
void |
onItemsAdded(List<M> source,
Collection<? extends M> items)
Called when multiple items have been appended to the list. |
void |
onItemsAddedAt(List<M> source,
int index,
Collection<? extends M> items)
Called when multiple items have been added to the list starting at the provided index. |
void |
onItemsCleared(List<M> source)
Called when all items have been removed from the list. |
void |
onItemsRemovedAt(List<M> source,
List<Integer> indexes)
Called when multiple items have been removed from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UnspecificListChangeHandler()
Method Detail |
---|
public void onItemAdded(List<M> source, M item)
BindableListChangeHandler
onItemAdded
in interface BindableListChangeHandler<M>
source
- a list representing the state before the item was appended (equal to the old value of the
list). Never null.item
- the added item. May be null.public void onItemAddedAt(List<M> source, int index, M item)
BindableListChangeHandler
onItemAddedAt
in interface BindableListChangeHandler<M>
source
- a list representing the state before the item was added (equal to the old value of the
list). Never null.index
- the index at which the item has been added.item
- the added item. May be null.public void onItemsAdded(List<M> source, Collection<? extends M> items)
BindableListChangeHandler
onItemsAdded
in interface BindableListChangeHandler<M>
source
- a list representing the state before the items were appended (equal to the old value of
the list). Never null.items
- the added items. May contain null elements.public void onItemsAddedAt(List<M> source, int index, Collection<? extends M> items)
BindableListChangeHandler
onItemsAddedAt
in interface BindableListChangeHandler<M>
source
- a list representing the state before the items were added (equal to the old value of
the list). Never null.index
- the index at which the items have been added.public void onItemsCleared(List<M> source)
BindableListChangeHandler
onItemsCleared
in interface BindableListChangeHandler<M>
source
- a list representing the state before all items were removed (equal to the old value of
the list). Never null.public void onItemRemovedAt(List<M> source, int index)
BindableListChangeHandler
onItemRemovedAt
in interface BindableListChangeHandler<M>
source
- a list representing the state before the item was removed (equal to the old value of
the list). Never null.index
- the index at which the item has been removed.public void onItemsRemovedAt(List<M> source, List<Integer> indexes)
BindableListChangeHandler
onItemsRemovedAt
in interface BindableListChangeHandler<M>
source
- a list representing the state before the items were removed (equal to the old value of
the list). Never null.public void onItemChanged(List<M> source, int index, M item)
BindableListChangeHandler
onItemChanged
in interface BindableListChangeHandler<M>
source
- a list representing the state before the item was changed (equal to the old value of
the list). Never null.index
- the index of the item that has changed.item
- the new value of the item at the provided index.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |