public class WeakEventListenerList extends EventListenerList
listenerList
Constructor and Description |
---|
WeakEventListenerList() |
Modifier and Type | Method and Description |
---|---|
void |
add(Class t,
EventListener l)
Adds the listener as a listener of the specified type.
|
Object[] |
getListenerList() |
EventListener[] |
getListeners(Class t) |
void |
remove(Class t,
EventListener l)
Removes the listener as a listener of the specified type.
|
String |
toString() |
getListenerCount, getListenerCount
public Object[] getListenerList()
getListenerList
in class EventListenerList
public EventListener[] getListeners(Class t)
getListeners
in class EventListenerList
public void add(Class t, EventListener l)
add
in class EventListenerList
t
- the type of the listener to be addedl
- the listener to be addedpublic void remove(Class t, EventListener l)
remove
in class EventListenerList
t
- the type of the listener to be removedl
- the listener to be removedpublic String toString()
toString
in class EventListenerList