public enum MenuItemRole extends Enum<MenuItemRole>
Enum Constant and Description |
---|
SUBMENU_HEADER
子菜单的标题。
|
SUBMENU_ITEM
子菜单中可调用命令的菜单项目。
|
TOP_LEVEL_HEADER
顶层菜单的标题。
|
TOP_LEVEL_ITEM
顶层菜单项目可调用命令。
|
Modifier and Type | Method and Description |
---|---|
static MenuItemRole |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MenuItemRole[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MenuItemRole TOP_LEVEL_ITEM
public static final MenuItemRole TOP_LEVEL_HEADER
public static final MenuItemRole SUBMENU_ITEM
public static final MenuItemRole SUBMENU_HEADER
public static MenuItemRole[] values()
for (MenuItemRole c : MenuItemRole.values()) System.out.println(c);
public static MenuItemRole valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright 2009-2012 Micro Focus. All Rights Reserved.