public class nUIFloatingEntry extends nUIEntryElement implements IFloatingEntry
FORMAT_NUMBER_ANY, FORMAT_PIN_HIDDEN, FORMAT_STRING_ANY, FORMAT_STRING_HIDDEN
Y_IDENTIFIER_PREV_BOTTOM
COLOR_BACKGROUND_NORMAL, COLOR_BLACK, COLOR_FOREGROUND_DARK, COLOR_FOREGROUND_LIGHT, COLOR_FOREGROUND_NORMAL, COLOR_TRANSPARENT, COLOR_WHITE, DIMENSIONS_IDENTIFIER_PARENT_DIMENSIONS
Constructor and Description |
---|
nUIFloatingEntry()
Create a nUIFloatingEntry with a default ID of -1 and
no text.
|
nUIFloatingEntry(java.util.Hashtable properties) |
nUIFloatingEntry(java.lang.String text)
Create a nUIFloatingEntry with a default ID of -1.
|
nUIFloatingEntry(java.lang.String text,
java.util.Hashtable properties) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorText()
Gets the currently set error text for floating entry fields.
|
IStringValidator |
getStringValidator()
Get the current IStringValidator used in this floating entry element.
|
boolean |
isStringValid()
Does the currently entered String validate with the current IStringValidator.
|
void |
setDisabledColor(int color)
Set the color that the element should be when it's disabled.
|
void |
setErrorText(java.lang.String errortext)
A floating entry field may optionally display error text
if the entered content is not acceptable.
|
void |
setErrorTextColor(int color)
Set the color that the error message should be.
|
void |
setErrorTextVisible(boolean errormode)
Force the floating text entry to immediately show or hide the error text.
|
void |
setLabelTextColor(int color)
Set the color that the floating label should be.
|
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.
|
getFontStyle, getFormat, getHintText, getHintTextColor, getLines, getText, getTextColor, isGrowingOnTextEntry, setEditing, setFontSize, setFontStyle, setFormat, setGrowingOnTextEntry, setHintText, setHintTextColor, setLines, setText, setTextColor
applyBackground, applyBackground, applyBackground
getBackgroundDrawable, getBottom, getElementIdentifier, getFocusable, getGesturable, getHeight, getInnerHeight, getInnerWidth, getInnerX, getInnerY, getLeft, getMaxChildX, getMaxChildY, getProperties, getProperty, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, getY, insertAtInternal, isEnabled, isVisible, onRemoved, remove, setBackgroundDrawable, setBottom, setElementIdentifier, setEnabled, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setProperties, setProperty, setRight, setTop, setTriggerable, setVisible, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getFirstChild, getId, getLastChild, getNextSibling, getParent, getPrevSibling, getTag, insertAfter, insertAt, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setId, setTag, setUnlinkChildrenOnRemoval
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHintText, isEnabled, setEnabled, setHintText
getText, setText, setTextColor
setBackgroundDrawable
public nUIFloatingEntry()
public nUIFloatingEntry(java.util.Hashtable properties)
public nUIFloatingEntry(java.lang.String text)
text
- The default text to display to begin withpublic nUIFloatingEntry(java.lang.String text, java.util.Hashtable properties)
public void setErrorText(java.lang.String errortext)
setErrorText
in interface IFloatingEntry
errortext
- the error text to display when the error text is visible.public java.lang.String getErrorText()
getErrorText
in interface IFloatingEntry
public void setErrorTextVisible(boolean errormode)
setErrorTextVisible
in interface IFloatingEntry
errormode
- true if the error text should be shown, false for the normal hint text.public void setStringValidator(IStringValidator validator)
setStringValidator
in interface IFloatingEntry
validator
- an IStringValidatorpublic IStringValidator getStringValidator()
getStringValidator
in interface IFloatingEntry
public boolean isStringValid()
isStringValid
in interface IFloatingEntry
public void setErrorTextColor(int color)
color
- an AARRGGBB color.public void setDisabledColor(int color)
color
- an AARRGGBB color.public void setLabelTextColor(int color)
color
- an AARRGGBB color.public void setPrefixHint(java.lang.String prefixHint)
setPrefixHint
in interface IFloatingEntry
prefixHint
- the prefix String to use.public void setPrefixIcon(javax.microedition.lcdui.Image prefixIcon)
setPrefixIcon
in interface IFloatingEntry
prefixIcon
- the prefix icon to use.public void setPostfixHint(java.lang.String postfixHint)
setPostfixHint
in interface IFloatingEntry
postfixHint
- the trailing hint to use.public void setPostfixIcon(javax.microedition.lcdui.Image postfixIcon)
setPostfixIcon
in interface IFloatingEntry
postfixIcon
- the trailing icon to use.