Interface SelectField<F extends SelectField<F>>

    • Method Detail

      • multi

        default F multi​(boolean multi)
        Determines if the field is able to have multiple values. Set to true if it is able to contain multiple, otherwise false.
        Parameters:
        multi - the multi property
        Returns:
        this
      • searchable

        default F searchable​(boolean searchable)
        Determines if the field is searchable. Set to true if it is searchable, otherwise false.
        Parameters:
        searchable - the searchable property
        Returns:
        this
      • labelKey

        default F labelKey​(String labelKey)
        The key used to retrieve the labels of items in the select field.
        Parameters:
        labelKey - the label key property
        Returns:
        this
      • valueKey

        default F valueKey​(String valueKey)
        The key used to retrieve the values of items in the select field.
        Parameters:
        valueKey - the value key property
        Returns:
        this
      • option

        default F option​(String value,
                         String label)
        Provides an option which can be selected by a select field.
        Parameters:
        value - the value of the option
        label - the label of the option
        Returns:
        this
      • option

        default F option​(SelectOption... options)
        Provides options which can be selected by a select field.
        Parameters:
        options - SelectOptions to be set as options
        Returns:
        this
      • clearOptions

        default F clearOptions()
        Removes all the options from the select field.
        Returns:
        this