|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lessvoid.nifty.controls.AbstractController
de.lessvoid.nifty.controls.console.ConsoleControl
Console
when accessing NiftyControls.
@Deprecated public class ConsoleControl
A Nifty Control that represents a input console.
Constructor Summary | |
---|---|
ConsoleControl()
Deprecated. |
Method Summary | |
---|---|
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 |
Methods inherited from class de.lessvoid.nifty.controls.AbstractController |
---|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, onFocus, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface de.lessvoid.nifty.controls.NiftyControl |
---|
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, layoutCallback, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth |
Constructor Detail |
---|
public ConsoleControl()
Method Detail |
---|
public void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributes)
bind
in interface Controller
public void init(Properties parameter, Attributes controlDefinitionAttributes)
init
in interface Controller
init
in class AbstractController
public void onStartScreen()
onStartScreen
in interface Controller
public TextField getTextField()
Console
getTextField
in interface Console
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public void onEvent(String topic, NiftyInputEvent data)
onEvent
in interface org.bushe.swing.event.EventTopicSubscriber<NiftyInputEvent>
public void output(String value)
Console
output
in interface Console
value
- the line of text to output to the consolepublic void output(String value, Color color)
Console
output
in interface Console
value
- the line of text to output to the consolepublic 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
clear
in interface Console
public void changeColors(Color standardColor, Color errorColor)
Console
changeColors
in interface Console
standardColor
- the output color for the normal outputerrorColor
- the output color for the error output
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |