java.beans
Class PropertyChangeListenerProxy
java.lang.Object
|
+--java.util.EventListenerProxy
|
+--java.beans.PropertyChangeListenerProxy
All Implemented Interfaces:
PropertyChangeListener, EventListener
This class provides an extension to PropertyChangeListener
-
associating a name with the listener. This can be used to filter the
changes that one is interested in.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
PropertyChangeListenerProxy
public PropertyChangeListenerProxy(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Create a new proxy which filters property change events and only passes
changes to the named property on to the delegate. A null propertyName
or listener does not fail now, but may cause a NullPointerException down
the road.
Parameters:
getPropertyName
public String getPropertyName()
Gets the name of the property this proxy is filtering on.
Returns:
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent event)
Forwards the event on to the delegate if the property name matches.
Parameters:
Throws:
PropertyChangeListener
- associating a name with the listener. This can be used to filter the changes that one is interested in.