Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.beans

Class VetoableChangeListenerProxy

java.lang.Object
|
+--java.util.EventListenerProxy
   |
   +--java.beans.VetoableChangeListenerProxy

All Implemented Interfaces:

VetoableChangeListener, EventListener


public class VetoableChangeListenerProxy

extends EventListenerProxy

implements VetoableChangeListener

This class provides an extension to VetoableChangeListener - associating a name with the listener. This can be used to filter the changes that one is interested in.

Since:Author:

Constructor Summary

VetoableChangeListenerProxy(java.lang.String propertyName, java.beans.VetoableChangeListener listener)

Create a new proxy which filters property change events and only passes changes to the named property on to the delegate.

Method Summary

java.lang.StringgetPropertyName()

Gets the name of the property this proxy is filtering on.
voidvetoableChange(java.beans.PropertyChangeEvent event)

Forwards the event on to the delegate if the property name matches.

Constructor Details

VetoableChangeListenerProxy

public VetoableChangeListenerProxy(java.lang.String propertyName, java.beans.VetoableChangeListener listener)

Create a new proxy which filters property change events and only passes changes to the named property on to the delegate.

Parameters:


Method Details

getPropertyName

public String getPropertyName()

Gets the name of the property this proxy is filtering on.

Returns:


vetoableChange

public void vetoableChange(java.beans.PropertyChangeEvent event)

Forwards the event on to the delegate if the property name matches.

Parameters:

Throws: