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, setWidthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(Nifty niftyParam, Screen screenParam, Element newElement, Properties properties, Attributes controlDefinitionAttributes)
bind in interface Controllerpublic void init(Properties parameter, Attributes controlDefinitionAttributes)
init in interface Controllerinit in class AbstractControllerpublic void onStartScreen()
onStartScreen in interface Controllerpublic void layoutCallback()
layoutCallback in interface NiftyControllayoutCallback in class AbstractControllerpublic void onClick(int mouseX,
int mouseY)
public void onClickMouseMove(int mouseX,
int mouseY)
public boolean inputEvent(NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void onFocus(boolean getFocus)
onFocus in interface ControlleronFocus in class AbstractControllerpublic String getText()
TextFieldpublic String getRealText()
TextFieldTextField.enableInputFilter(TextFieldInputFilter) its possible that this text does not equal the text that is actually
displayed in the text field.getRealText in interface TextFieldpublic String getDisplayedText()
TextFieldgetDisplayedText in interface TextFieldpublic void setText(CharSequence text)
TextFieldpublic void setMaxLength(int maxLength)
TextFieldsetMaxLength in interface TextFieldmaxLength - 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)
TextFieldsetCursorPosition in interface TextFieldposition - the new location of the cursorpublic void enableInputFilter(TextFieldInputFilter filter)
TextFieldenableInputFilter in interface TextFieldfilter - the new filter or null to reset to the default filter that allows all inputpublic void enableInputFilter(TextFieldInputCharFilter filter)
TextFieldenableInputFilter in interface TextFieldfilter - the new filter or null to reset to the default filter that allows all inputpublic void enableInputFilter(TextFieldInputCharSequenceFilter filter)
TextFieldenableInputFilter in interface TextFieldfilter - the new filter or null to reset to the default filter that allows all inputpublic void disableInputFilter()
TextFielddisableInputFilter in interface TextFieldpublic void enableDeleteFilter(TextFieldDeleteFilter filter)
TextFieldenableDeleteFilter in interface TextFieldfilter - the new filter or null to reset to the default filter that allows all delete operationspublic void disableDeleteFilter()
TextFielddisableDeleteFilter in interface TextFieldpublic void setFormat(TextFieldDisplayFormat format)
TextFieldpublic void textChangeEvent(String newText)
textChangeEvent in interface TextFieldViewpublic void enablePasswordChar(char passwordChar)
TextFieldenablePasswordChar in interface TextFieldpasswordChar - the character all characters of the real text are replaced withpublic void disablePasswordChar()
TextFielddisablePasswordChar in interface TextFieldpublic boolean isPasswordCharEnabled()
TextFieldisPasswordCharEnabled in interface TextFieldtrue in case the actual input is hiddenCopyright © 2013. All Rights Reserved.