public class ListenerManager
extends java.lang.Object
Constructor and Description |
---|
ListenerManager(java.lang.String listener_class,
java.lang.String event_class,
java.lang.String method_name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(java.lang.Object l)
Add a listener.
|
boolean |
hasListeners()
_more_
|
void |
removeListener(java.lang.Object l)
Remove a listener.
|
void |
sendEvent(java.util.EventObject event)
Send an event to all registered listeners.
|
void |
sendEventExcludeSource(java.util.EventObject event)
Send an event to all registered listeners, except the named one.
|
public ListenerManager(java.lang.String listener_class, java.lang.String event_class, java.lang.String method_name)
listener_class
- the name of the EventListener class, eg "ucar.unidata.ui.UIChangeListener"event_class
- the name of the Event class, eg "ucar.unidata.ui.UIChangeEvent"method_name
- the name of the EventListener method, eg "processChange". This method must have the signature public void method_name( event_class e)
public void addListener(java.lang.Object l)
l
- listener: must be of type "listener_class"public void removeListener(java.lang.Object l)
l
- public boolean hasListeners()
public void sendEvent(java.util.EventObject event)
event
- the event to be sent: public void method_name( event_class event)public void sendEventExcludeSource(java.util.EventObject event)
event
- the event to be sent: public void method_name( event_class event)