|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectyu.ac.bg.etf.javaqx.core.events.EventListenerList
EventListener List.
NOTE: This class is not full compatible with javax.swing.event.EventListenerList class!
Constructor Summary | |
EventListenerList()
Constructs new EventListenerList object. |
Method Summary | |
void |
add(java.lang.Class listenerType,
java.util.EventListener listener)
Adds new listener. |
boolean |
containsListener(java.lang.Class listenerType,
java.util.EventListener listener)
Returns true if the specified listener is added. |
int |
getListenerCount()
Returns the number of listener groups. |
int |
getListenerCount(java.lang.Class listenerType)
Returns the number of listeners specified by the listener type. |
int |
getListenerGroupsCount()
Returns the number of listener groups. |
java.util.EventListener[] |
getListeners(java.lang.Class listenerType)
Returns listeners specified by the listener type. |
java.util.EventListener[] |
getListenersArray(java.lang.Class listenerType)
Returns listeners specified by the listener type. |
void |
remove(java.lang.Class listenerType,
java.util.EventListener listener)
Removes specified listener. |
void |
removeAll()
Removes all listeners. |
void |
removeAll(java.lang.Class listenerType)
Removes all listeners of the specified type. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public EventListenerList()
Method Detail |
public void add(java.lang.Class listenerType, java.util.EventListener listener)
listenerType
- the type of the listenerlistener
- the listenerpublic void remove(java.lang.Class listenerType, java.util.EventListener listener)
listenerType
- the type of the listenerlistener
- the listener to be removedpublic void removeAll(java.lang.Class listenerType)
listenerType
- the listener typepublic void removeAll()
public int getListenerCount()
public int getListenerCount(java.lang.Class listenerType)
listenerType
- the type of the listener
public int getListenerGroupsCount()
public boolean containsListener(java.lang.Class listenerType, java.util.EventListener listener)
listenerType
- the type of the listenerlistener
- the listener
public java.util.EventListener[] getListeners(java.lang.Class listenerType)
listenerType
- the type of the listener
public java.util.EventListener[] getListenersArray(java.lang.Class listenerType)
WARNING: This method does not return copy of listeners!
listenerType
- the type of the listener
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |