Class CmsBuiltinPreference.SelectOptions
java.lang.Object
org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
- Enclosing class:
- CmsBuiltinPreference
A bean representing a set of select options.
-
Constructor Summary
ConstructorDescriptionSelectOptions
(List<String> options, List<String> values, int selectedIndex) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionGets the select option labels.int
Gets the selected index.Gets the select widget values.Creates a configuration string for client-side select widgets from the options.
-
Constructor Details
-
SelectOptions
Creates a new instance.- Parameters:
options
- the option labelsvalues
- the option valuesselectedIndex
- the currently selected index
-
-
Method Details
-
getOptions
Gets the select option labels.- Returns:
- the select option labels
-
getSelectedIndex
Gets the selected index.- Returns:
- the selected index
-
getValues
Gets the select widget values.- Returns:
- the select widget values
-
toClientSelectWidgetConfiguration
Creates a configuration string for client-side select widgets from the options.- Returns:
- the widget configuration string
-