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
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class java.util.EventListenerProxy
getListener
-
-
-
-
Constructor Detail
-
PropertyChangeListenerProxy
public PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener)
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 Detail
-
getPropertyName
public String getPropertyName()
Returns the name of the property associated with this listener proxy.- Returns:
- the name of the associated property.
-
propertyChange
public void propertyChange(PropertyChangeEvent event)
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.
-
-