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.
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. |
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.
delegator | the delegator |
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.
e | the property change event |
The delegator for this forwarder.