@UnsafeScriptable public interface MenuItemAction extends Action
Extensions
menu.
There are three types of menu items:
getSubmenuId()
.
Regular menu items can be put into the submenu item by specifying
the same id for getMenuId()
.
Modifier and Type | Interface and Description |
---|---|
static class |
MenuItemAction.MenuType |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClazz()
Class attribute to add to the main menu tag.
|
java.lang.String |
getIcon()
Get an absolute reference to an image that will be displayed in the menu.
|
java.lang.String |
getId()
ID attribute of the main menu tag.
|
java.lang.String |
getMenuId()
The ID of the menu where this menu item belongs, or null if
it belongs to the top-level menu.
|
java.lang.String |
getStyle()
Extra CSS style attributes that will be added to the
style attribute of the menu item div. |
java.lang.String |
getSubmenuId()
The ID of a new submenu.
|
java.lang.String |
getTitle()
Get the title of the menu.
|
java.lang.String |
getTooltip()
A tooltip that is shown as a yellow popup when the
user points the mouse at the menu item.
|
MenuItemAction.MenuType |
getType()
The type of menu item.
|
boolean |
isEnabled()
If the menu item should be enabled or disabled.
|
boolean |
isVisible()
If the menu item should be visible or not.
|
java.lang.String getId()
java.lang.String getClazz()
MenuItemAction.MenuType getType()
java.lang.String getMenuId()
java.lang.String getSubmenuId()
MenuItemAction.MenuType.SUBMENU
, and is ignored otherwise.java.lang.String getTitle()
java.lang.String getTooltip()
java.lang.String getIcon()
java.lang.String getStyle()
style
attribute of the menu item div.boolean isEnabled()
boolean isVisible()