NiftyControlConsoleControlpublic interface Console extends NiftyControl
| Modifier and Type | Method | Description |
|---|---|---|
void |
changeColors(Color standardColor,
Color errorColor) |
Change the output colors.
|
void |
clear() |
Clear the console.
|
java.lang.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(java.lang.String line) |
output a line of text (or multiple lines separated by \n) to the console.
|
void |
output(java.lang.String line,
Color color) |
output a line of text (or multiple lines separated by \n) to the console.
|
void |
outputError(java.lang.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, setWidthvoid output(@Nonnull
java.lang.String line)
line - the line of text to output to the consolevoid output(@Nonnull
java.lang.String line,
@Nullable
Color color)
line - the line of text to output to the consolevoid outputError(@Nonnull
java.lang.String line)
line - the line of text to output to the console@Nonnull java.lang.String[] getConsoleContent()
void clear()
@Nullable TextField getTextField()
void changeColors(@Nullable
Color standardColor,
@Nonnull
Color errorColor)
standardColor - the output color for the normal outputerrorColor - the output color for the error outputCopyright © 2018. All rights reserved.