Interface IEventDispatcher

All Superinterfaces:
IEventChannel, Serializable
All Known Implementing Classes:
EventDispatcher

public interface IEventDispatcher extends IEventChannel
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 Type
    Method
    Description
    void
    fireEvent(IEvent eventObj)
    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
    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

      void setParent(IEventDispatcher parent)
      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

      void fireEvent(IEvent eventObj)
      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.