dsto.dfc.swt.forms
Class AbstractBiDiPipe

java.lang.Object
  extended by dsto.dfc.swt.forms.AbstractPipe
      extended by dsto.dfc.swt.forms.AbstractBiDiPipe
All Implemented Interfaces:
Pipe, Disposable
Direct Known Subclasses:
DataObjectCopyPipe, JavaBeanPropertyPipe, LabelizerPipe, PropertyPipe, TranslatorPipe

public abstract class AbstractBiDiPipe
extends AbstractPipe
implements Pipe

Abstract base for pipes that are bi-directional (accept inputs and outputs). Subclasses may just implement input () and output ().

Version:
$Revision$
Author:
mpp

Field Summary
protected  Pipe childPipe
           
 
Fields inherited from class dsto.dfc.swt.forms.AbstractPipe
errorHandler, parent
 
Constructor Summary
AbstractBiDiPipe()
           
 
Method Summary
 Pipe connect(Pipe newChildPipe)
          Connect the output of this pipe to the input of a child pipe.
 void dispose()
          Forwarded to the child pipe.
 boolean flush()
          Forwarded to the child pipe.
 void setErrorHandler(PipeErrorHandler handler)
          Calls superclass methis and sets the error handler for the the child pipe.
 
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
getParent, input, isDisposed, output, setParent
 

Field Detail

childPipe

protected Pipe childPipe
Constructor Detail

AbstractBiDiPipe

public AbstractBiDiPipe()
Method Detail

connect

public Pipe connect(Pipe newChildPipe)
Description copied from interface: Pipe
Connect the output of this pipe to the input of a child pipe.

Specified by:
connect in interface Pipe

flush

public boolean flush()
Forwarded to the child pipe.

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

dispose

public void dispose()
Forwarded to the child pipe.

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

setErrorHandler

public void setErrorHandler(PipeErrorHandler handler)
Calls superclass methis and sets the error handler for the the child pipe.

Specified by:
setErrorHandler in interface Pipe
Overrides:
setErrorHandler in class AbstractPipe
See Also:
PipeErrorHandler


Copyright © 2008 Commonwealth of Australia