public final class EventListenerList
extends java.lang.Object
| Constructor and Description |
|---|
EventListenerList() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(java.lang.Class c,
java.lang.Object listener)
Adds a listener of type c to the list.
|
boolean |
containsListener(java.lang.Class c)
Returns
true if this list of listeners contains a listener
of type c. |
java.util.Iterator |
getListeners(java.lang.Class listenerType)
Returns an Iterator of all the listeners of type c.
|
void |
removeListener(java.lang.Class c,
java.lang.Object listener)
Removes the first listener of the specified type by identity.
|
public void addListener(java.lang.Class c,
java.lang.Object listener)
c - the classlistener - the listenerpublic boolean containsListener(java.lang.Class c)
true if this list of listeners contains a listener
of type c.c - the typepublic java.util.Iterator getListeners(java.lang.Class listenerType)
listenerType - the typepublic void removeListener(java.lang.Class c,
java.lang.Object listener)
c - the typelistener - the listenerCopyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.