public class SimplePropertyChangeSupport
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SimplePropertyChangeSupport(java.lang.Object sourceBean) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a PropertyChangeListener to the listener list.
|
void |
firePropertyChange(PropertyChangeEvent evt)
Fire an existing PropertyChangeEvent to any registered listeners.
|
void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
Report an int bound property update to any registered listeners.
|
void |
firePropertyChange(java.lang.String propertyName,
java.lang.Object oldValue,
java.lang.Object newValue)
Report a bound property update to any registered listeners.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
public SimplePropertyChangeSupport(java.lang.Object sourceBean)
public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be added.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The PropertyChangeListener to be removed.public void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
propertyName
- The programmatic name of the property that was
changed.oldValue
- The old value of the property.newValue
- The new value of the property.public void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
propertyName
- The programmatic name of the property that was
changed.oldValue
- The old value of the property.newValue
- The new value of the property.public void firePropertyChange(PropertyChangeEvent evt)
evt
- The PropertyChangeEvent object.