TextField
when accessing NiftyControls.@Deprecated public class TextFieldControl extends AbstractController implements TextField, TextFieldView
UNLIMITED_LENGTH
Constructor and Description |
---|
TextFieldControl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Properties properties,
Attributes controlDefinitionAttributes)
Deprecated.
|
void |
disableDeleteFilter()
Deprecated.
Reset the delete filter to the default one that simply allows all input.
|
void |
disableInputFilter()
Deprecated.
Disable any active input filter and start using the default input filter again.
|
void |
disablePasswordChar()
Deprecated.
Disable the display of a password character and display the text as it was typed in.
|
void |
enableDeleteFilter(TextFieldDeleteFilter filter)
Deprecated.
Apply a filter to the delete operation on this text field.
|
void |
enableInputFilter(TextFieldInputCharFilter filter)
Deprecated.
Apply a filter to the input to this text field.
|
void |
enableInputFilter(TextFieldInputCharSequenceFilter filter)
Deprecated.
Apply a filter to the input to this text field.
|
void |
enableInputFilter(TextFieldInputFilter filter)
Deprecated.
Enable a filter to the input to this text field.
|
void |
enablePasswordChar(char passwordChar)
Deprecated.
Enable the password overlay for this text field.
|
String |
getDisplayedText()
Deprecated.
Get the text that is displayed in the text field.
|
String |
getRealText()
Deprecated.
Get the text that was typed in by the user into the text field.
|
String |
getText()
Deprecated.
Get the current TextField text.
|
void |
init(Properties parameter,
Attributes controlDefinitionAttributes)
Deprecated.
|
boolean |
inputEvent(NiftyInputEvent inputEvent)
Deprecated.
|
boolean |
isPasswordCharEnabled()
Deprecated.
Check if the displayed text is currently hidden by the password characters.
|
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 cursor to a new location within the text field.
|
void |
setFormat(TextFieldDisplayFormat format)
Deprecated.
Apply a display format to this text field.
|
void |
setMaxLength(int maxLength)
Deprecated.
Set the maximal length in characters that applies for this text field.
|
void |
setText(CharSequence text)
Deprecated.
Set the text that is supposed to be displayed in the text field.
|
void |
textChangeEvent(String newText)
Deprecated.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidth
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 void layoutCallback()
layoutCallback
in interface NiftyControl
layoutCallback
in class AbstractController
public void onClick(int mouseX, int mouseY)
public void onClickMouseMove(int mouseX, int mouseY)
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent
in interface Controller
public void onFocus(boolean getFocus)
onFocus
in interface Controller
onFocus
in class AbstractController
public String getText()
TextField
public String getRealText()
TextField
TextField.enableInputFilter(TextFieldInputFilter)
its possible that this text does not equal the text that is actually
displayed in the text field.getRealText
in interface TextField
public String getDisplayedText()
TextField
getDisplayedText
in interface TextField
public void setText(CharSequence text)
TextField
public void setMaxLength(int maxLength)
TextField
setMaxLength
in interface TextField
maxLength
- the maximal amount of characters allowed in this text field or TextField.UNLIMITED_LENGTH
in case
no limit is supposed to be setpublic void setCursorPosition(int position)
TextField
setCursorPosition
in interface TextField
position
- the new location of the cursorpublic void enableInputFilter(TextFieldInputFilter filter)
TextField
enableInputFilter
in interface TextField
filter
- the new filter or null
to reset to the default filter that allows all inputpublic void enableInputFilter(TextFieldInputCharFilter filter)
TextField
enableInputFilter
in interface TextField
filter
- the new filter or null
to reset to the default filter that allows all inputpublic void enableInputFilter(TextFieldInputCharSequenceFilter filter)
TextField
enableInputFilter
in interface TextField
filter
- the new filter or null
to reset to the default filter that allows all inputpublic void disableInputFilter()
TextField
disableInputFilter
in interface TextField
public void enableDeleteFilter(TextFieldDeleteFilter filter)
TextField
enableDeleteFilter
in interface TextField
filter
- the new filter or null
to reset to the default filter that allows all delete operationspublic void disableDeleteFilter()
TextField
disableDeleteFilter
in interface TextField
public void setFormat(TextFieldDisplayFormat format)
TextField
public void textChangeEvent(String newText)
textChangeEvent
in interface TextFieldView
public void enablePasswordChar(char passwordChar)
TextField
enablePasswordChar
in interface TextField
passwordChar
- the character all characters of the real text are replaced withpublic void disablePasswordChar()
TextField
disablePasswordChar
in interface TextField
public boolean isPasswordCharEnabled()
TextField
isPasswordCharEnabled
in interface TextField
true
in case the actual input is hiddenCopyright © 2013. All Rights Reserved.