Enum ControlName
- All Implemented Interfaces:
ValueEnum
,Serializable
,Comparable<ControlName>
,Constable
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".
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA button to center the selected text.A button to left-align the selected text.A button to right-align the selected text.A color picker allowing the user to set the text background color.A button to make the current selection bold.A color-picker allowing the user to set the text color.A select item allowing the user to change the font of the current text selection.A select item allowing the user to change the font size of the current text selection.Within text, indents the paragraph.A button to make the current selection italic.A button to justify the selected line of text.Shows thelistPropertiesDialog
to allow configuring the options of the currently selected HTML list.Turns the current selection into an ordered list (HTML <ol>) or converts an unordered list to an ordered list.Within text, outdents the paragraph.A button to make the current selection underlined.Turns the current selection into an unordered list (HTML <ul>) or converts an ordered list to an unordered list. -
Method Summary
Modifier and TypeMethodDescriptiongetValue()
static ControlName
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.
-
Enum Constant Details
-
BOLDSELECTION
A button to make the current selection bold.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "boldSelection". -
ITALICSELECTION
A button to make the current selection italic.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "italicSelection". -
UNDERLINESELECTION
A button to make the current selection underlined.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "underlineSelection". -
FONTSELECTOR
A select item allowing the user to change the font of the current text selection.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fontSelector". -
FONTSIZESELECTOR
A select item allowing the user to change the font size of the current text selection.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "fontSizeSelector". -
ALIGNLEFT
A button to left-align the selected text.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "alignLeft". -
ALIGNRIGHT
A button to right-align the selected text.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "alignRight". -
ALIGNCENTER
A button to center the selected text.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "alignCenter". -
JUSTIFY
A button to justify the selected line of text.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "justify". -
COLOR
A color-picker allowing the user to set the text color.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "color". -
BACKGROUNDCOLOR
A color picker allowing the user to set the text background color.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "backgroundColor". -
INDENT
Within text, indents the paragraph. Within a list, increases the list level.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "indent". -
OUTDENT
Within text, outdents the paragraph. Within a list, decreases the list level.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "outdent". -
ORDEREDLIST
Turns the current selection into an ordered list (HTML <ol>) or converts an unordered list to an ordered list.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "orderedList". -
UNORDEREDLIST
Turns the current selection into an unordered list (HTML <ul>) or converts an ordered list to an unordered list.If this enumerated value is used in a
Component XML
file or server-side DataSource descriptor (.ds.xml file), use the value "unorderedList". -
LISTPROPERTIES
Shows thelistPropertiesDialog
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".
-
-
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
-
getValue
-