Package java.beans

Class PropertyChangeListenerProxy

java.lang.Object
java.util.EventListenerProxy
java.beans.PropertyChangeListenerProxy
All Implemented Interfaces:
PropertyChangeListener, EventListener

public class PropertyChangeListenerProxy
extends EventListenerProxy
implements PropertyChangeListener
The implementation of this listener proxy just delegates the received events to its listener.
  • Constructor Details

    • PropertyChangeListenerProxy

      public PropertyChangeListenerProxy​(String propertyName, PropertyChangeListener listener)
      Creates a new listener proxy that associates a listener with a property name.
      Parameters:
      propertyName - the name of the associated property.
      listener - the listener to delegate incoming events to.
  • Method Details

    • getPropertyName

      public String getPropertyName()
      Returns the name of the property associated with this listener proxy.
      Returns:
      the name of the associated property.
    • propertyChange

      public void propertyChange​(PropertyChangeEvent event)
      Description copied from interface: PropertyChangeListener
      The source bean calls this method when an event is raised.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      event - the PropertyChangeEvent object which contains the name and the old and new value of the property that has changed.