|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdsto.dfc.swt.forms.AbstractPipe
dsto.dfc.swt.forms.AbstractBiDiPipe
dsto.dfc.swt.forms.TranslatorPipe
public class TranslatorPipe
A pipe that outputs a transformed version of its input using a
ITranslator
.
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 | |
---|---|
TranslatorPipe(IStringTranslator translator)
Create a new instance using an IStringTranslator to
convert to string for input and back again for output. |
|
TranslatorPipe(ITranslator inputTranslator,
ITranslator outputTranslator)
Create a new instance. |
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 ()). |
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 |
---|
public TranslatorPipe(IStringTranslator translator)
IStringTranslator
to
convert to string for input and back again for output.
translator
- The string translator.IStringTranslator.ToString
,
IStringTranslator.FromString
public TranslatorPipe(ITranslator inputTranslator, ITranslator outputTranslator)
inputTranslator
- Translator for the input direction. May be
null for no input (i.e. read-only).outputTranslator
- Translator for the output direction. May be
null for no input (i.e. write-only).Method Detail |
---|
public void dispose()
AbstractBiDiPipe
dispose
in interface Pipe
dispose
in interface Disposable
dispose
in class AbstractBiDiPipe
public boolean isDisposed()
Pipe
isDisposed
in interface Pipe
public boolean input(Object value)
Pipe
input
in interface Pipe
for more info on handling errors.
public boolean output(Object value)
Pipe
output
in interface Pipe
for more info on handling errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |