dsto.dfc.swing
Class UIPropertyListener

java.lang.Object
  extended by dsto.dfc.swing.UIPropertyListener
All Implemented Interfaces:
PropertyListener, EventListener

public class UIPropertyListener
extends Object
implements PropertyListener

A DataObject property listener adapter that re-routes property change events that occur outside the UI thread into the UI thread by using SwingUtilities.invokeLater ().

Author:
Matthew Phillips

Field Summary
protected  PropertyListener listener
           
 
Constructor Summary
UIPropertyListener(Component control)
          Shortcut to create a listener for a component that is also the property listener.
UIPropertyListener(PropertyListener listener)
          Create a new instance.
 
Method Summary
 void propertyValueChanged(PropertyEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

protected PropertyListener listener
Constructor Detail

UIPropertyListener

public UIPropertyListener(Component control)
Shortcut to create a listener for a component that is also the property listener.

Parameters:
control - The control: must implement PropertyListener.

UIPropertyListener

public UIPropertyListener(PropertyListener listener)
Create a new instance.

Parameters:
listener - The listener that will be called by this one, guaranteed from the UI thread.
Method Detail

propertyValueChanged

public void propertyValueChanged(PropertyEvent e)
Specified by:
propertyValueChanged in interface PropertyListener


Copyright © 2008 Commonwealth of Australia