Interface IEventDispatcher
- All Superinterfaces:
IEventChannel
,Serializable
- All Known Implementing Classes:
EventDispatcher
This class is responsible for distributing events to the Listeners, they can be chained forward to their parents.
- Since:
- 5.0
- Author:
- O. Kerpershoek, F. v.d. Meer
-
Method Summary
Modifier and TypeMethodDescriptionvoid
This method will forward the specified event to all listeners registered to the dispatcher, and optionally forward the event to the parent dispatcher when available.void
setParent
(IEventDispatcher parent) This method may be used to specify the parent event dispatcher.Methods inherited from interface com.aquima.interactions.foundation.events.IEventChannel
addEventListener, getSupportedEvents, removeEventListener
-
Method Details
-
setParent
This method may be used to specify the parent event dispatcher. The parent dispatcher is invoked after the listeners of this dispatcher have been notified of the event.- Parameters:
parent
- The parent event dispatcher.
-
fireEvent
This method will forward the specified event to all listeners registered to the dispatcher, and optionally forward the event to the parent dispatcher when available.- Parameters:
eventObj
- Implementation of the IEvent class.
-