public interface MenuItem
MenuItem is the interface for all the objects that can live on a menu.
| Modifier and Type | Field and Description |
|---|---|
static int |
CHECKED_FALSE |
static int |
CHECKED_NA
Checked status values.
|
static int |
CHECKED_TRUE |
static String |
STATE_MENU |
| Modifier and Type | Method and Description |
|---|---|
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 |
getIsCurrent()
Access the is-current flag.
|
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<MenuItem> |
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.
|
static final int CHECKED_NA
static final int CHECKED_FALSE
static final int CHECKED_TRUE
static final String STATE_MENU
boolean getIsContainer()
boolean getIsDivider()
String getTitle()
String getIcon()
boolean getIsEnabled()
String getAction()
String getUrl()
String getForm()
int getChecked()
List<MenuItem> getItems()
int size()
boolean isEmpty()
MenuItem getItem(int index)
index - The index position (0 based) for the sub-item to get.boolean getIsField()
boolean getIsCurrent()
String getAccessibilityLabel()
Copyright © 2022. All rights reserved.