Console, Controller, NiftyControl, EventTopicSubscriber<NiftyInputEvent>Console when accessing NiftyControls.@Deprecated public class ConsoleControl extends AbstractController implements Console, EventTopicSubscriber<NiftyInputEvent>
| Constructor | Description |
|---|---|
ConsoleControl() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
bind(Nifty nifty,
Screen screen,
Element element,
Parameters properties) |
Deprecated.
|
void |
changeColors(Color standardColor,
Color errorColor) |
Deprecated.
Change the output colors.
|
void |
clear() |
Deprecated.
Clear the console.
|
java.lang.String[] |
getConsoleContent() |
Deprecated.
Get the complete content of the console as an array of Strings.
|
TextField |
getTextField() |
Deprecated.
This gives you access to the Textfield that the Console uses for text input.
|
void |
init(Parameters parameter) |
Deprecated.
|
boolean |
inputEvent(NiftyInputEvent inputEvent) |
Deprecated.
|
void |
onEvent(java.lang.String topic,
NiftyInputEvent data) |
Deprecated.
|
void |
onStartScreen() |
Deprecated.
|
void |
output(java.lang.String value) |
Deprecated.
output a line of text (or multiple lines separated by \n) to the console.
|
void |
output(java.lang.String value,
Color color) |
Deprecated.
output a line of text (or multiple lines separated by \n) to the console.
|
void |
outputError(java.lang.String value) |
Deprecated.
output a line of text (or multiple lines separated by \n) with the error color
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, onEndScreen, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(@Nonnull
Nifty nifty,
@Nonnull
Screen screen,
@Nonnull
Element element,
@Nonnull
Parameters properties)
bind in interface Controllerpublic void init(@Nonnull
Parameters parameter)
init in interface Controllerinit in class AbstractControllerpublic void onStartScreen()
onStartScreen in interface Controller@Nullable public TextField getTextField()
ConsolegetTextField in interface Consolepublic boolean inputEvent(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void onEvent(java.lang.String topic,
@Nonnull
NiftyInputEvent data)
onEvent in interface EventTopicSubscriber<NiftyInputEvent>public void output(@Nonnull
java.lang.String value)
Consolepublic void output(@Nonnull
java.lang.String value,
@Nullable
Color color)
Consolepublic void outputError(@Nonnull
java.lang.String value)
ConsoleoutputError in interface Consolevalue - the line of text to output to the console@Nonnull public java.lang.String[] getConsoleContent()
ConsolegetConsoleContent in interface Consolepublic void clear()
Consolepublic void changeColors(@Nullable
Color standardColor,
@Nonnull
Color errorColor)
ConsolechangeColors in interface ConsolestandardColor - the output color for the normal outputerrorColor - the output color for the error outputCopyright © 2018. All rights reserved.