public interface TextField
extends de.lessvoid.nifty.controls.NiftyControl
Modifier and Type | Method and Description |
---|---|
void |
disablePasswordChar()
Disable the password character which displays the text again,
|
void |
enablePasswordChar(char passwordChar)
Enable a password character that is displayed instead of the actual text.
|
String |
getText()
Get the current TextField text.
|
boolean |
isPasswordCharEnabled()
Checks if a password character is currently enabled.
|
void |
setCursorPosition(int position)
Set the cursorposition to the given index.
|
void |
setMaxLength(int maxLength)
Change the max.
|
void |
setText(String text)
Set the Text of the TextField.
|
String getText()
void setText(String text)
text
- new textvoid setMaxLength(int maxLength)
maxLength
- max lengthvoid setCursorPosition(int position)
position
- new cursor positionvoid enablePasswordChar(char passwordChar)
passwordChar
- charcter to use, like '*'void disablePasswordChar()
boolean isPasswordCharEnabled()
Copyright © 2013. All Rights Reserved.