|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpivot.util.ListenerList<ListListener<T>>
pivot.collections.List.ListListenerList<T>
public static class List.ListListenerList<T>
List listener list implementation.
Constructor Summary | |
---|---|
List.ListListenerList()
|
Method Summary | |
---|---|
void |
comparatorChanged(List<T> list,
java.util.Comparator<T> previousComparator)
Called when a list's comparator has changed. |
void |
itemInserted(List<T> list,
int index)
Called when an item has been inserted into a list. |
void |
itemsRemoved(List<T> list,
int index,
Sequence<T> items)
Called when items have been removed from a list. |
void |
itemUpdated(List<T> list,
int index,
T previousItem)
Called when a list item has been updated. |
Methods inherited from class pivot.util.ListenerList |
---|
add, iterator, remove |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public List.ListListenerList()
Method Detail |
---|
public void itemInserted(List<T> list, int index)
ListListener
itemInserted
in interface ListListener<T>
list
- The source of the list event.index
- The index at which the item was added.public void itemsRemoved(List<T> list, int index, Sequence<T> items)
ListListener
itemsRemoved
in interface ListListener<T>
list
- The source of the list event.index
- The starting index from which items have been removed.items
- The items that were removed from the list, or null if the list
was cleared.public void itemUpdated(List<T> list, int index, T previousItem)
ListListener
itemUpdated
in interface ListListener<T>
list
- The source of the list event.index
- The index of the item that was updated.previousItem
- The item that was previously stored at index.public void comparatorChanged(List<T> list, java.util.Comparator<T> previousComparator)
ListListener
comparatorChanged
in interface ListListener<T>
list
- The source of the event.previousComparator
- The previous comparator value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |