public interface Console extends NiftyControl
Modifier and Type | Method and Description |
---|---|
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
|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
void output(String line)
line
- the line of text to output to the consolevoid 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()
Copyright © 2013. All Rights Reserved.