Enum Class FallbackEvent.FallbackMode

java.lang.Object
java.lang.Enum<FallbackEvent.FallbackMode>
com.wontlost.ckeditor.event.FallbackEvent.FallbackMode
All Implemented Interfaces:
Serializable, Comparable<FallbackEvent.FallbackMode>, Constable
Enclosing class:
FallbackEvent

public static enum FallbackEvent.FallbackMode extends Enum<FallbackEvent.FallbackMode>
降级模式
  • Enum Constant Details

  • Method Details

    • values

      public static FallbackEvent.FallbackMode[] 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

      public static FallbackEvent.FallbackMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getJsName

      public String getJsName()
      获取 JavaScript 端使用的模式名称
      Returns:
      JS 模式名
    • fromJsName

      public static FallbackEvent.FallbackMode fromJsName(String jsName)
      从 JS 名称解析模式
      Parameters:
      jsName - JavaScript 端模式名
      Returns:
      对应的枚举值,未找到返回 ERROR_MESSAGE