|
||||||||||
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 NiftyControl
public String getId()
getId
in interface NiftyControl
public void setId(String id)
setId
in interface NiftyControl
public int getWidth()
getWidth
in interface NiftyControl
public void setWidth(SizeValue width)
setWidth
in interface NiftyControl
public int getHeight()
getHeight
in interface NiftyControl
public void setHeight(SizeValue height)
setHeight
in interface NiftyControl
public String getStyle()
getStyle
in interface NiftyControl
public void setStyle(String style)
setStyle
in interface NiftyControl
public void enable()
enable
in interface NiftyControl
public void disable()
disable
in interface NiftyControl
public void setEnabled(boolean enabled)
setEnabled
in interface NiftyControl
public boolean isEnabled()
isEnabled
in interface NiftyControl
public String getText()
TextField
getText
in interface TextField
public void setText(String text)
TextField
setText
in interface TextField
text
- new textpublic void setMaxLength(int maxLength)
TextField
setMaxLength
in interface TextField
maxLength
- max lengthpublic void setCursorPosition(int position)
TextField
setCursorPosition
in interface TextField
position
- new cursor positionpublic void enablePasswordChar(char passwordChar)
TextField
enablePasswordChar
in interface TextField
passwordChar
- charcter to use, like '*'public void disablePasswordChar()
TextField
disablePasswordChar
in interface TextField
public boolean isPasswordCharEnabled()
TextField
isPasswordCharEnabled
in interface TextField
public void setFocus()
setFocus
in interface NiftyControl
public void setFocusable(boolean focusable)
setFocusable
in interface NiftyControl
public boolean hasFocus()
hasFocus
in interface NiftyControl
public void layoutCallback()
layoutCallback
in interface NiftyControl
public boolean isBound()
isBound
in interface NiftyControl
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |