Package com.jbstrap.ui.components.enums
Enum Class MenuOperation
- All Implemented Interfaces:
Serializable
,Comparable<MenuOperation>
,Constable
The menu operation types
- Since:
- 4.0
- Author:
- JBStrap
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionCustom event handlingNo operation typePage opening operation -
Method Summary
Modifier and TypeMethodDescriptionstatic MenuOperation
Defines the operation type by using its name.static MenuOperation
Returns the enum constant of this class with the specified name.static MenuOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OPEN_PAGE
Page opening operation
Menu items with this type open the page that is specified (by its page id) on the interface.
-
CUSTOM_EVENT
Custom event handling
Menu items with this type won't run any operations automatically, instead they will run the previously specified event handler.
-
NONE
No operation type
Menu items with this type won't do any operations.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
fromName
Defines the operation type by using its name.- Parameters:
name
- The operation type name- Returns:
- The operation type or
null
if not found
-