Interface Listenable

    • Method Detail

      • addListener

        void addListener​(Object listener)
        Adds a listener to the component. Typically, listeners would need to be annotated with Listener and further to that, contain methods annotated appropriately, otherwise the listener will not be registered.

        See the Listener annotation for more information.

        listener - must not be null.
      • removeListener

        void removeListener​(Object listener)
        Removes a listener from the component.
        listener - listener to remove. Must not be null.
        IllegalLifecycleStateException - may be thrown if the Listenable is stopped.
      • getListeners

        Set<Object> getListeners()
        a set of all listeners registered on this component.