public enum EditorCommand extends java.lang.Enum<EditorCommand>
Enum Constant and Description |
---|
BACKGROUND_COLOR
Sets background color for selected text in a WYSIWYG editor.
|
BOLD |
COPY |
CUT |
DELETE
Deletes selected text in text field, text area or WYSIWYG editor.
|
DELETE_BACKWARD
Deletes character before caret position in text field, text area or WYSIWYG editor.
|
DELETE_FORWARD
Deletes character after caret position in text field, text area or WYSIWYG editor.
|
DELETE_TO_BEGINNING_OF_LINE |
DELETE_WORD_BACKWARD |
DELETE_WORD_FORWARD |
FIND_STRING
Searches for the next string occurrence from the current caret position in the loaded web page.
|
FONT_NAME
Sets font name for selected text in a WYSIWYG editor.
|
FONT_SIZE
Sets font size for selected text in a WYSIWYG editor.
|
FOREGROUND_COLOR
Sets foreground color for selected text in a WYSIWYG editor.
|
IGNORE_SPELLING
Disables spelling mistakes highlighting in a text area or WYSIWYG editor.
|
INSERT_HTML
Inserts HTML in a WYSIWYG editor.
|
INSERT_IMAGE
Inserts image in a WYSIWYG editor.
|
INSERT_NEW_LINE |
INSERT_PARAGRAPH
Inserts new paragraph in a WYSIWYG editor.
|
INSERT_TAB |
INSERT_TEXT |
ITALIC |
MOVE_PAGE_DOWN |
MOVE_PAGE_UP |
MOVE_TO_BEGINNING_OF_LINE |
MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION |
MOVE_TO_END_OF_LINE |
MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION |
MOVE_WORD_LEFT |
MOVE_WORD_LEFT_AND_MODIFY_SELECTION |
MOVE_WORD_RIGHT |
MOVE_WORD_RIGHT_AND_MODIFY_SELECTION |
PASTE |
REDO |
SCROLL_LINE_DOWN |
SCROLL_LINE_UP |
SCROLL_PAGE_BACKWARD |
SCROLL_PAGE_FORWARD |
SCROLL_TO_BEGINNING_OF_DOCUMENT |
SCROLL_TO_END_OF_DOCUMENT |
SELECT_ALL |
SELECT_LINE
Selects line at the current cursor position in a text area, text field or a WYSIWYG editor.
|
SELECT_PARAGRAPH |
SELECT_SENTENCE |
SELECT_WORD |
TOGGLE_BOLD
Toggle bold style for selected text in a WYSIWYG editor.
|
TOGGLE_ITALIC
Toggle italic style for selected text in a WYSIWYG editor.
|
TOGGLE_UNDERLINE
Toggle underline style for selected text in a WYSIWYG editor.
|
UNDERLINE |
UNDO |
UNSELECT |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandText()
Returns text representation of the command.
返回命令的文本表示形式。 |
boolean |
isValueRequired()
Returns
如果命令需要值,则返回true。 true if command requires value.
|
static EditorCommand |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static EditorCommand[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final EditorCommand BACKGROUND_COLOR
public static final EditorCommand BOLD
public static final EditorCommand COPY
public static final EditorCommand CUT
public static final EditorCommand DELETE
public static final EditorCommand DELETE_BACKWARD
public static final EditorCommand DELETE_FORWARD
public static final EditorCommand DELETE_TO_BEGINNING_OF_LINE
public static final EditorCommand DELETE_WORD_BACKWARD
public static final EditorCommand DELETE_WORD_FORWARD
public static final EditorCommand FIND_STRING
public static final EditorCommand FONT_SIZE
public static final EditorCommand FONT_NAME
public static final EditorCommand FOREGROUND_COLOR
public static final EditorCommand INSERT_IMAGE
src
attribute for IMG tag.
public static final EditorCommand INSERT_HTML
public static final EditorCommand INSERT_NEW_LINE
public static final EditorCommand INSERT_PARAGRAPH
public static final EditorCommand INSERT_TAB
public static final EditorCommand INSERT_TEXT
public static final EditorCommand IGNORE_SPELLING
public static final EditorCommand ITALIC
public static final EditorCommand MOVE_PAGE_UP
public static final EditorCommand MOVE_PAGE_DOWN
public static final EditorCommand MOVE_WORD_LEFT
public static final EditorCommand MOVE_WORD_LEFT_AND_MODIFY_SELECTION
public static final EditorCommand MOVE_WORD_RIGHT
public static final EditorCommand MOVE_WORD_RIGHT_AND_MODIFY_SELECTION
public static final EditorCommand MOVE_TO_BEGINNING_OF_LINE
public static final EditorCommand MOVE_TO_BEGINNING_OF_LINE_AND_MODIFY_SELECTION
public static final EditorCommand MOVE_TO_END_OF_LINE
public static final EditorCommand MOVE_TO_END_OF_LINE_AND_MODIFY_SELECTION
public static final EditorCommand PASTE
public static final EditorCommand REDO
public static final EditorCommand SCROLL_PAGE_BACKWARD
public static final EditorCommand SCROLL_PAGE_FORWARD
public static final EditorCommand SCROLL_LINE_UP
public static final EditorCommand SCROLL_LINE_DOWN
public static final EditorCommand SCROLL_TO_BEGINNING_OF_DOCUMENT
public static final EditorCommand SCROLL_TO_END_OF_DOCUMENT
public static final EditorCommand SELECT_ALL
public static final EditorCommand SELECT_LINE
public static final EditorCommand SELECT_PARAGRAPH
public static final EditorCommand SELECT_SENTENCE
public static final EditorCommand SELECT_WORD
public static final EditorCommand TOGGLE_BOLD
public static final EditorCommand TOGGLE_ITALIC
public static final EditorCommand TOGGLE_UNDERLINE
public static final EditorCommand UNDERLINE
public static final EditorCommand UNDO
public static final EditorCommand UNSELECT
public static EditorCommand[] values()
for (EditorCommand c : EditorCommand.values()) System.out.println(c);
public static EditorCommand valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public java.lang.String getCommandText()
public boolean isValueRequired()
true
if command requires value.