public class PropertyChangeMonitor extends ChangeMonitor implements java.beans.PropertyChangeListener
ChangeMonitor
to an object that accepts
PropertyChangeListener
s.Constructor and Description |
---|
PropertyChangeMonitor(java.lang.String propertyName)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addTo(java.awt.Container container) |
java.lang.String |
getPropertyName()
Returns the name of the property this monitor listens to.
|
void |
propertyChange(java.beans.PropertyChangeEvent e) |
hasChanged, registerChange, reset
public PropertyChangeMonitor(java.lang.String propertyName)
propertyName
- the name of the property to listen topublic void propertyChange(java.beans.PropertyChangeEvent e)
propertyChange
in interface java.beans.PropertyChangeListener
public java.lang.String getPropertyName()
public void addTo(java.awt.Container container)