de.lessvoid.nifty.controls.textfield
Class TextFieldControl

java.lang.Object
  extended by de.lessvoid.nifty.controls.AbstractController
      extended by de.lessvoid.nifty.controls.textfield.TextFieldControl
All Implemented Interfaces:
Controller, NiftyControl, TextField, TextFieldView

Deprecated. Please use TextField when accessing NiftyControls.

@Deprecated
public class TextFieldControl
extends AbstractController
implements TextField, TextFieldView

A TextFieldControl.

Author:
void

Constructor Summary
TextFieldControl()
          Deprecated.  
 
Method Summary
 void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributes)
          Deprecated.  
 void disablePasswordChar()
          Deprecated. Disable the password character which displays the text again,
 void enablePasswordChar(char passwordChar)
          Deprecated. Enable a password character that is displayed instead of the actual text.
 String getText()
          Deprecated. Get the current TextField text.
 void init(Properties parameter, Attributes controlDefinitionAttributes)
          Deprecated.  
 boolean inputEvent(NiftyInputEvent inputEvent)
          Deprecated.  
 boolean isPasswordCharEnabled()
          Deprecated. Checks if a password character is currently enabled.
 void layoutCallback()
          Deprecated.  
 void onClick(int mouseX, int mouseY)
          Deprecated.  
 void onClickMouseMove(int mouseX, int mouseY)
          Deprecated.  
 void onFocus(boolean getFocus)
          Deprecated.  
 void onStartScreen()
          Deprecated.  
 void setCursorPosition(int position)
          Deprecated. Set the cursorposition to the given index.
 void setMaxLength(int maxLength)
          Deprecated. Change the max. input length to a new length.
 void setText(String newText)
          Deprecated. Set the Text of the TextField.
 void textChangeEvent(String newText)
          Deprecated.  
 
Methods inherited from class de.lessvoid.nifty.controls.AbstractController
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, 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, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
 

Constructor Detail

TextFieldControl

public TextFieldControl()
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

layoutCallback

public void layoutCallback()
Deprecated. 
Specified by:
layoutCallback in interface NiftyControl
Overrides:
layoutCallback in class AbstractController

onClick

public void onClick(int mouseX,
                    int mouseY)
Deprecated. 

onClickMouseMove

public void onClickMouseMove(int mouseX,
                             int mouseY)
Deprecated. 

inputEvent

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

onFocus

public void onFocus(boolean getFocus)
Deprecated. 
Specified by:
onFocus in interface Controller
Overrides:
onFocus in class AbstractController

getText

public String getText()
Deprecated. 
Description copied from interface: TextField
Get the current TextField text.

Specified by:
getText in interface TextField
Returns:
text

setText

public void setText(String newText)
Deprecated. 
Description copied from interface: TextField
Set the Text of the TextField.

Specified by:
setText in interface TextField
Parameters:
newText - new text

setMaxLength

public void setMaxLength(int maxLength)
Deprecated. 
Description copied from interface: TextField
Change the max. input length to a new length.

Specified by:
setMaxLength in interface TextField
Parameters:
maxLength - max length

setCursorPosition

public void setCursorPosition(int position)
Deprecated. 
Description copied from interface: TextField
Set the cursorposition to the given index.

Specified by:
setCursorPosition in interface TextField
Parameters:
position - new cursor position

textChangeEvent

public void textChangeEvent(String newText)
Deprecated. 
Specified by:
textChangeEvent in interface TextFieldView

enablePasswordChar

public void enablePasswordChar(char passwordChar)
Deprecated. 
Description copied from interface: TextField
Enable a password character that is displayed instead of the actual text.

Specified by:
enablePasswordChar in interface TextField
Parameters:
passwordChar - charcter to use, like '*'

disablePasswordChar

public void disablePasswordChar()
Deprecated. 
Description copied from interface: TextField
Disable the password character which displays the text again,

Specified by:
disablePasswordChar in interface TextField

isPasswordCharEnabled

public boolean isPasswordCharEnabled()
Deprecated. 
Description copied from interface: TextField
Checks if a password character is currently enabled.

Specified by:
isPasswordCharEnabled in interface TextField
Returns:
true if password character is enabled and false if not.


Copyright © 2011. All Rights Reserved.