2.17.2: 2011-06-17

net.sf.basedb.clients.web.extensions.menu
Enum MenuItemAction.MenuType

java.lang.Object
  extended by java.lang.Enum<MenuItemAction.MenuType>
      extended by 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>


Enum Constant Summary
MENUITEM
          This is a real menu item.
SEPARATOR
          This is a separator line.
SUBMENU
          A menu item that opens a submenu.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

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 for MenuItemAction.getSubmenuId(). A regular menu item can be placed inside a submenu by specifying the same value for MenuItemAction.getMenuId().


SEPARATOR

public static final MenuItemAction.MenuType SEPARATOR
This is a separator line. All properties except MenuItemAction.isVisible() and MenuItemAction.getStyle() 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 name
NullPointerException - if the argument is null

2.17.2: 2011-06-17