Enum MenuSelectContainer.SelectionMode
- java.lang.Object
-
- java.lang.Enum<MenuSelectContainer.SelectionMode>
-
- com.github.bordertech.wcomponents.MenuSelectContainer.SelectionMode
-
- All Implemented Interfaces:
Serializable
,Comparable<MenuSelectContainer.SelectionMode>
- Enclosing interface:
- MenuSelectContainer
public static enum MenuSelectContainer.SelectionMode extends Enum<MenuSelectContainer.SelectionMode>
The available types of selection mode for the items in a menu.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MenuSelectContainer.SelectionMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static MenuSelectContainer.SelectionMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final MenuSelectContainer.SelectionMode NONE
No items can be selected.
-
SINGLE
public static final MenuSelectContainer.SelectionMode SINGLE
A single item can be selected.
-
MULTIPLE
public static final MenuSelectContainer.SelectionMode MULTIPLE
Multiple items can be selected.
-
-
Method Detail
-
values
public static MenuSelectContainer.SelectionMode[] 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 (MenuSelectContainer.SelectionMode c : MenuSelectContainer.SelectionMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MenuSelectContainer.SelectionMode 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
-
-