public interface Console
extends de.lessvoid.nifty.controls.NiftyControl
Modifier and Type | Method and Description |
---|---|
void |
changeColors(de.lessvoid.nifty.tools.Color standardColor,
de.lessvoid.nifty.tools.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,
de.lessvoid.nifty.tools.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
|
void output(String line)
line
- the line of text to output to the consolevoid output(String line, de.lessvoid.nifty.tools.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(de.lessvoid.nifty.tools.Color standardColor, de.lessvoid.nifty.tools.Color errorColor)
standardColor
- the output color for the normal outputerrorColor
- the output color for the error outputCopyright © 2013. All Rights Reserved.