Class ConnectEventDispatcher<T extends Event>

  • All Implemented Interfaces:
    EventDispatcher

    public class ConnectEventDispatcher<T extends Event>
    extends Object
    implements EventDispatcher
    An EventDispatcher which handles ConnectStateEvent's registration and when used in an event dispatch chain it forwards the received events to the appropriate registered handlers.
    • Constructor Detail

      • ConnectEventDispatcher

        public ConnectEventDispatcher​(Object eventSource)
    • Method Detail

      • setEventHandler

        public final void setEventHandler​(EventType<T> eventType,
                                          EventHandler<? super T> eventHandler)
        Sets the specified singleton handler. There can only be one such handler specified at a time.
        Parameters:
        eventType - the event type to associate with the given eventHandler
        eventHandler - the handler to register, or null to unregister
        Throws:
        NullPointerException - if the event type is null
      • dispatchCapturingEvent

        public final Event dispatchCapturingEvent​(T event)
      • dispatchBubblingEvent

        public final Event dispatchBubblingEvent​(T event)