|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Console
The Console interface is the Nifty control API view of a Nifty Console control.
| Method Summary | |
|---|---|
void |
changeColors(Color standardColor,
Color errorColor)
Change the output colors. |
void |
clear()
Clear the console. |
String[] |
getConsoleContent()
Get the complete content of the console as an array of Strings. |
TextField |
getTextField()
This gives you access to the Textfield that the Console uses for text input. |
void |
output(String line)
output a line of text (or multiple lines separated by \n) to the console. |
void |
output(String line,
Color color)
output a line of text (or multiple lines separated by \n) to the console. |
void |
outputError(String line)
output a line of text (or multiple lines separated by \n) with the error color |
| Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl |
|---|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
| Method Detail |
|---|
void output(String line)
line - the line of text to output to the console
void output(String line,
Color color)
line - the line of text to output to the consolecolor - void outputError(String line)
line - the line of text to output to the consoleString[] getConsoleContent()
void clear()
TextField getTextField()
void changeColors(Color standardColor,
Color errorColor)
standardColor - the output color for the normal outputerrorColor - the output color for the error output
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||