public class TextFieldNull extends Object implements TextField
UNLIMITED_LENGTH| Constructor and Description |
|---|
TextFieldNull() |
| Modifier and Type | Method and Description |
|---|---|
void |
disable() |
void |
disableDeleteFilter()
Reset the delete filter to the default one that simply allows all input.
|
void |
disableInputFilter()
Disable any active input filter and start using the default input filter again.
|
void |
disablePasswordChar()
Disable the display of a password character and display the text as it was typed in.
|
void |
enable() |
void |
enableDeleteFilter(TextFieldDeleteFilter filter)
Apply a filter to the delete operation on this text field.
|
void |
enableInputFilter(TextFieldInputCharFilter filter)
Apply a filter to the input to this text field.
|
void |
enableInputFilter(TextFieldInputCharSequenceFilter filter)
Apply a filter to the input to this text field.
|
void |
enableInputFilter(TextFieldInputFilter filter)
Enable a filter to the input to this text field.
|
void |
enablePasswordChar(char passwordChar)
Enable the password overlay for this text field.
|
String |
getDisplayedText()
Get the text that is displayed in the text field.
|
Element |
getElement() |
int |
getHeight() |
String |
getId() |
String |
getRealText()
Get the text that was typed in by the user into the text field.
|
String |
getStyle() |
String |
getText()
Get the current TextField text.
|
int |
getWidth() |
boolean |
hasFocus() |
boolean |
isBound() |
boolean |
isEnabled() |
boolean |
isPasswordCharEnabled()
Check if the displayed text is currently hidden by the password characters.
|
void |
layoutCallback() |
void |
setCursorPosition(int position)
Set the cursor to a new location within the text field.
|
void |
setEnabled(boolean enabled) |
void |
setFocus() |
void |
setFocusable(boolean focusable) |
void |
setFormat(TextFieldDisplayFormat format)
Apply a display format to this text field.
|
void |
setHeight(SizeValue height) |
void |
setId(String id) |
void |
setMaxLength(int maxLength)
Set the maximal length in characters that applies for this text field.
|
void |
setStyle(String style) |
void |
setText(CharSequence text)
Set the text that is supposed to be displayed in the text field.
|
void |
setWidth(SizeValue width) |
public Element getElement()
getElement in interface NiftyControlpublic String getId()
getId in interface NiftyControlpublic void setId(String id)
setId in interface NiftyControlpublic int getWidth()
getWidth in interface NiftyControlpublic void setWidth(SizeValue width)
setWidth in interface NiftyControlpublic int getHeight()
getHeight in interface NiftyControlpublic void setHeight(SizeValue height)
setHeight in interface NiftyControlpublic String getStyle()
getStyle in interface NiftyControlpublic void setStyle(String style)
setStyle in interface NiftyControlpublic void enable()
enable in interface NiftyControlpublic void disable()
disable in interface NiftyControlpublic void setEnabled(boolean enabled)
setEnabled in interface NiftyControlpublic boolean isEnabled()
isEnabled in interface NiftyControlpublic 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 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 hiddenpublic void setFocus()
setFocus in interface NiftyControlpublic void setFocusable(boolean focusable)
setFocusable in interface NiftyControlpublic boolean hasFocus()
hasFocus in interface NiftyControlpublic void layoutCallback()
layoutCallback in interface NiftyControlpublic boolean isBound()
isBound in interface NiftyControlCopyright © 2013. All Rights Reserved.