Interface EventListenersContainer


  • public interface EventListenersContainer
    The container interface for EventListenerItem instances. This is responsible for registering all the event listener item.
    Version:
    $Id$
    • Method Detail

      • setEventListenerItems

        void setEventListenerItems​(List<EventListenerItem> eventListenerItems)
        Sets event listener items.

        Note: Implementations could store the event listener items into a copied list. So, the argument should not be assumed as a mutable list.

        Parameters:
        eventListenerItems -
      • addEventListenerItem

        void addEventListenerItem​(EventListenerItem eventListenerItem)
        Adds an event listener item.
        Parameters:
        eventListenerItem -
      • removeEventListenerItem

        boolean removeEventListenerItem​(EventListenerItem eventListenerItem)
        Removes an event listener item.
        Parameters:
        eventListenerItem -
        Returns:
        Returns true if removed.
      • getEventListenerItems

        List<EventListenerItem> getEventListenerItems()
        Returns a list of the event listener items.

        Note: Implementations could return a copied list of the event listener items. So, the return should not be assumed as a mutable list.

      • start

        void start()
        Registers all event listener items and starts the event listener container.
      • stop

        void stop()
        Removes all event listener items and stop the event listener container.