- 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_CENTERAlign Center command.ALIGN_JUSTIFYAlign Justify command.ALIGN_LEFTAlign Left command.ALIGN_RIGHTAlign Right command.BACKGROUND_COLORBackground color command.BOLDBold command.BULLETSInsert bullets command.COPYCopy command.CUTCut command.FONT_FAMILYFont name command.FONT_SIZEFont size command.FOREGROUND_COLORForeground color command.FORMATFormat command.INDENTIndent command.INSERT_HORIZONTAL_RULECommand to insert horizontal rule.INSERT_NEW_LINEInsert newline command.INSERT_TABInsert tab command.ITALICItalic command.NUMBERSInsert numbers command.OUTDENTOutdent command.PASTEPaste command.REDORedo command.STRIKETHROUGHStrikethrough command.STYLEWITHCSSStyle with CSS command.UNDERLINEUnderline command.UNDOUndo command. -
Method Summary
Modifier and Type Method Description StringgetCommand()Gets the name of this command.static HTMLEditorSkin.CommandvalueOf(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
-