public class

VetoableChangeListenerProxy

extends EventListenerProxy
implements VetoableChangeListener
java.lang.Object
   ↳ java.util.EventListenerProxy
     ↳ java.beans.VetoableChangeListenerProxy

Class Overview

A class which extends the EventListenerProxy specifically for associating a VetoableChangeListener with a "constrained" property. Instances of this class can be added as a VetoableChangeListener to a bean which supports firing VetoableChange events.

If the object has a getVetoableChangeListeners() method then the array returned could be a mixture of VetoableChangeListener and VetoableChangeListenerProxy objects.

Summary

Public Constructors
VetoableChangeListenerProxy(String propertyName, VetoableChangeListener listener)
Public Methods
String getPropertyName()
Returns the name of the named property associated with the listener.
void vetoableChange(PropertyChangeEvent evt)
Forwards the property change event to the listener delegate.
[Expand]
Inherited Methods
From class java.util.EventListenerProxy
From class java.lang.Object
From interface java.beans.VetoableChangeListener

Public Constructors

public VetoableChangeListenerProxy (String propertyName, VetoableChangeListener listener)

Parameters
propertyName The name of the property to listen on.
listener The listener object

Public Methods

public String getPropertyName ()

Returns the name of the named property associated with the listener.

public void vetoableChange (PropertyChangeEvent evt)

Forwards the property change event to the listener delegate.

Parameters
evt the property change event
Throws
PropertyVetoException if the recipient wishes the property change to be rolled back.