Class DialogEventDispatcher<T extends Event>

  • All Implemented Interfaces:

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

      • DialogEventDispatcher

        public DialogEventDispatcher​(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.
        eventType - the event type to associate with the given eventHandler
        eventHandler - the handler to register, or null to unregister
        NullPointerException - if the event type is null
      • dispatchCapturingEvent

        public final Event dispatchCapturingEvent​(T event)
      • dispatchBubblingEvent

        public final Event dispatchBubblingEvent​(T event)