| java.lang.Object henplus.view.util.CancelWriter
CancelWriter | final public class CancelWriter (Code) | | 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.
|
Method Summary | |
public int | cancel() cancel out the written string and wipe it
with spaces. | public int | cancel(boolean wipeOut) cancel the output.
Parameters: wipeOut - 'true', if the written characters should be wiped out with spaces. | public boolean | hasCancellableOutput() returns, if this cancel writer has any cancellable
output. | public boolean | isPrinting() returns, wether this cancel writer will print
anything. | public void | print(String str) Print message to screen. |
cancel | public int cancel()(Code) | | cancel out the written string and wipe it
with spaces.
|
cancel | public int cancel(boolean wipeOut)(Code) | | cancel the output.
Parameters: wipeOut - 'true', if the written characters should be wiped out with spaces. Otherwise,the cursor is placed at the beginning ofthe string without wiping. number of characters cancelled. |
hasCancellableOutput | public boolean hasCancellableOutput()(Code) | | returns, if this cancel writer has any cancellable
output.
|
isPrinting | public boolean isPrinting()(Code) | | returns, wether this cancel writer will print
anything. Depends on the fact, that the output
is a terminal.
|
print | public void print(String str)(Code) | | Print message to screen. Cancel out any previous
message. If the output is no terminal, do not
write anything.
Parameters: str - string to print. Must not be null. |
|
|