Console
when accessing NiftyControls.@Deprecated public class ConsoleControl extends de.lessvoid.nifty.controls.AbstractController implements Console, org.bushe.swing.event.EventTopicSubscriber<de.lessvoid.nifty.input.NiftyInputEvent>
Constructor and Description |
---|
ConsoleControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(de.lessvoid.nifty.Nifty niftyParam,
de.lessvoid.nifty.screen.Screen screenParam,
de.lessvoid.nifty.elements.Element newElement,
Properties properties,
de.lessvoid.xml.xpp3.Attributes controlDefinitionAttributes)
Deprecated.
|
void |
changeColors(de.lessvoid.nifty.tools.Color standardColor,
de.lessvoid.nifty.tools.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,
de.lessvoid.xml.xpp3.Attributes controlDefinitionAttributes)
Deprecated.
|
boolean |
inputEvent(de.lessvoid.nifty.input.NiftyInputEvent inputEvent)
Deprecated.
|
void |
onEvent(String topic,
de.lessvoid.nifty.input.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,
de.lessvoid.nifty.tools.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, setWidth
public void bind(de.lessvoid.nifty.Nifty niftyParam, de.lessvoid.nifty.screen.Screen screenParam, de.lessvoid.nifty.elements.Element newElement, Properties properties, de.lessvoid.xml.xpp3.Attributes controlDefinitionAttributes)
bind
in interface de.lessvoid.nifty.controls.Controller
public void init(Properties parameter, de.lessvoid.xml.xpp3.Attributes controlDefinitionAttributes)
init
in interface de.lessvoid.nifty.controls.Controller
init
in class de.lessvoid.nifty.controls.AbstractController
public void onStartScreen()
onStartScreen
in interface de.lessvoid.nifty.controls.Controller
public TextField getTextField()
Console
getTextField
in interface Console
public boolean inputEvent(de.lessvoid.nifty.input.NiftyInputEvent inputEvent)
inputEvent
in interface de.lessvoid.nifty.controls.Controller
public void onEvent(String topic, de.lessvoid.nifty.input.NiftyInputEvent data)
onEvent
in interface org.bushe.swing.event.EventTopicSubscriber<de.lessvoid.nifty.input.NiftyInputEvent>
public void output(String value)
Console
public void output(String value, de.lessvoid.nifty.tools.Color color)
Console
public void outputError(String value)
Console
outputError
in interface Console
value
- the line of text to output to the consolepublic String[] getConsoleContent()
Console
getConsoleContent
in interface Console
public void clear()
Console
public void changeColors(de.lessvoid.nifty.tools.Color standardColor, de.lessvoid.nifty.tools.Color errorColor)
Console
changeColors
in interface Console
standardColor
- the output color for the normal outputerrorColor
- the output color for the error outputCopyright © 2013. All Rights Reserved.