dsto.dfc.swt.forms
Class DataObjectCopyPipe
java.lang.Object
dsto.dfc.swt.forms.AbstractPipe
dsto.dfc.swt.forms.AbstractBiDiPipe
dsto.dfc.swt.forms.DataObjectCopyPipe
- All Implemented Interfaces:
- PropertyListener, Pipe, Disposable, EventListener
public class DataObjectCopyPipe
- extends AbstractBiDiPipe
- implements Pipe, PropertyListener
A pipe that inputs a data object and outputs a clone. Subsequent flush ()'es
will trigger an output to the parent pipe only if the object has changed.
This can be used to make bean property changes "transactional" ie not
committed until a flush ().
- Version:
- $Revision$
- Author:
- mpp
- See Also:
IDataBean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataObjectCopyPipe
public DataObjectCopyPipe()
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
flush
public boolean flush()
- Description copied from class:
AbstractBiDiPipe
- Forwarded to the child pipe.
- Specified by:
flush
in interface Pipe
- Overrides:
flush
in class AbstractBiDiPipe
- Returns:
- True if the operation completed successfully.
- See Also:
for more info on handling errors.
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