Enum CustomOperationActionVisibility
- java.lang.Object
-
- java.lang.Enum<CustomOperationActionVisibility>
-
- org.cyclos.model.system.operations.CustomOperationActionVisibility
-
- All Implemented Interfaces:
Serializable,Comparable<CustomOperationActionVisibility>,HasMessageKey
public enum CustomOperationActionVisibility extends Enum<CustomOperationActionVisibility> implements HasMessageKey
Determines when is displayed the action
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_RUNThe action is displayed after run the custom operationBEFORE_RUNThe action is displayed before run the custom operationBOTHThe action is displayed before and after run the custom operation
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MessageKeygetMessageKey()booleanisVisible(boolean beforeRun)static CustomOperationActionVisibilityvalueOf(String name)Returns the enum constant of this type with the specified name.static CustomOperationActionVisibility[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BEFORE_RUN
public static final CustomOperationActionVisibility BEFORE_RUN
The action is displayed before run the custom operation
-
AFTER_RUN
public static final CustomOperationActionVisibility AFTER_RUN
The action is displayed after run the custom operation
-
BOTH
public static final CustomOperationActionVisibility BOTH
The action is displayed before and after run the custom operation
-
-
Method Detail
-
values
public static CustomOperationActionVisibility[] 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 (CustomOperationActionVisibility c : CustomOperationActionVisibility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CustomOperationActionVisibility 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
-
getMessageKey
public MessageKey getMessageKey()
- Specified by:
getMessageKeyin interfaceHasMessageKey
-
isVisible
public boolean isVisible(boolean beforeRun)
-
-