public class MenuItemBean extends DynamicActionAttributeSupport implements MenuItemAction
MenuItemAction
interface.MenuItemAction.MenuType
Modifier and Type | Field and Description |
---|---|
private String |
clazz |
private boolean |
enabled |
private String |
icon |
private String |
id |
private String |
menuId |
private String |
style |
private String |
submenuId |
private String |
title |
private String |
tooltip |
private MenuItemAction.MenuType |
type |
private boolean |
visible |
Constructor and Description |
---|
MenuItemBean()
Create a new empty menu item action.
|
Modifier and Type | Method and Description |
---|---|
String |
getClazz()
Class attribute to add to the main menu tag.
|
String |
getIcon()
Get an absolute reference to an image that will be displayed in the menu.
|
String |
getId()
ID attribute of the main menu tag.
|
String |
getMenuId()
The ID of the menu where this menu item belongs, or null if
it belongs to the top-level menu.
|
String |
getStyle()
Extra CSS style attributes that will be added to the
style attribute of the menu item div. |
String |
getSubmenuId()
The ID of a new submenu.
|
String |
getTitle()
Get the title of the menu.
|
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.
|
void |
setClazz(String clazz) |
void |
setEnabled(boolean enabled) |
void |
setIcon(String icon) |
void |
setId(String id) |
void |
setMenuId(String menuId) |
void |
setStyle(String style) |
void |
setSubmenuId(String submenuId) |
void |
setTitle(String title) |
void |
setTooltip(String tooltip) |
void |
setType(MenuItemAction.MenuType type) |
void |
setVisible(boolean visible) |
addAttributes, getAttributesString, getDynamicActionAttributes, setDynamicActionAttributesSource
private String id
private String menuId
private String submenuId
private String icon
private String clazz
private String style
private String title
private String tooltip
private boolean enabled
private boolean visible
private MenuItemAction.MenuType type
public String getId()
MenuItemAction
getId
in interface MenuItemAction
public String getClazz()
MenuItemAction
getClazz
in interface MenuItemAction
public String getIcon()
MenuItemAction
getIcon
in interface MenuItemAction
public String getMenuId()
MenuItemAction
getMenuId
in interface MenuItemAction
public String getStyle()
MenuItemAction
style
attribute of the menu item div.getStyle
in interface MenuItemAction
public String getSubmenuId()
MenuItemAction
MenuItemAction.MenuType.SUBMENU
, and is ignored otherwise.getSubmenuId
in interface MenuItemAction
public String getTitle()
MenuItemAction
getTitle
in interface MenuItemAction
public String getTooltip()
MenuItemAction
getTooltip
in interface MenuItemAction
public MenuItemAction.MenuType getType()
MenuItemAction
getType
in interface MenuItemAction
public boolean isEnabled()
MenuItemAction
isEnabled
in interface MenuItemAction
public boolean isVisible()
MenuItemAction
isVisible
in interface MenuItemAction
public void setId(String id)
public void setClazz(String clazz)
public void setIcon(String icon)
public void setMenuId(String menuId)
public void setStyle(String style)
public void setSubmenuId(String submenuId)
public void setTitle(String title)
public void setTooltip(String tooltip)
public void setEnabled(boolean enabled)
public void setVisible(boolean visible)
public void setType(MenuItemAction.MenuType type)