Enum SecureOption
- All Implemented Interfaces:
Serializable
,Comparable<SecureOption>
,java.lang.constant.Constable
Possible values of the "secure" parameter for components that use a
SelectModel
(such as Select
), to control whether the submitted
value must be one of the values in the SelectModel.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlways check that the submitted value is found in the SelectModel (and record a validation error if the SelectModel is not provided (null).The default: check that the submitted value is found in the SelectModel, unless the SelectModel is not provided (null) at the time of submission.Never check that submitted value is found in the SelectModel. -
Method Summary
Modifier and TypeMethodDescriptionstatic SecureOption
Returns the enum constant of this type with the specified name.static SecureOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always check that the submitted value is found in the SelectModel (and record a validation error if the SelectModel is not provided (null). -
NEVER
Never check that submitted value is found in the SelectModel. It is left to the user of the component to validate the submitted value. -
AUTO
The default: check that the submitted value is found in the SelectModel, unless the SelectModel is not provided (null) at the time of submission. Since SelectModels are automatically provided for enums but not custom classes, this is the most useful option in cases where you don't want to persist a custom SelectModel across a form submission or recreate it when the form is submitted).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-