Package org.eclipse.draw2d
Class EventListenerList
java.lang.Object
org.eclipse.draw2d.EventListenerList
This class is intended for internal use only. TODO: If this is for internal
use only, we should move it to the internal package.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidaddListener(Class<T> c, Object listener) Adds a listener of type c to the list.<T> booleancontainsListener(Class<T> c) Returnstrueif this list of listeners contains a listener of type c.<T> Iterator<T> getListeners(Class<T> listenerType) Returns an Iterator of all the listeners of type c.<T> Iterable<T> getListenersIterable(Class<T> listenerType) Returns a typed Iterable of all listeners of a of type c.<T> voidremoveListener(Class<T> c, Object listener) Removes the first listener of the specified type by identity.
-
Constructor Details
-
EventListenerList
public EventListenerList()
-
-
Method Details
-
addListener
Adds a listener of type c to the list.- Parameters:
c- the classlistener- the listener
-
containsListener
Returnstrueif this list of listeners contains a listener of type c.- Parameters:
c- the type- Returns:
- whether this list contains a listener of type c
-
getListeners
Returns an Iterator of all the listeners of type c.- Parameters:
listenerType- the type- Returns:
- an Iterator of all the listeners of type c
-
getListenersIterable
Returns a typed Iterable of all listeners of a of type c.- Parameters:
listenerType- the type- Returns:
- an Iterable of all the listeners of type c
- Since:
- 3.13
-
removeListener
Removes the first listener of the specified type by identity.- Parameters:
c- the typelistener- the listener
-