Class CmsBuiltinPreference.SelectOptions

java.lang.Object
org.opencms.configuration.preferences.CmsBuiltinPreference.SelectOptions
Enclosing class:
CmsBuiltinPreference

public static class CmsBuiltinPreference.SelectOptions extends Object
A bean representing a set of select options.

  • Constructor Details

    • SelectOptions

      public SelectOptions(List<String> options, List<String> values, int selectedIndex)
      Creates a new instance.

      Parameters:
      options - the option labels
      values - the option values
      selectedIndex - the currently selected index
  • Method Details

    • getOptions

      public List<String> getOptions()
      Gets the select option labels.

      Returns:
      the select option labels
    • getSelectedIndex

      public int getSelectedIndex()
      Gets the selected index.

      Returns:
      the selected index
    • getValues

      public List<String> 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