Enum Class MarkdownEditorMode
- All Implemented Interfaces:
Serializable,Comparable<MarkdownEditorMode>,Constable
The display mode of the
JmixMarkdownEditor.-
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 MarkdownEditorModefromPropertyValue(String value) Returns theModecorresponding to the given web-component property value, falling back toEDITfor unrecognised values.Returns the web-component property value for this mode.static MarkdownEditorModeReturns the enum constant of this class with the specified name.static MarkdownEditorMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EDIT
Edit mode — the user can type and format Markdown. -
PREVIEW
Preview mode — the Markdown is rendered as formatted HTML.
-
-
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
-
getPropertyValue
Returns the web-component property value for this mode.- Returns:
- the property value string
-
fromPropertyValue
Returns theModecorresponding to the given web-component property value, falling back toEDITfor unrecognised values.- Parameters:
value- the property value string- Returns:
- the matching
Mode
-