Interface EventObserver<T>

    • Method Detail

      • addListener

        void addListener​(EventListener listener)
        Adds listener to this EventObserver, adding the same listener a second time has no effect.
        Parameters:
        listener - the listener to add
        Throws:
        NullPointerException - in case listener is null
      • removeListener

        void removeListener​(EventListener listener)
        Removes listener from this EventObserver
        Parameters:
        listener - the listener to remove
      • addDataListener

        void addDataListener​(EventDataListener<T> listener)
        Adds listener to this EventObserver, adding the same listener a second time has no effect.
        Parameters:
        listener - the listener to add
        Throws:
        NullPointerException - in case listener is null
      • removeDataListener

        void removeDataListener​(EventDataListener<T> listener)
        Removes listener from this EventObserver
        Parameters:
        listener - the listener to remove