public interface IlvEventDispatcher
IlvEventDispatcher
defines the behavior of a class that can
register GenericEventListeners
and dispatch arbitrary events
to them.Modifier and Type | Method and Description |
---|---|
void |
addListener(GenericEventListener listener)
Add the specified
listener so that it will receive all events
published by this dispatcher. |
void |
publish(EventObject event)
Publishes an event to all registered listeners.
|
void |
removeListener(GenericEventListener listener)
Remove the specified
listener so that it no longer receives
any events published by this dispatcher. |
void addListener(GenericEventListener listener)
listener
so that it will receive all events
published by this dispatcher.listener
- The listener which will be subscribed to subsequent
GenericEventListener
events.void removeListener(GenericEventListener listener)
listener
so that it no longer receives
any events published by this dispatcher.listener
- The listener which will be unsubscribed from receiving
GenericEventListener
events.void publish(EventObject event)
event
- The event.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.