public interface IFloatingEntry extends ITextfieldElement
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorText()
Gets the currently set error text for floating entry fields.
|
java.lang.String |
getHintText()
Gets the hint text.
|
IStringValidator |
getStringValidator()
Get the current IStringValidator used in this floating entry element.
|
boolean |
isEnabled()
Returns a boolean value indicating if user interaction is allowed.
|
boolean |
isStringValid()
Does the currently entered String validate with the current IStringValidator.
|
void |
setEnabled(boolean enabled)
Enables or disables this
IFloatingEntry . |
void |
setErrorText(java.lang.String errortext)
A floating entry field may optionally display error text if the entered
content is not acceptable.
|
void |
setErrorTextVisible(boolean errormode)
Force the floating text entry to immediately show or hide the error text.
|
void |
setHintText(java.lang.String hintText)
Sets the hint text to display when no text is shown.
|
void |
setPostfixHint(java.lang.String postfixHint)
Set a persistent "hint" to be shown after the text in this entry.
|
void |
setPostfixIcon(javax.microedition.lcdui.Image postfixIcon)
Set a persistent "hint icon" to be shown after the text in this entry.
|
void |
setPrefixHint(java.lang.String prefixHint)
Set a persistent "hint" to be shown before the text in this entry.
|
void |
setPrefixIcon(javax.microedition.lcdui.Image prefixIcon)
Set a persistent "hint icon" to be shown before the text in this entry.
|
void |
setStringValidator(IStringValidator validator)
When the text changes in a floating entry element, it can be checked against
an optional IStringValidator.
|
getText, setText, setTextColor
setBackgroundDrawable
void setHintText(java.lang.String hintText)
hintText
- Hint text to displayjava.lang.NullPointerException
- if text is nulljava.lang.String getHintText()
void setErrorText(java.lang.String errortext)
errortext
- the error text to display when the error text is visible.java.lang.String getErrorText()
void setErrorTextVisible(boolean errormode)
errormode
- true if the error text should be shown, false for the normal hint
text.void setPrefixHint(java.lang.String prefixHint)
prefixHint
- the prefix String to use.void setPrefixIcon(javax.microedition.lcdui.Image prefixIcon)
prefixIcon
- the prefix icon to use.void setPostfixHint(java.lang.String postfixHint)
postfixHint
- the trailing hint to use.void setPostfixIcon(javax.microedition.lcdui.Image postfixIcon)
postfixIcon
- the trailing icon to use.void setStringValidator(IStringValidator validator)
validator
- an IStringValidator
IStringValidator getStringValidator()
boolean isStringValid()
void setEnabled(boolean enabled)
IFloatingEntry
. A disabled element will not allow
user interaction.enabled
- true
if this element should be enabled, false
otherwise.boolean isEnabled()