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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.