Controller, NiftyControl, TextField, TextFieldViewTextField when accessing NiftyControls.@Deprecated public class TextFieldControl extends AbstractController implements TextField, TextFieldView
UNLIMITED_LENGTH| Constructor | Description |
|---|---|
TextFieldControl() |
Deprecated.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
bind(Nifty niftyParam,
Screen screenParam,
Element newElement,
Parameters properties) |
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.
|
java.lang.String |
getDisplayedText() |
Deprecated.
Get the text that is displayed in the text field.
|
java.lang.String |
getRealText() |
Deprecated.
Get the text that was typed in by the user into the text field.
|
java.lang.String |
getText() |
Deprecated.
Get the current TextField text.
|
void |
init(Parameters parameter) |
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(java.lang.CharSequence text) |
Deprecated.
Set the text that is supposed to be displayed in the text field.
|
void |
textChangeEvent(java.lang.String newText) |
Deprecated.
Publish a event indicating that the text in the text field got changed.
|
bind, disable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, onEndScreen, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthdisable, enable, getElement, getHeight, getId, getStyle, getWidth, hasFocus, isBound, isEnabled, setEnabled, setFocus, setFocusable, setHeight, setId, setStyle, setWidthpublic void bind(@Nonnull
Nifty niftyParam,
@Nonnull
Screen screenParam,
@Nonnull
Element newElement,
@Nonnull
Parameters properties)
bind in interface Controllerpublic void init(@Nonnull
Parameters parameter)
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(@Nonnull
NiftyInputEvent inputEvent)
inputEvent in interface Controllerpublic void onFocus(boolean getFocus)
onFocus in interface ControlleronFocus in class AbstractController@Nonnull public java.lang.String getText()
TextField@Nonnull public java.lang.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 TextField@Nonnull public java.lang.String getDisplayedText()
TextFieldgetDisplayedText in interface TextFieldpublic void setText(@Nonnull
java.lang.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(@Nullable
TextFieldInputFilter filter)
TextFieldenableInputFilter in interface TextFieldfilter - the new filter or null to reset to the default filter that allows all inputpublic void enableInputFilter(@Nullable
TextFieldInputCharFilter filter)
TextFieldenableInputFilter in interface TextFieldfilter - the new filter or null to reset to the default filter that allows all inputpublic void enableInputFilter(@Nullable
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(@Nullable
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(@Nullable
TextFieldDisplayFormat format)
TextFieldpublic void textChangeEvent(@Nonnull
java.lang.String newText)
TextFieldViewtextChangeEvent in interface TextFieldViewnewText - the new textpublic 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 © 2018. All rights reserved.