Interface SelectBuilder

All Superinterfaces:
ElementBuilderBase<SelectBuilder>
All Known Implementing Classes:
DomSelectBuilder, HtmlSelectBuilder

public interface SelectBuilder extends ElementBuilderBase<SelectBuilder>
Builds an select element.
  • Method Details

    • disabled

      SelectBuilder disabled()
      Disable the select box.
      See Also:
    • multiple

      SelectBuilder multiple()
      Allow multiple options to be selected.
      See Also:
    • name

      SelectBuilder name(String name)
      Form control or object name when submitted with a form.
      See Also:
    • selectedIndex

      SelectBuilder selectedIndex(int index)
      The ordinal index of the selected option, starting from 0. The value -1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.
    • size

      SelectBuilder size(int size)
      Number of visible rows.
      See Also:
    • type

      SelectBuilder type(String type)
      The type of this form control. This is the string "select-multiple" when the multiple attribute is true and the string "select-one" when false.
    • value

      SelectBuilder value(String value)
      The current form control value (i.e., the value of the currently selected option), if multiple options are selected this is the value of the first selected option.