public class

PopupToolbarMenuItem

extends Object
java.lang.Object
   ↳ com.pspdfkit.ui.toolbar.popup.PopupToolbarMenuItem

Class Overview

A class representation of a single popup toolbar menu item.

Summary

Public Constructors
PopupToolbarMenuItem(int id, int title)
Creates a menu item with given id and title.
PopupToolbarMenuItem(int id, int title, boolean isEnabled)
Creates a menu item with given id and title.
Public Methods
int getId()
Gets the menu item id.
int getTitle()
Gets the menu item title resource string.
boolean isEnabled()
Gets whether the menu item is enabled or not.
void setEnabled(boolean enabled)
Sets whether the menu item is enabled or not.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PopupToolbarMenuItem (int id, int title)

Creates a menu item with given id and title. This item is enabled by default.

Parameters
id The menu item id.
title The menu item title string resource.

public PopupToolbarMenuItem (int id, int title, boolean isEnabled)

Creates a menu item with given id and title.

Parameters
id The menu item id.
title The menu item title string resource.
isEnabled true to make the menu item enabled, false to disable it.

Public Methods

public int getId ()

Gets the menu item id.

Returns
  • Id of the menu item.

public int getTitle ()

Gets the menu item title resource string.

Returns
  • String resource of this menu item title.

public boolean isEnabled ()

Gets whether the menu item is enabled or not.

Returns
  • true if item is enabled, false if disabled.

public void setEnabled (boolean enabled)

Sets whether the menu item is enabled or not.

Parameters
enabled true to enable the menu item, false to disable it.