de.grogra.pf.ui
public interface Console extends Panel
Console represents a Panel of
the GUI which provides textual input and output.| Modifier and Type | Interface and Description |
|---|---|
static class |
Console.ConsoleWriter
A
ConsoleWriter is a PrintWriter
with the additional possibility to set the text color
to use. |
DEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSOR| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the console.
|
void |
enter(java.lang.String text)
Enters
text as if the user had typed this text. |
Console.ConsoleWriter |
getErr()
This method returns a
ConsoleWriter which is
used to write to the console. |
java.io.Reader |
getIn()
This method returns a
Reader which can be
used to obtain the textual input from the user. |
Console.ConsoleWriter |
getOut()
This method returns a
ConsoleWriter which is
used to write to the console. |
void |
setNameCompletion(NameCompletion nc) |
checkClose, getContent, getDecorator, getMenu, getPanelId, getUIPropertyMap, initDecorator, resolve, setContent, setCursor, setMenu, showgetComponent, getPanel, getWindow, getWorkbenchdisposevoid clear()
void enter(java.lang.String text)
text as if the user had typed this text.text - text to enter in the consoleConsole.ConsoleWriter getErr()
ConsoleWriter which is
used to write to the console. It should be used for error
messages. Implementations should use a different color
to highlight the characters which are written through
this writer.java.io.Reader getIn()
Reader which can be
used to obtain the textual input from the user.Console.ConsoleWriter getOut()
ConsoleWriter which is
used to write to the console. It should be used for normal
messages.void setNameCompletion(NameCompletion nc)