java::util::PropertyChangeListenerProxy Class Reference

Inheritance diagram for java::util::PropertyChangeListenerProxy:

Inheritance graph
java::util::EventListenerProxyjava::lang::Objectjava::lang::Interfacejava::util::EventListenerjava::util::PropertyChangeListener
[legend]
Collaboration diagram for java::util::PropertyChangeListenerProxy:

Collaboration graph
java::util::EventListenerProxyjava::lang::Objectjava::lang::Interfacejava::util::EventListenerjava::util::PropertyChangeListener
[legend]

List of all members.


Detailed Description

A class which extends the EventListenerProxy specifically for adding a named PropertyChangeListener.

Instances of this class can be added as PropertyChangeListener to an object.

If the object has a getPropertyChangeListeners() method then the array returned could be a mixture of PropertyChangeListener and PropertyChangeListenerProxy objects.

See also:
java.util.EventListenerProxy
Since:
1.4

Public Member Functions

 PropertyChangeListenerProxy (const String &propertyName=nilString, const Ref< PropertyChangeListener > &listener=0)
 Constructor which binds the PropertyChangeListener to a specific property.
virtual void propertyChange (const PropertyChangeEvent &e)
 Forwards the property change event to the listener delegate.
virtual String getPropertyName () const
 Returns the name of the named property associated with the listener.

Constructor & Destructor Documentation

java::util::PropertyChangeListenerProxy::PropertyChangeListenerProxy ( const String propertyName = nilString,
const Ref< PropertyChangeListener > &  listener = 0 
)

Constructor which binds the PropertyChangeListener to a specific property.

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


Member Function Documentation

virtual void java::util::PropertyChangeListenerProxy::propertyChange ( const PropertyChangeEvent e  )  [virtual]

Forwards the property change event to the listener delegate.

Parameters:
evt the property change event

Implements java::util::PropertyChangeListener.

virtual String java::util::PropertyChangeListenerProxy::getPropertyName (  )  const [virtual]

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


The documentation for this class was generated from the following file:
Generated on Fri May 16 11:56:50 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3