| Modifier and Type | Field and Description |
|---|---|
protected String |
m_accessibilityLabel
Optional accessibility info that can be set
|
protected String |
m_action
The action to perform.
|
protected String |
m_form
The form name string for the entry.
|
protected String |
m_name
The form field name.
|
protected String |
m_value
The value to display in the field.
|
CHECKED_FALSE, CHECKED_NA, CHECKED_TRUE, STATE_MENU| Constructor and Description |
|---|
MenuField(String name,
String form,
String action,
String value)
Construct.
|
MenuField(String name,
String form,
String action,
String value,
String accessibilityLabel)
Construct.
|
| 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 |
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 - this is really the form field name.
|
String |
getUrl()
Access the full URL string for this item; what to do when the user clicks.
|
String |
getValue()
Access the value string for this item - the initial value.
|
boolean |
isEmpty()
Check if there are any sub-items.
|
MenuField |
setUrl(String url)
Set the full URL of the entry.
|
int |
size()
Count the sub-items of the item.
|
protected String m_name
protected String m_form
protected String m_value
protected String m_action
protected String m_accessibilityLabel
public MenuField(String name, String form, String action, String value, String accessibilityLabel)
public MenuField 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 getValue()
public String getAction()
public String getUrl()
public String getForm()
public List getItems()
public MenuItem getItem(int index)
public int getChecked()
getChecked in interface MenuItemMenuItempublic int size()
public boolean isEmpty()
public boolean getIsField()
getIsField in interface MenuItempublic String getAccessibilityLabel()
getAccessibilityLabel in interface MenuItemCopyright © 2003-2014 The Sakai Foundation. All Rights Reserved.