|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dsto.dfc.swt.forms.AbstractPipe dsto.dfc.swt.forms.PipeEndpoint dsto.dfc.swt.forms.TextEndpoint
public class TextEndpoint
A pipe endpoint that connects its input to SWT text-like widgets (Text, Combo, and Spinner currently). Has the ability to batch changes in the text-like widget rather than sending them through individually.
Field Summary | |
---|---|
static int |
COMMIT_DEFAULT
Only commit changes on a change of focus or a default selection (e.g. |
static int |
COMMIT_IMMEDIATELY
Commit on every change to the text. |
static int |
COMMIT_LATER
Commit changes after a period of inactivity of delay
milliseconds. |
int |
commitMode
Controls when to commit text changes to the parent pipe. |
int |
delay
Used when commitMode == COMMIT_LATER to control how long a period of inactivity should pass before committing changes to the parent. |
Fields inherited from class dsto.dfc.swt.forms.AbstractPipe |
---|
errorHandler, parent |
Constructor Summary | |
---|---|
TextEndpoint(org.eclipse.swt.widgets.Control textControl)
|
Method Summary | |
---|---|
void |
dispose()
Default implementation: does nothing. |
boolean |
flush()
Cause any uncommitted changes to any pipe segments in the tree to be pushed back into the pipe sequence (using Pipe.output(Object) ). |
void |
flushLater()
|
String |
getText()
|
void |
handleEvent(org.eclipse.swt.widgets.Event e)
|
boolean |
input(Object value)
Input a value into the pipe tree. |
boolean |
isDisposed()
Test if pipe has been disposed. |
void |
setText(String text)
|
Methods inherited from class dsto.dfc.swt.forms.PipeEndpoint |
---|
connect, output |
Methods inherited from class dsto.dfc.swt.forms.AbstractPipe |
---|
getParent, handlePipeError, setErrorHandler, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int COMMIT_DEFAULT
public static int COMMIT_IMMEDIATELY
public static int COMMIT_LATER
delay
milliseconds.
public int commitMode
public int delay
Constructor Detail |
---|
public TextEndpoint(org.eclipse.swt.widgets.Control textControl)
Method Detail |
---|
public void dispose()
AbstractPipe
dispose
in interface Pipe
dispose
in interface Disposable
dispose
in class AbstractPipe
public boolean isDisposed()
Pipe
isDisposed
in interface Pipe
public boolean flush()
Pipe
Pipe.output(Object)
). This
is designed for use by pipes connect editors such as text fields that are
not committed immediately: most pipes will simply forward this call on to
their children.
flush
in interface Pipe
flush
in class PipeEndpoint
for more info on handling errors.
public void flushLater()
public boolean input(Object value)
Pipe
input
in interface Pipe
input
in class PipeEndpoint
for more info on handling errors.
public void setText(String text)
public String getText()
public void handleEvent(org.eclipse.swt.widgets.Event e)
handleEvent
in interface org.eclipse.swt.widgets.Listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |