EventListenerProxy
specifically for adding a PropertyChangeListener
with a "bound" property.
Instances of this class can be added
as PropertyChangeListeners to a bean
which supports firing property change events.
If the object has a getPropertyChangeListeners method
then the array returned could be a mixture of PropertyChangeListener
and PropertyChangeListenerProxy objects.
java.util.EventListenerProxy , PropertyChangeSupport#getPropertyChangeListeners
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public | PropertyChangeListenerProxy(String
the name of the property to listen on propertyName, PropertyChangeListener the listener object listener)Constructor which binds the |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the name of the named property associated with the listenerReturns the name of the named property associated with the listener. |
| public void | propertyChange(PropertyChangeEvent
the property change event event)Implements java. Forwards the property change event to the listener delegate. |
| propertyName | back to summary |
|---|---|
| private final String propertyName | |
| PropertyChangeListenerProxy | back to summary |
|---|---|
| public PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener) Constructor which binds the
| |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName() Returns the name of the named property associated with the listener.
| |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent event) Implements java. Forwards the property change event to the listener delegate.
| |