Class CmsBuiltinPreference.SelectOptions

    • Constructor Summary

      Constructors 
      Constructor Description
      SelectOptions​(java.util.List<java.lang.String> options, java.util.List<java.lang.String> values, int selectedIndex)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SelectOptions

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

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

      • getOptions

        public java.util.List<java.lang.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 java.util.List<java.lang.String> getValues()
        Gets the select widget values.

        Returns:
        the select widget values
      • toClientSelectWidgetConfiguration

        public java.lang.String toClientSelectWidgetConfiguration()
        Creates a configuration string for client-side select widgets from the options.

        Returns:
        the widget configuration string