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 SummaryConstructors
- 
Method SummaryModifier 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- 
EventListenerListpublic EventListenerList()
 
- 
- 
Method Details- 
addListenerAdds a listener of type c to the list.- Parameters:
- c- the class
- listener- the listener
 
- 
containsListenerReturnstrueif this list of listeners contains a listener of type c.- Parameters:
- c- the type
- Returns:
- whether this list contains a listener of type c
 
- 
getListenersReturns an Iterator of all the listeners of type c.- Parameters:
- listenerType- the type
- Returns:
- an Iterator of all the listeners of type c
 
- 
getListenersIterableReturns 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
 
- 
removeListenerRemoves the first listener of the specified type by identity.- Parameters:
- c- the type
- listener- the listener
 
 
-