- All Implemented Interfaces:
Serializable
,Comparable<HTMLEditorSkin.Command>
,Constable
- Enclosing class:
- HTMLEditorSkin
public static enum HTMLEditorSkin.Command extends Enum<HTMLEditorSkin.Command>
Represents commands that can be passed into the HTMLEditor web engine.
-
Nested Class Summary
Nested classes/interfaces declared in class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description ALIGN_CENTER
Align Center command.ALIGN_JUSTIFY
Align Justify command.ALIGN_LEFT
Align Left command.ALIGN_RIGHT
Align Right command.BACKGROUND_COLOR
Background color command.BOLD
Bold command.BULLETS
Insert bullets command.COPY
Copy command.CUT
Cut command.FONT_FAMILY
Font name command.FONT_SIZE
Font size command.FOREGROUND_COLOR
Foreground color command.FORMAT
Format command.INDENT
Indent command.INSERT_HORIZONTAL_RULE
Command to insert horizontal rule.INSERT_NEW_LINE
Insert newline command.INSERT_TAB
Insert tab command.ITALIC
Italic command.NUMBERS
Insert numbers command.OUTDENT
Outdent command.PASTE
Paste command.REDO
Redo command.STRIKETHROUGH
Strikethrough command.STYLEWITHCSS
Style with CSS command.UNDERLINE
Underline command.UNDO
Undo command. -
Method Summary
Modifier and Type Method Description String
getCommand()
Gets the name of this command.static HTMLEditorSkin.Command
valueOf(String name)
Returns the enum constant of this type with the specified name.static HTMLEditorSkin.Command[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CUT
Cut command. -
COPY
Copy command. -
PASTE
Paste command. -
UNDO
Undo command. -
REDO
Redo command. -
INSERT_HORIZONTAL_RULE
Command to insert horizontal rule. -
ALIGN_LEFT
Align Left command. -
ALIGN_CENTER
Align Center command. -
ALIGN_RIGHT
Align Right command. -
ALIGN_JUSTIFY
Align Justify command. -
BULLETS
Insert bullets command. -
NUMBERS
Insert numbers command. -
INDENT
Indent command. -
OUTDENT
Outdent command. -
FORMAT
Format command. -
FONT_FAMILY
Font name command. -
FONT_SIZE
Font size command. -
BOLD
Bold command. -
ITALIC
Italic command. -
UNDERLINE
Underline command. -
STRIKETHROUGH
Strikethrough command. -
FOREGROUND_COLOR
Foreground color command. -
BACKGROUND_COLOR
Background color command. -
STYLEWITHCSS
Style with CSS command. -
INSERT_NEW_LINE
Insert newline command. -
INSERT_TAB
Insert tab command.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getCommand
Gets the name of this command.- Returns:
- the name of this command
-