|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.app.event.EventListenerList
public class EventListenerList
A generic storage facility for listeners.
Constructor Summary | |
---|---|
EventListenerList()
Creates a new listener list. |
Method Summary | |
---|---|
void |
addListener(java.lang.Class listenerClass,
java.util.EventListener l)
Adds a listener of the given class to the list. |
int |
getListenerCount(java.lang.Class listenerClass)
Returns the number of listeners present of the given class. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerClass)
Returns an array of listeners of the given class. |
void |
removeListener(java.lang.Class listenerClass,
java.util.EventListener l)
Removes a listener of the given class from the list. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EventListenerList()
Method Detail |
---|
public void addListener(java.lang.Class listenerClass, java.util.EventListener l)
listenerClass
- the Class
of the listener being addedl
- the listener to addpublic int getListenerCount(java.lang.Class listenerClass)
listenerClass
- the Class
of the listener for which
the listener count is desired
Class
public java.util.EventListener[] getListeners(java.lang.Class listenerClass)
listenerClass
- the desired Class
of listener
Class
(if no listeners of the specified class exist, an empty
array is returned)public void removeListener(java.lang.Class listenerClass, java.util.EventListener l)
listenerClass
- the Class
of the listener being
removedl
- the listener to remove
|
NextApp Echo3 v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |