Enum MenuItemAction.MenuType
- java.lang.Object
-
- java.lang.Enum<MenuItemAction.MenuType>
-
- net.sf.basedb.clients.web.extensions.menu.MenuItemAction.MenuType
-
- All Implemented Interfaces:
Serializable
,Comparable<MenuItemAction.MenuType>
- Enclosing interface:
- MenuItemAction
public static enum MenuItemAction.MenuType extends Enum<MenuItemAction.MenuType>
-
-
Constructor Summary
Constructors Modifier Constructor Description private
MenuType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MenuItemAction.MenuType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MenuItemAction.MenuType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MENUITEM
public static final MenuItemAction.MenuType MENUITEM
This is a real menu item.
-
SUBMENU
public static final MenuItemAction.MenuType SUBMENU
A menu item that opens a submenu. Menu items of this type must provide a unique value forMenuItemAction.getSubmenuId()
. A regular menu item can be placed inside a submenu by specifying the same value forMenuItemAction.getMenuId()
.
-
SEPARATOR
public static final MenuItemAction.MenuType SEPARATOR
This is a separator line. All properties exceptMenuItemAction.getId()
,MenuItemAction.getClazz()
,MenuItemAction.getStyle()
andMenuItemAction.isVisible()
are ignored.
-
-
Method Detail
-
values
public static MenuItemAction.MenuType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MenuItemAction.MenuType c : MenuItemAction.MenuType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuItemAction.MenuType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-