Interface OptionBuilder

All Superinterfaces:
ElementBuilderBase<OptionBuilder>
All Known Implementing Classes:
DomOptionBuilder, HtmlOptionBuilder

public interface OptionBuilder extends ElementBuilderBase<OptionBuilder>
Builds an option element.
  • Method Details

    • defaultSelected

      OptionBuilder defaultSelected()
      Represents the value of the HTML selected attribute. The value of this attribute does not change if the state of the corresponding form control, in an interactive user agent, changes.
      See Also:
    • disabled

      OptionBuilder disabled()
      Prevents the user from selecting this option.
      See Also:
    • label

      OptionBuilder label(String label)
      Option label for use in menus.
      See Also:
    • selected

      OptionBuilder selected()
      Represents the current state of the corresponding form control, in an interactive user agent. Changing this attribute changes the state of the form control, but does not change the value of the HTML selected attribute of the element.
    • value

      OptionBuilder value(String value)
      The current form control value.
      See Also: