Package java.beans
Class PropertyChangeListenerProxy
java.lang.Object
java.util.EventListenerProxy
java.beans.PropertyChangeListenerProxy
- All Implemented Interfaces:
PropertyChangeListener,EventListener
public class PropertyChangeListenerProxy extends EventListenerProxy implements PropertyChangeListener
The implementation of this listener proxy just delegates the received events
to its listener.
-
Constructor Summary
Constructors Constructor Description PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener)Creates a new listener proxy that associates a listener with a property name. -
Method Summary
Modifier and Type Method Description StringgetPropertyName()Returns the name of the property associated with this listener proxy.voidpropertyChange(PropertyChangeEvent event)The source bean calls this method when an event is raised.
-
Constructor Details
-
PropertyChangeListenerProxy
Creates a new listener proxy that associates a listener with a property name.- Parameters:
propertyName- the name of the associated property.listener- the listener to delegate incoming events to.
-
-
Method Details
-
getPropertyName
Returns the name of the property associated with this listener proxy.- Returns:
- the name of the associated property.
-
propertyChange
Description copied from interface:PropertyChangeListenerThe source bean calls this method when an event is raised.- Specified by:
propertyChangein interfacePropertyChangeListener- Parameters:
event- thePropertyChangeEventobject which contains the name and the old and new value of the property that has changed.
-