dsto.dfc.swt.forms
Class PropertyPipe

java.lang.Object
  extended by dsto.dfc.swt.forms.AbstractPipe
      extended by dsto.dfc.swt.forms.AbstractBiDiPipe
          extended by dsto.dfc.swt.forms.PropertyPipe
All Implemented Interfaces:
PropertyListener, Pipe, Disposable, EventListener

public class PropertyPipe
extends AbstractBiDiPipe
implements Pipe, PropertyListener

A pipe that inputs a data object and outputs the value of one of its properties. Property changes originating from a thread other than the current UI thread are rescheduled to be executed later in the UI thread.

Version:
$Revision$
Author:
mpp
See Also:
IDataBean

Field Summary
 
Fields inherited from class dsto.dfc.swt.forms.AbstractBiDiPipe
childPipe
 
Fields inherited from class dsto.dfc.swt.forms.AbstractPipe
errorHandler, parent
 
Constructor Summary
PropertyPipe(String property)
           
 
Method Summary
 void dispose()
          Forwarded to the child pipe.
 boolean input(Object value)
          Input a value into the pipe tree.
 boolean isDisposed()
          Test if pipe has been disposed.
 boolean output(Object value)
          Output a value from a child into the pipe (the reverse of input ()).
 void propertyValueChanged(PropertyEvent e)
           
 
Methods inherited from class dsto.dfc.swt.forms.AbstractBiDiPipe
connect, flush, setErrorHandler
 
Methods inherited from class dsto.dfc.swt.forms.AbstractPipe
getParent, handlePipeError, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface dsto.dfc.swt.forms.Pipe
connect, flush, getParent, setErrorHandler, setParent
 

Constructor Detail

PropertyPipe

public PropertyPipe(String property)
Parameters:
property - Property for IO (may be a property path eg "person/name").
See Also:
DataObjects.getValue(IDataObject, PropertyPath)
Method Detail

dispose

public void dispose()
Description copied from class: AbstractBiDiPipe
Forwarded to the child pipe.

Specified by:
dispose in interface Pipe
Specified by:
dispose in interface Disposable
Overrides:
dispose in class AbstractBiDiPipe

isDisposed

public boolean isDisposed()
Description copied from interface: Pipe
Test if pipe has been disposed.

Specified by:
isDisposed in interface Pipe

input

public boolean input(Object value)
Description copied from interface: Pipe
Input a value into the pipe tree.

Specified by:
input in interface Pipe
Returns:
True if the operation completed successfully.
See Also:
for more info on handling errors.

output

public boolean output(Object value)
Description copied from interface: Pipe
Output a value from a child into the pipe (the reverse of input ()).

Specified by:
output in interface Pipe
Returns:
True if the operation completed successfully.
See Also:
for more info on handling errors.

propertyValueChanged

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


Copyright © 2008 Commonwealth of Australia