EventListenerProxy
specifically for adding a VetoableChangeListener
with a "constrained" property.
Instances of this class can be added
as VetoableChangeListeners to a bean
which supports firing vetoable change events.
If the object has a getVetoableChangeListeners method
then the array returned could be a mixture of VetoableChangeListener
and VetoableChangeListenerProxy objects.
java.util.EventListenerProxy , VetoableChangeSupport#getVetoableChangeListeners
| Modifier and Type | Field and Description |
|---|---|
| private final String |
| Access | Constructor and Description |
|---|---|
| public | VetoableChangeListenerProxy(String
the name of the property to listen on propertyName, VetoableChangeListener 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 | vetoableChange(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 | |
| VetoableChangeListenerProxy | back to summary |
|---|---|
| public VetoableChangeListenerProxy(String propertyName, VetoableChangeListener listener) Constructor which binds the
| |
| getPropertyName | back to summary |
|---|---|
| public String getPropertyName() Returns the name of the named property associated with the listener.
| |
| vetoableChange | back to summary |
|---|---|
| public void vetoableChange(PropertyChangeEvent event) throws PropertyVetoException Implements java. Forwards the property change event to the listener delegate.
| |