Class NFEEventSupport<U extends java.util.EventListener>

  • Type Parameters:
    U - The type of EventListener subclass

    public class NFEEventSupport<U extends java.util.EventListener>
    extends java.lang.Object
    Utility class used to subscribe and remove listener used by class which fire model events.
    • Constructor Summary

      Constructors 
      Constructor Description
      NFEEventSupport()
      Allocates a new NFEEventSupport object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addListener​(U listener)
      Adds a new listener
      java.util.Collection<U> getListeners()
      Gets all the listeners
      void removeListener​(U listener)
      Removes a listener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NFEEventSupport

        public NFEEventSupport()
        Allocates a new NFEEventSupport object
    • Method Detail

      • addListener

        public void addListener​(U listener)
        Adds a new listener
        Parameters:
        listener - listener
      • removeListener

        public void removeListener​(U listener)
        Removes a listener
        Parameters:
        listener -
      • getListeners

        public java.util.Collection<U> getListeners()
        Gets all the listeners
        Returns:
        listeners