java.lang.Object | |
↳ | com.pspdfkit.ui.actionmenu.ActionMenuItem |
![]() |
Represents item inside ActionMenu
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
enum | ActionMenuItem.MenuItemType | Supported types of action menu items. |
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ActionMenuItem(int itemId, ActionMenuItem.MenuItemType itemType, Drawable icon, String label)
Create new item menu item representing single generic action.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Drawable |
getIcon()
Returns Item's icon.
| ||||||||||
int |
getItemId()
Return the resource id for this menu item.
| ||||||||||
ActionMenuItem.MenuItemType |
getItemType()
Return type of the action menu item.
| ||||||||||
String |
getLabel()
Returns Item's label.
| ||||||||||
boolean |
isEnabled()
Returns True if this menu item is enabled, false otherwise.
| ||||||||||
void |
setEnabled(boolean enabled)
Sets the enabled state of this item.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create new item menu item representing single generic action.
itemId | Resource id representing menu item. |
---|---|
itemType | Type of the item. |
icon | Icon for the menu item. |
label | Label of the menu item. |
Return the resource id for this menu item.
Return type of the action menu item.
Returns True if this menu item is enabled, false otherwise.
Sets the enabled state of this item.
enabled | True if this menu item is enabled, false otherwise. |
---|