edu.cmu.hcii.calo.view.PropertyChangeForwarder Class Reference

Collaboration diagram for edu.cmu.hcii.calo.view.PropertyChangeForwarder:

Collaboration graph
[legend]
List of all members.

Detailed Description

A delegate class that will take all property change events it receives and rebroadcast them on behalf of its delegator.

More precisely, when any PropertyChangeEvent is received by this class, the CALOComponent.firePropertyChange(String, Object, Object) method will be called on the delegator instance with the same property name and values as the event that was received.

Author:
Brian Ellis


Public Member Functions

 PropertyChangeForwarder (CALOComponent delegator)
 Constructs a PropertyChangeForwarder that will forward any property change events it receives such that they appear to have emanated from the given delegator component.
void Change (PropertyChangeEvent e)
 Invoked whenever a property change event occurs on a component to which this listener is attached.

Private Attributes

CALOComponent delegator
 The delegator for this forwarder.


Constructor & Destructor Documentation

edu.cmu.hcii.calo.view.PropertyChangeForwarder.PropertyChangeForwarder ( CALOComponent  delegator  ) 

Constructs a PropertyChangeForwarder that will forward any property change events it receives such that they appear to have emanated from the given delegator component.

The delegator must be a CALOComponent because otherwise the firePropertyChange(String, Object, Object) method is protected rather than public, preventing us from forwarding property change events that have Object values.

Parameters:
delegator the delegator


Member Function Documentation

void edu.cmu.hcii.calo.view.PropertyChangeForwarder.Change ( PropertyChangeEvent  e  ) 

Invoked whenever a property change event occurs on a component to which this listener is attached.

Forwards the event on to the delegator.

Parameters:
e the property change event
See also:
java.beans.PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)


Member Data Documentation

CALOComponent edu.cmu.hcii.calo.view.PropertyChangeForwarder.delegator [private]

The delegator for this forwarder.


The documentation for this class was generated from the following file:
Generated on Mon Aug 13 15:06:22 2007 for CALO by  doxygen 1.5.2