Interface EventManager

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addListener​(java.lang.Object listener)
      Add an event listener.
      java.lang.Exception[] fireEvent​(java.lang.Object event)
      Fire the given event to all listeners, returning any exceptions.
      java.util.Collection getListeners()
      Return a read-only list of listeners.
      boolean hasListener​(java.lang.Object listener)
      Return whether the given instance is in the list of listeners.
      boolean hasListeners()
      Return true if there are any registered listeners.
      boolean removeListener​(java.lang.Object listener)
      Remove an event listener.
    • Method Detail

      • addListener

        void addListener​(java.lang.Object listener)
        Add an event listener.
      • removeListener

        boolean removeListener​(java.lang.Object listener)
        Remove an event listener.
      • hasListener

        boolean hasListener​(java.lang.Object listener)
        Return whether the given instance is in the list of listeners.
      • hasListeners

        boolean hasListeners()
        Return true if there are any registered listeners.
      • getListeners

        java.util.Collection getListeners()
        Return a read-only list of listeners.
      • fireEvent

        java.lang.Exception[] fireEvent​(java.lang.Object event)
        Fire the given event to all listeners, returning any exceptions.