| Modifier and Type | Field and Description |
|---|---|
protected String |
m_accessibilitylabel
The acessibility label for the entry.
|
protected String |
m_action
The action string for the entry.
|
protected int |
m_checked
The checked status (@see MenuItem for values).
|
protected boolean |
m_current
The current flag for the entry.
|
protected boolean |
m_enabled
The enabled flag for the entry.
|
protected String |
m_form
The form name string for the entry.
|
protected String |
m_icon
The icon name for the entry.
|
protected String |
m_title
The display title for the entry.
|
protected String |
m_url
The full URL string for the entry.
|
CHECKED_FALSE, CHECKED_NA, CHECKED_TRUE, STATE_MENU| Constructor and Description |
|---|
MenuEntry(String title,
boolean enabled,
String action)
Construct a menu.
|
MenuEntry(String title,
String action)
Construct a menu.
|
MenuEntry(String title,
String icon,
boolean enabled,
int checked,
String action)
Construct a menu.
|
MenuEntry(String title,
String icon,
boolean enabled,
int checked,
String action,
String form)
Construct a menu.
|
MenuEntry(String title,
String accessibilityLabel,
boolean enabled,
String action) |
MenuEntry(String title,
String accessibilityLabel,
String action)
Construct a menu.
|
MenuEntry(String title,
String accessibilityLabel,
String icon,
boolean enabled,
int checked,
String action)
Construct a menu.
|
MenuEntry(String title,
String accessibilityLabel,
String icon,
boolean enabled,
int checked,
String action,
String form)
Construct a menu.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessibilityLabel() |
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 |
getIschecked()
Access the checked status of this item.
|
boolean |
getIsContainer()
Does this item act as a container for other items?
|
boolean |
getIsCurrent() |
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.
|
void |
setIsCurrent(boolean current)
If you set this to true, this menu item will be displayed as the current selected item.
|
MenuEntry |
setUrl(String url)
Set the full URL of the entry.
|
int |
size()
Count the sub-items of the item.
|
protected String m_title
protected String m_icon
protected boolean m_enabled
protected boolean m_current
protected String m_action
protected String m_url
protected String m_form
protected int m_checked
protected String m_accessibilitylabel
public MenuEntry(String title, String accessibilityLabel, String icon, boolean enabled, int checked, String action, String form)
public MenuEntry(String title, String icon, boolean enabled, int checked, String action)
public MenuEntry(String title, String accessibilityLabel, String icon, boolean enabled, int checked, String action)
public MenuEntry(String title, String accessibilityLabel, String action)
public MenuEntry setUrl(String url)
url - The full URL for the entry.public boolean getIsContainer()
getIsContainer in interface MenuItempublic boolean getIsDivider()
getIsDivider in interface MenuItempublic String getTitle()
public String getIcon()
public boolean getIsEnabled()
getIsEnabled in interface MenuItempublic String getAction()
public String getUrl()
public String getForm()
public List<MenuItem> getItems()
public MenuItem getItem(int index)
public int getChecked()
getChecked in interface MenuItemMenuItempublic boolean getIschecked()
public int size()
public boolean isEmpty()
public boolean getIsField()
getIsField in interface MenuItempublic boolean getIsCurrent()
getIsCurrent in interface MenuItempublic void setIsCurrent(boolean current)
public String getAccessibilityLabel()
getAccessibilityLabel in interface MenuItemCopyright © 2003–2018 The Sakai Foundation. All rights reserved.