public class PluginMenuItem
extends java.lang.Object
| Constructor and Description |
|---|
PluginMenuItem(java.lang.String actionId)
Creates a simple menu item.
|
PluginMenuItem(java.lang.String actionId,
java.lang.String actionLabel)
Creates a simple menu item.
|
PluginMenuItem(java.lang.String actionIdsLabel,
java.lang.String[] actionIds)
Constructs a menu item as a list of items.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getActionId()
Returns an identifier for an action that is performed by this menu item.
|
java.lang.String[] |
getActionIds()
Returns an array of identifiers for actions that are performed by this menu item.
|
java.lang.String |
getActionIdsLabel(java.util.Locale locale)
Returns a label for the action identifier.
|
java.lang.String |
getActionLabel()
Returns custom label for an action that is performed by this menu item.
|
public PluginMenuItem(java.lang.String actionId)
actionId - The action identifier for the action associated with the menu item.public PluginMenuItem(java.lang.String actionId,
java.lang.String actionLabel)
actionId - The action identifier for the action associated with the menu item.actionId - The custom label for the action associated with the menu item.public PluginMenuItem(java.lang.String actionIdsLabel,
java.lang.String[] actionIds)
actionIdsLabel - A label that is used to identify the menu item.actionIds - An array of identifiers for the actions on the menu.public java.lang.String getActionId()
String that is used to identify an action.public java.lang.String getActionIdsLabel(java.util.Locale locale)
String that is used to identify the list of actions.public java.lang.String[] getActionIds()
Strings that is used to identify the list of actions.public java.lang.String getActionLabel()
String that is used to identify an action.