|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthenplus.view.util.CancelWriter
public final class CancelWriter
Little utility that allows to write a string to the screen and cancel it afterwards (with Backspaces). Will only write, if the Output is indeed a terminal.
Constructor Summary | |
---|---|
CancelWriter(OutputDevice out)
|
Method Summary | |
---|---|
int |
cancel()
cancel out the written string and wipe it with spaces. |
int |
cancel(boolean wipeOut)
cancel the output. |
boolean |
hasCancellableOutput()
returns, if this cancel writer has any cancellable output. |
boolean |
isPrinting()
returns, wether this cancel writer will print anything. |
void |
print(String str)
Print message to screen. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CancelWriter(OutputDevice out)
Method Detail |
---|
public boolean isPrinting()
public boolean hasCancellableOutput()
public void print(String str)
str
- string to print. Must not be null.public int cancel()
public int cancel(boolean wipeOut)
wipeOut
- 'true', if the written characters
should be wiped out with spaces. Otherwise,
the cursor is placed at the beginning of
the string without wiping.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |