Enum Class ErrorDisplayState
- All Implemented Interfaces:
Serializable
,Comparable<ErrorDisplayState>
,Constable
The ErrorDisplayState enum represents different states for displaying error messages and provides methods to get the
display string and find a state by its display string.
The following states are available:
POPUP_AND_LOG
- Display error messages in a popup and log areaLOG_ONLY
- Display error messages only in the log area
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplay error messages only in the log areaDisplay error messages in a popup and log area -
Method Summary
Modifier and TypeMethodDescriptionReturns a user-friendly display string for the error display state.static ErrorDisplayState
fromDisplayString
(String displayString) Finds an ErrorDisplayState by its display string.static ErrorDisplayState
Returns the enum constant of this class with the specified name.static ErrorDisplayState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
POPUP_AND_LOG
Display error messages in a popup and log area -
LOG_ONLY
Display error messages only in the log area
-
-
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
-
convertToDisplayString
Returns a user-friendly display string for the error display state.- Returns:
- the display string
-
fromDisplayString
Finds an ErrorDisplayState by its display string.- Parameters:
displayString
- the display string to search for- Returns:
- the corresponding ErrorDisplayState
- Throws:
IllegalArgumentException
- if no match is found
-