java.lang.Object | |
↳ | com.pspdfkit.ui.toolbar.popup.PopupToolbarMenuItem |
A class representation of a single popup toolbar menu item.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a menu item with given id and title. This item is enabled by default.
id | The menu item id. |
---|---|
title | The menu item title string resource. |
Creates a menu item with given id and title.
id | The menu item id. |
---|---|
title | The menu item title string resource. |
isEnabled | true to make the menu item enabled, false to disable it.
|
Gets the menu item id.
Gets the menu item title resource string.
Gets whether the menu item is enabled or not.
true
if item is enabled, false
if disabled.
Sets whether the menu item is enabled or not.
enabled | true to enable the menu item, false to disable it.
|
---|