Enum BlankOption
- All Implemented Interfaces:
Serializable
,Comparable<BlankOption>
,java.lang.constant.Constable
Used with the
Select
component to control whether an initial blank
option is supplied. Determines the optionality of the undelrying property from the Select's validate parameter-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic BlankOption
Returns the enum constant of this type with the specified name.static BlankOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ALWAYS
Always include the blank option, even if the underlying property is required. -
NEVER
Never include the blank option, even if the underlying property is optional. -
AUTO
The default: include the blank option if the underlying property is optional.
-
-
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
-