Interface CustomEnumParameter

All Superinterfaces:
RichPageParameter

public interface CustomEnumParameter extends RichPageParameter
Widget Parameter for selecting value from custom enumeration.
Widget developer specifies available options by CustomEnumParameter.Builder.addEnumItem(String, String)
Since:
3.10.1
  • Method Details

    • values

      @NotNull StrictList<String> values()
      Return selected values. Can be empty.
      Returns:
      list with values.
    • singleValue

      @Nullable String singleValue()
      Returns first selected value or null if nothing is selected.
    • names

      @NotNull StrictList<String> names()
      Return selected names. Can be empty.
      Returns:
      list with names.
      Since:
      3.10.2
    • singleName

      @Nullable String singleName()
      Returns first selected name or null if nothing is selected.
      Since:
      3.10.2
    • allowMultipleValues

      boolean allowMultipleValues()
      Returns true if this parameter is multiple.
      Since:
      3.10.2
    • set

      Returns:
      interface for setting parameter configuration which can be used inside RichPageWidget.processParameterDependencies(RichPageWidgetDependenciesContext) to change parameter configuration depending on values set by user in other parameters.
      Throws:
      UnsupportedOperationException - if this parameter is a page parameter.