|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface MenuItem
MenuItem is the interface for all the objects that can live on a menu.
| Field Summary | |
|---|---|
static int |
CHECKED_FALSE
|
static int |
CHECKED_NA
Checked status values. |
static int |
CHECKED_TRUE
|
static String |
STATE_MENU
|
| Method Summary | |
|---|---|
String |
getAccessibilityLabel()
Get the optional label that may be set by components to provide accessiblity information, eg alt tags, title attributes etc |
String |
getAction()
Access the action string for this item; what to do when the user clicks. |
int |
getChecked()
Access the checked status of this item. |
String |
getForm()
Access the form name whose values will be used when this item is selected. |
String |
getIcon()
Access the icon name for the item (or null if no icon). |
boolean |
getIsContainer()
Does this item act as a container for other items? |
boolean |
getIsDivider()
Is this item a divider ? |
boolean |
getIsEnabled()
Access the enabled flag for the item. |
boolean |
getIsField()
Access the is-field (not a button) flag. |
MenuItem |
getItem(int index)
Access one sub-items of the item. |
List |
getItems()
Access the sub-items of the item. |
String |
getTitle()
Access the display title for the item. |
String |
getUrl()
Access the full URL string for this item; what to do when the user clicks. |
boolean |
isEmpty()
Check if there are any sub-items. |
int |
size()
Count the sub-items of the item. |
| Field Detail |
|---|
static final int CHECKED_NA
static final int CHECKED_FALSE
static final int CHECKED_TRUE
static final String STATE_MENU
| Method Detail |
|---|
boolean getIsContainer()
boolean getIsDivider()
String getTitle()
String getIcon()
boolean getIsEnabled()
String getAction()
String getUrl()
String getForm()
int getChecked()
List getItems()
int size()
boolean isEmpty()
MenuItem getItem(int index)
index - The index position (0 based) for the sub-item to get.
boolean getIsField()
String getAccessibilityLabel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||