Package com.pspdfkit.ui.actionmenu
Class ActionMenuItem
-
- All Implemented Interfaces:
public abstract class ActionMenuItem
Represents item inside ActionMenu.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
ActionMenuItem.MenuItemType
Supported types of action menu items.
-
Method Summary
Modifier and Type Method Description int
getItemId()
Return the resource id for this menu item. Drawable
getIcon()
Returns Item's icon. String
getLabel()
Returns Item's label. ActionMenuItem.MenuItemType
getItemType()
Return type of the action menu item. boolean
isEnabled()
Returns True if this menu item is enabled, false otherwise. void
setEnabled(boolean enabled)
Sets the enabled state of this item. -
-
Method Detail
-
getItemId
@IdRes() int getItemId()
Return the resource id for this menu item.
- Returns:
Resource id identifying this menu item.
-
getItemType
@NonNull() ActionMenuItem.MenuItemType getItemType()
Return type of the action menu item.
- Returns:
Menu item type.
-
isEnabled
boolean isEnabled()
Returns True if this menu item is enabled, false otherwise.
-
setEnabled
void setEnabled(boolean enabled)
Sets the enabled state of this item.
- Parameters:
enabled
- True if this menu item is enabled, false otherwise.
-
-
-
-