public class ListenerList<T> extends ArrayList<T>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ListenerList.Op<L>
|
| Constructor and Description |
|---|
ListenerList() |
| Modifier and Type | Method and Description |
|---|---|
static <L> ListenerList<L> |
addListener(ListenerList<L> list,
L listener)
Adds the supplied listener to the supplied list.
|
static <L,K> void |
addListener(Map<K,ListenerList<L>> map,
K key,
L listener)
Adds a listener to the listener list in the supplied map.
|
void |
notify(ListenerList.Op<T> op)
Applies a notification to all listeners in this list.
|
static <L,K> void |
removeListener(Map<K,ListenerList<L>> map,
K key,
L listener)
Removes a listener from the supplied list in the supplied map.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringcontainsAll, equals, hashCodepublic static <L> ListenerList<L> addListener(ListenerList<L> list, L listener)
public static <L,K> void addListener(Map<K,ListenerList<L>> map, K key, L listener)
public static <L,K> void removeListener(Map<K,ListenerList<L>> map, K key, L listener)
public void notify(ListenerList.Op<T> op)
Copyright © 2013. All Rights Reserved.