public class nUINavbuttonElement extends nUIElementDisplay
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_BACK
A "Back" navbutton type.
|
static int |
TYPE_DEFAULT
The default navbutton type.
|
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 |
---|
nUINavbuttonElement(java.lang.String text,
javax.microedition.lcdui.Image icon)
Default nav/menu button constructor
|
nUINavbuttonElement(java.lang.String text,
javax.microedition.lcdui.Image icon,
java.util.Hashtable properties) |
nUINavbuttonElement(java.lang.String text,
int type,
javax.microedition.lcdui.Image icon)
Default nav/menu button constructor
|
nUINavbuttonElement(java.lang.String text,
int type,
javax.microedition.lcdui.Image icon,
java.util.Hashtable properties) |
Modifier and Type | Method and Description |
---|---|
javax.microedition.lcdui.Image |
getIcon()
Gets the Image currently set as an icon for this navbutton.
|
java.lang.String |
getText()
Gets the text currently set for this navbutton.
|
int |
getType()
Gets the navbutton type.
|
void |
setIcon(javax.microedition.lcdui.Image icon)
Sets an icon to be associated with this navbutton.
|
void |
setText(java.lang.String text)
Sets the text associated with this navbutton.
|
void |
setTextColor(int argb)
Sets the text color of the text if the particular platform supports it.
|
void |
setType(int type)
Sets navbutton type.
|
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 static final int TYPE_DEFAULT
public static final int TYPE_BACK
public nUINavbuttonElement(java.lang.String text, javax.microedition.lcdui.Image icon)
text
- The text shown for this itemicon
- The icon shown for this itempublic nUINavbuttonElement(java.lang.String text, int type, javax.microedition.lcdui.Image icon)
text
- The text shown for this itemtype
- The type of buttonicon
- The icon shown for this itempublic nUINavbuttonElement(java.lang.String text, javax.microedition.lcdui.Image icon, java.util.Hashtable properties)
public nUINavbuttonElement(java.lang.String text, int type, javax.microedition.lcdui.Image icon, java.util.Hashtable properties)
public void setText(java.lang.String text)
public java.lang.String getText()
public void setIcon(javax.microedition.lcdui.Image icon)
public javax.microedition.lcdui.Image getIcon()
public void setType(int type)
type
- either TYPE_DEFAULT
or TYPE_BACK
.java.lang.IllegalArgumentException
- if type
is not one of the expected values.public int getType()
public void setTextColor(int argb)
argb
- - a color