|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public static interface ActiveList.Delegate<T>
Interface for delegates that get notified on changes to instances
of ActiveList.
| Method Summary | |
|---|---|
void |
onItemAdded(ActiveList<T> list,
T item,
int index)
This method is called whenever an item is added to an ActiveList instance. |
void |
onItemRemoved(ActiveList<T> list,
T item,
int index)
This method is called whenever an individual item is removed from an ActiveList instance. |
void |
onItemsReordered(ActiveList<T> list)
This method is called whenever items get reordered in an ActiveList instance. |
void |
onItemUpdated(ActiveList<T> list,
T item,
int index)
This method is called whenever an item is updated. |
void |
onRangeAdded(ActiveList<T> list,
T[] items,
int start)
This method is called whenever a contiguous range of items is added to an ActiveList instance. |
void |
onRangeRemoved(ActiveList<T> list,
T[] items,
int start)
This method is called whenever a range of items is removed from an ActiveList instance. |
| Method Detail |
|---|
void onItemUpdated(ActiveList<T> list,
T item,
int index)
ActiveList instance notifies this
instance that is was updated via its update mechanism.
list - non-null; the list which was notifieditem - null-ok; the item that was updatedindex - >= 0; the index that the item is at
void onItemAdded(ActiveList<T> list,
T item,
int index)
ActiveList instance.
list - non-null; the list which was modifieditem - null-ok; the item that was addedindex - >= 0; the index that the item was added
(inserted) at
void onRangeAdded(ActiveList<T> list,
T[] items,
int start)
ActiveList instance.
list - non-null; the list which was modifieditems - non-null; array containing the items that were addedstart - >= 0; the start index that the range was added
(inserted) at
void onItemRemoved(ActiveList<T> list,
T item,
int index)
ActiveList instance. For example, StdActiveList.removeItem(java.lang.Object) or and StdActiveList.removeItemAt(int) are two concrete methods that remove
individual items from an instance.
list - non-null; the list which was modifieditem - null-ok; the item that was removedindex - >= 0; the index that the item was removed from
void onRangeRemoved(ActiveList<T> list,
T[] items,
int start)
ActiveList instance. For example, StdActiveList.removeRange(int, int) and StdActiveList.removeAllItems()
are two concrete methods that remove ranges of items from an
instance.
list - non-null; the list which was modifieditems - non-null; array containing the removed itemsstart - >= 0; the start index that the items were
removed fromvoid onItemsReordered(ActiveList<T> list)
ActiveList instance. For example, StdActiveList.sort(java.util.Comparator) is
a concrete method that reorders the items of an instance.
list - non-null; the list which was modified
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||