Class PropertyChangeNotifier

  • All Implemented Interfaces:

    
    public class PropertyChangeNotifier
    
                        

    Represents a source of PropertyChangeEvents which notifies PropertyChangeListeners about changes in the values of properties.

    Author:

    Lyubomir Marinov

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      PropertyChangeNotifier() Initializes a new PropertyChangeNotifier instance.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void addPropertyChangeListener(PropertyChangeListener listener) Adds a specific PropertyChangeListener to the list of listeners interested in and notified about changes in the values of the properties of this PropertyChangeNotifier.
      void removePropertyChangeListener(PropertyChangeListener listener) Removes a specific PropertyChangeListener from the list of listeners interested in and notified about changes in the values of the properties of this PropertyChangeNotifer.
      • Methods inherited from class java.lang.Object

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

      • PropertyChangeNotifier

        PropertyChangeNotifier()
        Initializes a new PropertyChangeNotifier instance.
    • Method Detail

      • addPropertyChangeListener

         void addPropertyChangeListener(PropertyChangeListener listener)

        Adds a specific PropertyChangeListener to the list of listeners interested in and notified about changes in the values of the properties of this PropertyChangeNotifier.

        Parameters:
        listener - a PropertyChangeListener to be notified about changes in the values of the properties of this PropertyChangeNotifier.
      • removePropertyChangeListener

         void removePropertyChangeListener(PropertyChangeListener listener)

        Removes a specific PropertyChangeListener from the list of listeners interested in and notified about changes in the values of the properties of this PropertyChangeNotifer.

        Parameters:
        listener - a PropertyChangeListener to no longer be notified about changes in the values of the properties of this PropertyChangeNotifier