Name

Class java.beans.PropertyChangeSupport

Description

PropertyChangeSupport handles the registration and unregistration of property change listeners, and implements the firing of arbitrary property change events. The class is designed so that you can either inherit from it, or you can delegate work to an instance of it.

Class Definition

public class PropertyChangeSupport implements java.io.Serializable 
{
   // constructors
   public PropertyChangeSupport(Object sourceBean);
   
   // methods
   public synchronized void addPropertyChangeListener(
                                PropertyChangeListener listener);
   public void firePropertyChange(String propertyName, 
                                Object oldValue, Object newValue);
   public synchronized void removePropertyChangeListener(
                                PropertyChangeListener listener);
}

See Also

PropertyChangeListener

Get Developing Java Beans now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.