public class PropertyChangeListenerProxy extends EventListenerProxy implements PropertyChangeListener
| Constructor and Description |
|---|
PropertyChangeListenerProxy(String propertyName,
PropertyChangeListener listener)
Creates a new listener proxy that associates a listener with a property
name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getPropertyName()
Returns the name of the property associated with this listener proxy.
|
void |
propertyChange(PropertyChangeEvent event)
The source bean calls this method when an event is raised.
|
getListenerpublic PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener)
propertyName - the name of the associated property.listener - the listener to delegate incoming events to.public String getPropertyName()
public void propertyChange(PropertyChangeEvent event)
PropertyChangeListenerpropertyChange in interface PropertyChangeListenerevent - the PropertyChangeEvent object which contains the name
and the old and new value of the property that has changed.