public enum ControlName extends java.lang.Enum<ControlName> implements ValueEnum
ControlNames
in APIs like
RichTextEditor.styleControls
to control the order in
which controls appear, to omit default controls or to show controls that are not shown by default. Every
ControlName
is also the name of an com.smartgwt.client.types.AutoChild
, so all the built-in
controls can be skinned or otherwise customized via the AutoChild
system
. Note that the AutoChild name in each case is the camelCaps version of the ControlName
value. For
example, use "boldSelection" as the name of the AutoChild for the bold button, not "BOLDSELECTION".
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.
|
INDENT
Within text, indents the paragraph.
|
ITALICSELECTION
A button to make the current selection italic.
|
JUSTIFY
A button to justify the selected line of text.
|
LISTPROPERTIES
Shows the
listPropertiesDialog to allow
configuring the options of the currently selected HTML list. |
ORDEREDLIST
Turns the current selection into an ordered list (HTML <ol>) or converts an unordered list to an ordered list.
|
OUTDENT
Within text, outdents the paragraph.
|
UNDERLINESELECTION
A button to make the current selection underlined.
|
UNORDEREDLIST
Turns the current selection into an unordered list (HTML <ul>) or converts an ordered list to an unordered list.
|
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
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "boldSelection".
public static final ControlName ITALICSELECTION
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "italicSelection".
public static final ControlName UNDERLINESELECTION
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "underlineSelection".
public static final ControlName FONTSELECTOR
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fontSelector".
public static final ControlName FONTSIZESELECTOR
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fontSizeSelector".
public static final ControlName ALIGNLEFT
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "alignLeft".
public static final ControlName ALIGNRIGHT
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "alignRight".
public static final ControlName ALIGNCENTER
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "alignCenter".
public static final ControlName JUSTIFY
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "justify".
public static final ControlName COLOR
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "color".
public static final ControlName BACKGROUNDCOLOR
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "backgroundColor".
public static final ControlName INDENT
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "indent".
public static final ControlName OUTDENT
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "outdent".
public static final ControlName ORDEREDLIST
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "orderedList".
public static final ControlName UNORDEREDLIST
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "unorderedList".
public static final ControlName LISTPROPERTIES
listPropertiesDialog
to allow
configuring the options of the currently selected HTML list.
If this enumerated value is used in a Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "listProperties".
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