| |
|
| java.lang.Object java.beans.PropertyChangeSupport
PropertyChangeSupport | public class PropertyChangeSupport implements java.io.Serializable(Code) | | This is a utility class that can be used by beans that support bound
properties. You can use an instance of this class as a member field
of your bean and delegate various work to it.
This class is serializable. When it is serialized it will save
(and restore) any listeners that are themselves serializable. Any
non-serializable listeners will be skipped during serialization.
|
serialVersionUID | final static long serialVersionUID(Code) | | Serialization version ID, so we're compatible with JDK 1.1
|
PropertyChangeSupport | public PropertyChangeSupport(Object sourceBean)(Code) | | Constructs a PropertyChangeSupport object.
Parameters: sourceBean - The bean to be given as the source for any events. |
addPropertyChangeListener | public synchronized void addPropertyChangeListener(PropertyChangeListener listener)(Code) | | Add a PropertyChangeListener to the listener list.
The listener is registered for all properties.
Parameters: listener - The PropertyChangeListener to be added |
firePropertyChange | public void firePropertyChange(String propertyName, Object oldValue, Object newValue)(Code) | | Report a bound property update to any registered listeners.
No event is fired if old and new are equal and non-null.
Parameters: propertyName - The programmatic name of the propertythat was changed. Parameters: oldValue - The old value of the property. Parameters: newValue - The new value of the property. |
removePropertyChangeListener | public synchronized void removePropertyChangeListener(PropertyChangeListener listener)(Code) | | Remove a PropertyChangeListener from the listener list.
This removes a PropertyChangeListener that was registered
for all properties.
Parameters: listener - The PropertyChangeListener to be removed |
|
|
|