|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.swing.event.EventListenerList
Unsafe:
Field Summary | |
protected Object[] |
listenerList
|
private static Object[] |
NULL_ARRAY
|
Constructor Summary | |
EventListenerList()
Suppressed: |
Method Summary | |
void |
add(Class t,
EventListener l)
Suppressed: Adds the listener as a listener of the specified type. |
int |
getListenerCount()
Suppressed: Returns the total number of listeners for this listener list. |
int |
getListenerCount(Class t)
Suppressed: Returns the total number of listeners of the supplied type for this listener list. |
private int |
getListenerCount(Object[] list,
Class t)
|
Object[] |
getListenerList()
Suppressed: Passes back the event listener list as an array of ListenerType-listener pairs. |
EventListener[] |
getListeners(Class t)
Suppressed: Return an array of all the listeners of the given type. |
private void |
readObject(ObjectInputStream s)
|
void |
remove(Class t,
EventListener l)
Suppressed: Removes the listener as a listener of the specified type. |
String |
toString()
Suppressed: Returns a string representation of the EventListenerList. |
private void |
writeObject(ObjectOutputStream s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final Object[] NULL_ARRAY
protected transient Object[] listenerList
Constructor Detail |
public EventListenerList()
Method Detail |
public Object[] getListenerList()
public EventListener[] getListeners(Class t)
public int getListenerCount()
public int getListenerCount(Class t)
private int getListenerCount(Object[] list, Class t)
public void add(Class t, EventListener l)
t
- the type of the listener to be addedl
- the listener to be addedpublic void remove(Class t, EventListener l)
t
- the type of the listener to be removedl
- the listener to be removedprivate void writeObject(ObjectOutputStream s) throws IOException
IOException
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public String toString()
toString
in class Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |