Console when accessing NiftyControls.@Deprecated public class ConsoleControl extends AbstractController implements Console, org.bushe.swing.event.EventTopicSubscriber<NiftyInputEvent>
| Constructor and Description |
|---|
ConsoleControl()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Properties properties,
Attributes controlDefinitionAttributes)
Deprecated.
|
void |
changeColors(Color standardColor,
Color errorColor)
Deprecated.
Change the output colors.
|
void |
clear()
Deprecated.
Clear the console.
|
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(Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated.
|
boolean |
inputEvent(NiftyInputEvent inputEvent)
Deprecated.
|
void |
onEvent(String topic,
NiftyInputEvent data)
Deprecated.
|
void |
onStartScreen()
Deprecated.
|
void |
output(String value)
Deprecated.
output a line of text (or multiple lines separated by \n) to the console.
|
void |
output(String value,
Color color)
Deprecated.
output a line of text (or multiple lines separated by \n) to the console.
|
void |
outputError(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, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributes)
bind in interface Controllerpublic void init(Properties parameter, Attributes controlDefinitionAttributes)
init in interface Controllerinit in class AbstractControllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic TextField getTextField()
ConsolegetTextField in interface Consolepublic boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void onEvent(String topic, NiftyInputEvent data)
onEvent in interface org.bushe.swing.event.EventTopicSubscriber<NiftyInputEvent>public void output(String value)
Consolepublic void output(String value, Color color)
Consolepublic void outputError(String value)
ConsoleoutputError in interface Consolevalue - the line of text to output to the consolepublic String[] getConsoleContent()
ConsolegetConsoleContent in interface Consolepublic void clear()
Consolepublic void changeColors(Color standardColor, Color errorColor)
ConsolechangeColors in interface ConsolestandardColor - the output color for the normal outputerrorColor - the output color for the error outputCopyright © 2013. All Rights Reserved.