Enum Class FallbackEvent.FallbackMode
- All Implemented Interfaces:
Serializable, Comparable<FallbackEvent.FallbackMode>, Constable
- Enclosing class:
FallbackEvent
降级模式
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription显示错误消息 不提供编辑功能隐藏编辑器 完全不显示降级为只读模式 内容可见但不可编辑降级为原生 textarea 保持基本编辑功能,丢失富文本特性 -
Method Summary
Modifier and TypeMethodDescriptionstatic FallbackEvent.FallbackModefromJsName(String jsName) 从 JS 名称解析模式获取 JavaScript 端使用的模式名称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
降级为原生 textarea 保持基本编辑功能,丢失富文本特性 -
READ_ONLY
降级为只读模式 内容可见但不可编辑 -
ERROR_MESSAGE
显示错误消息 不提供编辑功能 -
HIDDEN
隐藏编辑器 完全不显示
-
-
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
从 JS 名称解析模式- Parameters:
jsName- JavaScript 端模式名- Returns:
- 对应的枚举值,未找到返回 ERROR_MESSAGE
-