public class SimplePropertyChangeSupport extends Object implements Serializable
Constructor and Description |
---|
SimplePropertyChangeSupport(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(String propertyName,
int oldValue,
int newValue)
Report an int bound property update to any registered listeners.
|
void |
firePropertyChange(String propertyName,
Object oldValue,
Object newValue)
Report a bound property update to any registered listeners.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a PropertyChangeListener from the listener list.
|
public SimplePropertyChangeSupport(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(String propertyName, Object oldValue, 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(String propertyName, int oldValue, int newValue)
This is merely a convenience wrapper around the more general firePropertyChange method that takes Object values.
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.Copyright © 2012. All Rights Reserved.