public class nUISearchNavButton extends nUINavbuttonElement
nUIViewDisplay
's header. By
default, only a search icon is visible in the header which can be tapped to
show/expand the search field.TYPE_BACK, TYPE_DEFAULT
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 |
---|
nUISearchNavButton() |
nUISearchNavButton(java.util.Hashtable properties) |
nUISearchNavButton(java.lang.String text,
javax.microedition.lcdui.Image icon) |
nUISearchNavButton(java.lang.String text,
javax.microedition.lcdui.Image icon,
java.util.Hashtable properties) |
Modifier and Type | Method and Description |
---|---|
void |
hideSearchField()
Hides the search field.
|
void |
setCancelButtonText(java.lang.String title) |
void |
setSearchFieldAccentColor(int argb)
Sets the color of underlying line in the search field.
|
void |
setSearchFieldBackground(IBackgroundDrawable drawable) |
void |
setSearchFieldHintText(java.lang.String hintText) |
void |
setSearchFieldHintTextColor(int argb)
Sets color of hint text and all icons within text field.
|
void |
setSearchFieldListener(ISearchFieldListener listener) |
void |
setSearchFieldText(java.lang.String text) |
void |
setSearchFieldTextColor(int argb) |
void |
setSearchFieldTintColor(int argb)
Sets tint color for text within search field
|
void |
showSearchField()
Expands the search field.
|
getIcon, getText, getType, setIcon, setText, setTextColor, setType
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
public nUISearchNavButton()
public nUISearchNavButton(java.lang.String text, javax.microedition.lcdui.Image icon)
public nUISearchNavButton(java.util.Hashtable properties)
public nUISearchNavButton(java.lang.String text, javax.microedition.lcdui.Image icon, java.util.Hashtable properties)
public void setSearchFieldListener(ISearchFieldListener listener)
listener
- - listener to set.public void setSearchFieldHintText(java.lang.String hintText)
hintText
- - hint text to set in the search field.public void setSearchFieldText(java.lang.String text)
text
- - text to set in the search field.public void setSearchFieldHintTextColor(int argb)
argb
- - ARGB color to set for the hint text.public void setSearchFieldTextColor(int argb)
argb
- - ARGB color to set for the text.public void setSearchFieldBackground(IBackgroundDrawable drawable)
drawable
- - background to set for the search field.public void setSearchFieldTintColor(int argb)
argb
- - ARGB color to tint search field.public void setSearchFieldAccentColor(int argb)
argb
- - ARGB color to set.public void setCancelButtonText(java.lang.String title)
title
- - text to set for the cancel button.public void showSearchField()
public void hideSearchField()