public enum NoteRenderMode extends Enum<NoteRenderMode>
Enum Constant and Description |
---|
HTML
the note content should be rendered in a generic HTML format, i.e.
|
PLAIN
the note content should be rendered as plain text
|
PORTAL
the notes are rendered by the web frontend and thus can contain custom JavaScript calls
available in the frontend
|
REPOST
The rendered note will be used to prepare an editor for creating a repost to this note.
|
REPOST_PLAIN
The rendered note will be used to prepare an editor for creating a repost to this note.
|
Modifier and Type | Field and Description |
---|---|
static String |
PLAIN_MODE_OPTION_KEY_BEAUTIFY
Key for a mode option to inform the pre-processors that the plain text version of the content
should be beautified (e.g.
|
Modifier and Type | Method and Description |
---|---|
static NoteRenderMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoteRenderMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoteRenderMode HTML
public static final NoteRenderMode PLAIN
public static final NoteRenderMode PORTAL
public static final NoteRenderMode REPOST
public static final NoteRenderMode REPOST_PLAIN
public static final String PLAIN_MODE_OPTION_KEY_BEAUTIFY
public static NoteRenderMode[] values()
for (NoteRenderMode c : NoteRenderMode.values()) System.out.println(c);
public static NoteRenderMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2019 Communote team. All rights reserved.