de.lessvoid.nifty.controls.console
Class ConsoleControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.console.ConsoleControl
All Implemented Interfaces:
Console, Controller, NiftyControl, org.bushe.swing.event.EventTopicSubscriber<NiftyInputEvent>

Deprecated. Please use Console when accessing NiftyControls.

@Deprecated
public class ConsoleControl
extends AbstractController
implements Console, org.bushe.swing.event.EventTopicSubscriber<NiftyInputEvent>

A Nifty Control that represents a input console.

Author:
void

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

ConsoleControl

public ConsoleControl()
Deprecated. 
Method Detail

bind

public void bind(Nifty niftyParam,
                 Screen screenParam,
                 Element newElement,
                 Properties properties,
                 Attributes controlDefinitionAttributes)
Deprecated. 
Specified by:
bind in interface Controller

init

public void init(Properties parameter,
                 Attributes controlDefinitionAttributes)
Deprecated. 
Specified by:
init in interface Controller
Overrides:
init in class AbstractController

onStartScreen

public void onStartScreen()
Deprecated. 
Specified by:
onStartScreen in interface Controller

getTextField

public TextField getTextField()
Deprecated. 
Description copied from interface: Console
This gives you access to the Textfield that the Console uses for text input.

Specified by:
getTextField in interface Console
Returns:
the Nifty TextField control

inputEvent

public boolean inputEvent(NiftyInputEvent inputEvent)
Deprecated. 
Specified by:
inputEvent in interface Controller

onEvent

public void onEvent(String topic,
                    NiftyInputEvent data)
Deprecated. 
Specified by:
onEvent in interface org.bushe.swing.event.EventTopicSubscriber<NiftyInputEvent>

output

public void output(String value)
Deprecated. 
Description copied from interface: Console
output a line of text (or multiple lines separated by \n) to the console.

Specified by:
output in interface Console
Parameters:
value - the line of text to output to the console

output

public void output(String value,
                   Color color)
Deprecated. 
Description copied from interface: Console
output a line of text (or multiple lines separated by \n) to the console.

Specified by:
output in interface Console
Parameters:
value - the line of text to output to the console

outputError

public void outputError(String value)
Deprecated. 
Description copied from interface: Console
output a line of text (or multiple lines separated by \n) with the error color

Specified by:
outputError in interface Console
Parameters:
value - the line of text to output to the console

getConsoleContent

public String[] getConsoleContent()
Deprecated. 
Description copied from interface: Console
Get the complete content of the console as an array of Strings.

Specified by:
getConsoleContent in interface Console
Returns:
console content

clear

public void clear()
Deprecated. 
Description copied from interface: Console
Clear the console.

Specified by:
clear in interface Console

changeColors

public void changeColors(Color standardColor,
                         Color errorColor)
Deprecated. 
Description copied from interface: Console
Change the output colors. A color can be null in which case the default color of the console is being used.

Specified by:
changeColors in interface Console
Parameters:
standardColor - the output color for the normal output
errorColor - the output color for the error output


Copyright © 2011. All Rights Reserved.