public enum ControlName extends java.lang.Enum<ControlName> implements ValueEnum
ControlNames
are strings used to specify which UI controls should appear in the editor toolbar.Enum Constant and Description |
---|
ALIGNCENTER
A button to center the selected text
|
ALIGNLEFT
A button to left-align the selected text.
|
ALIGNRIGHT
A button to right-align the selected text.
|
BACKGROUNDCOLOR
A color picker allowing the user to set the text background color
|
BOLDSELECTION
A button to make the current selection bold.
|
COLOR
A color-picker allowing the user to set the text color
|
FONTSELECTOR
A select item allowing the user to change the font of the current text selection.
|
FONTSIZESELECTOR
A select item allowing the user to change the font size of the current text selection.
|
ITALICSELECTION
A button to make the current selection italic.
|
JUSTIFY
A button to justify the selected line of text.
|
UNDERLINESELECTION
A button to make the current selection underlined.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static ControlName |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ControlName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ControlName BOLDSELECTION
public static final ControlName ITALICSELECTION
public static final ControlName UNDERLINESELECTION
public static final ControlName FONTSELECTOR
public static final ControlName FONTSIZESELECTOR
public static final ControlName ALIGNLEFT
public static final ControlName ALIGNRIGHT
public static final ControlName ALIGNCENTER
public static final ControlName JUSTIFY
public static final ControlName COLOR
public static final ControlName BACKGROUNDCOLOR
public static ControlName[] values()
for (ControlName c : ControlName.values()) System.out.println(c);
public static ControlName 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 namejava.lang.NullPointerException
- if the argument is null