Enum Class FallbackEvent.FallbackMode
- All Implemented Interfaces:
Serializable, Comparable<FallbackEvent.FallbackMode>, Constable
- Enclosing class:
FallbackEvent
Fallback mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDisplay an error message.Hide the editor.Fall back to read-only mode.Fall back to a native textarea. -
Method Summary
Modifier and TypeMethodDescriptionstatic FallbackEvent.FallbackModefromJsName(String jsName) Parse a mode from its JS name.Get the JavaScript-side mode name.static FallbackEvent.FallbackModeReturns the enum constant of this class with the specified name.static FallbackEvent.FallbackMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TEXTAREA
Fall back to a native textarea. Retains basic editing capability but loses rich text features. -
READ_ONLY
Fall back to read-only mode. Content is visible but not editable. -
ERROR_MESSAGE
Display an error message. No editing capability provided. -
HIDDEN
Hide the editor. Nothing is displayed.
-
-
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
-
getJsName
-
fromJsName
Parse a mode from its JS name.- Parameters:
jsName- the JavaScript-side mode name- Returns:
- the corresponding enum value, or ERROR_MESSAGE if not found
-