public abstract class

ActionMenuItem

extends Object
java.lang.Object
   ↳ com.pspdfkit.ui.actionmenu.ActionMenuItem
Known Direct Subclasses

Class Overview

Represents item inside ActionMenu.

Summary

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()
int getItemId()
Return the resource id for this menu item.
ActionMenuItem.MenuItemType getItemType()
Return type of the action menu item.
String getLabel()
boolean isEnabled()
void setEnabled(boolean enabled)
Set the enabled state of this item.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected ActionMenuItem (int itemId, ActionMenuItem.MenuItemType itemType, Drawable icon, String label)

Create new item menu item representing single generic action.

Parameters
itemId Resource id representing menu item.
itemType Type of the item.
icon Icon for the menu item.
label Label of the menu item.

Public Methods

public Drawable getIcon ()

Returns
  • Item's icon.

public int getItemId ()

Return the resource id for this menu item.

Returns
  • Resource id identifying this menu item.

public ActionMenuItem.MenuItemType getItemType ()

Return type of the action menu item.

Returns
  • Menu item type.

public String getLabel ()

Returns
  • Item's label.

public boolean isEnabled ()

Returns
  • True if this menu item is enabled, false otherwise.

public void setEnabled (boolean enabled)

Set the enabled state of this item.

Parameters
enabled True if this menu item is enabled, false otherwise.