Interface IEventChannel

    • Method Detail

      • queueEvent

        void queueEvent​(IEvent event)
        Queues the event to this channel.
        Parameters:
        event - the event to queue.
        See Also:
        queueAndWaitEvent(IEvent)
      • queueAndWaitEvent

        void queueAndWaitEvent​(IEvent event)
        Queues the event to this channel and waits for its processing done. Typically, events created as a result of the user interaction with the UI should be processed synchronously using this method.
        Parameters:
        event - the event to queue.
        See Also:
        queueEvent(IEvent)
      • addListener

        void addListener​(IEventChannelListener listener)
        Adds the given listener to the channel.
        Parameters:
        listener - the listener.
      • removeListener

        void removeListener​(IEventChannelListener listener)
        Removes the given listener from the channel.
        Parameters:
        listener - the listener.