public interface BindableListChangeHandler<M>
BindableListWrapper
).Modifier and Type | Method and Description |
---|---|
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.
|
void onItemAdded(List<M> source, M item)
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.void onItemAddedAt(List<M> source, int index, M item)
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.void onItemsAdded(List<M> source, Collection<? extends M> items)
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.void onItemsAddedAt(List<M> source, int index, Collection<? extends M> items)
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.item
- the added items. May contain null elements.void onItemsCleared(List<M> source)
source
- a list representing the state before all items were removed (equal to the old value of
the list). Never null.void onItemRemovedAt(List<M> source, int index)
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.void onItemsRemovedAt(List<M> source, List<Integer> indexes)
source
- a list representing the state before the items were removed (equal to the old value of
the list). Never null.index
- the indexes at which items have been removed.void onItemChanged(List<M> source, int index, M item)
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.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.