public static class CmsBuiltinPreference.SelectOptions extends java.lang.Object
Constructor and Description |
---|
CmsBuiltinPreference.SelectOptions(java.util.List<java.lang.String> options,
java.util.List<java.lang.String> values,
int selectedIndex)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getOptions()
Gets the select option labels.
|
int |
getSelectedIndex()
Gets the selected index.
|
java.util.List<java.lang.String> |
getValues()
Gets the select widget values.
|
java.lang.String |
toClientSelectWidgetConfiguration()
Creates a configuration string for client-side select widgets from the options.
|
public CmsBuiltinPreference.SelectOptions(java.util.List<java.lang.String> options, java.util.List<java.lang.String> values, int selectedIndex)
options
- the option labelsvalues
- the option valuesselectedIndex
- the currently selected indexpublic java.util.List<java.lang.String> getOptions()
public int getSelectedIndex()
public java.util.List<java.lang.String> getValues()
public java.lang.String toClientSelectWidgetConfiguration()