Class CmsSelectConfigurationParser

java.lang.Object
org.opencms.acacia.client.widgets.CmsSelectConfigurationParser

Parses the configuration for various select widgets, including multi-select and combo-box.

It expects the canonical format of the configuration options as it is produced by CmsSelectWidgetOption.createConfigurationString(List)

  • Constructor Details

    • CmsSelectConfigurationParser

      public CmsSelectConfigurationParser(String configuration)
      Constructor. Will parse the given configuration string.

      Parameters:
      configuration - the configuration
  • Method Details

    • findNextUnescapedSingleQuote

      public static int findNextUnescapedSingleQuote(String input)
      Splits the options string at every unescaped input delimiter, i.e., every unescaped "|".
      Parameters:
      input - the options string
      Returns:
      the array with the various options
    • splitOptions

      public static String[] splitOptions(String input)
      Splits the options string at every unescaped input delimiter, i.e., every unescaped "|".
      Parameters:
      input - the options string
      Returns:
      the array with the various options
    • getDefaultValue

      Returns the default value.

      Returns:
      the default value
    • getDefaultValues

      Returns the default value.

      Returns:
      the default value
    • getHelpTexts

      Returns the help texts.

      Returns:
      the help texts
    • getOptions

      Returns the options.

      Returns:
      the options