|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.util.ListenerList<ListListener<T>>
org.apache.pivot.collections.List.ListListenerList<T>
public static class List.ListListenerList<T>
List listener list.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.apache.pivot.collections.ListListener |
---|
ListListener.Adapter<T> |
Constructor Summary | |
---|---|
List.ListListenerList()
|
Method Summary | |
---|---|
void |
comparatorChanged(List<T> list,
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. |
void |
listCleared(List<T> list)
Called when list data has been reset. |
Methods inherited from class org.apache.pivot.util.ListenerList |
---|
add, contains, get, getLength, isEmpty, iterator, remove, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.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 listCleared(List<T> list)
ListListener
listCleared
in interface ListListener<T>
list
- The source of the list event.public void comparatorChanged(List<T> list, 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 |