|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.lessvoid.nifty.controls.nullobjects.TextFieldNull
public class TextFieldNull
The NullObject in case you're requesting this control and it could not be found. You'll get a warning in the log and an instance of this class back. This reduces NPE.
| Constructor Summary | |
|---|---|
TextFieldNull()
|
|
| Method Summary | |
|---|---|
void |
disable()
|
void |
disablePasswordChar()
Disable the password character which displays the text again, |
void |
enable()
|
void |
enablePasswordChar(char passwordChar)
Enable a password character that is displayed instead of the actual text. |
Element |
getElement()
|
int |
getHeight()
|
String |
getId()
|
String |
getStyle()
|
String |
getText()
Get the current TextField text. |
int |
getWidth()
|
boolean |
hasFocus()
|
boolean |
isBound()
|
boolean |
isEnabled()
|
boolean |
isPasswordCharEnabled()
Checks if a password character is currently enabled. |
void |
layoutCallback()
|
void |
setCursorPosition(int position)
Set the cursorposition to the given index. |
void |
setEnabled(boolean enabled)
|
void |
setFocus()
|
void |
setFocusable(boolean focusable)
|
void |
setHeight(SizeValue height)
|
void |
setId(String id)
|
void |
setMaxLength(int maxLength)
Change the max. input length to a new length. |
void |
setStyle(String style)
|
void |
setText(String text)
Set the Text of the TextField. |
void |
setWidth(SizeValue width)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextFieldNull()
| Method Detail |
|---|
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()
TextField
getText in interface TextFieldpublic void setText(String text)
TextField
setText in interface TextFieldtext - new textpublic void setMaxLength(int maxLength)
TextField
setMaxLength in interface TextFieldmaxLength - max lengthpublic void setCursorPosition(int position)
TextField
setCursorPosition in interface TextFieldposition - new cursor positionpublic void enablePasswordChar(char passwordChar)
TextField
enablePasswordChar in interface TextFieldpasswordChar - charcter to use, like '*'public void disablePasswordChar()
TextField
disablePasswordChar in interface TextFieldpublic boolean isPasswordCharEnabled()
TextField
isPasswordCharEnabled in interface TextFieldpublic 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 NiftyControl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||