APIdia Launch Partner
Top Description Fields Constructors Methods
java.beans

public Class PropertyChangeListenerProxy

extends EventListenerProxy<PropertyChangeListener>
implements PropertyChangeListener
Class Inheritance
All Implemented Interfaces
java.beans.PropertyChangeListener, java.util.EventListener
Imports
java.util.EventListenerProxy

A class which extends the 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.

Since
1.4
See Also
java.util.EventListenerProxy, PropertyChangeSupport#getPropertyChangeListeners

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
PropertyChangeListenerProxy(String
the name of the property to listen on
propertyName
,
PropertyChangeListener
the listener object
listener
)

Constructor which binds the PropertyChangeListener to a specific property.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the name of the named property associated with the listener
getPropertyName
()

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

public void
propertyChange(PropertyChangeEvent
the property change event
event
)

Implements java.beans.PropertyChangeListener.propertyChange.

Forwards the property change event to the listener delegate.

Inherited from java.util.EventListenerProxy:
getListener

Field Detail

propertyNameback to summary
private final String propertyName

Constructor Detail

PropertyChangeListenerProxyback to summary
public PropertyChangeListenerProxy(String propertyName, PropertyChangeListener listener)

Constructor which binds the PropertyChangeListener to a specific property.

Parameters
propertyName:String

the name of the property to listen on

listener:PropertyChangeListener

the listener object

Method Detail

getPropertyNameback to summary
public String getPropertyName()

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

Returns:String

the name of the named property associated with the listener

propertyChangeback to summary
public void propertyChange(PropertyChangeEvent event)

Implements java.beans.PropertyChangeListener.propertyChange.

Forwards the property change event to the listener delegate.

Parameters
event:PropertyChangeEvent

the property change event

Annotations
@Override