- All Implemented Interfaces:
Serializable
,Comparable<HTMLEditorSkin.Command>
,Constable
- Enclosing class:
HTMLEditorSkin
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 ConstantDescriptionAlign Center command.Align Justify command.Align Left command.Align Right command.Background color command.Bold command.Insert bullets command.Copy command.Cut command.Font name command.Font size command.Foreground color command.Format command.Indent command.Command to insert horizontal rule.Insert newline command.Insert tab command.Italic command.Insert numbers command.Outdent command.Paste command.Redo command.Strikethrough command.Style with CSS command.Underline command.Undo command. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of this command.static HTMLEditorSkin.Command
Returns the enum constant of this class with the specified name.static HTMLEditorSkin.Command[]
values()
Returns an array containing the constants of this enum class, 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 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
-
getCommand
Gets the name of this command.- Returns:
- the name of this command
-