Interface Option


public interface Option
An html <option>.
  • Method Summary

    Modifier and Type
    Method
    Description
    Text representing advisory information about the option.
    default String
    html(boolean selected)
    Print this option as HTML.
    A text label for an option.
    default String
    Print all options as HTML.
    default String
    Output options as html <option> in order of a space separated list of tokens.
  • Method Details

    • label

      String label()
      A text label for an option.
      Returns:
      <option>{label}</option>
    • hint

      String hint()
      Text representing advisory information about the option.
      Returns:
      <option title="{hint}">
    • options

      default String options()
      Print all options as HTML.
      Returns:
      html of the options.
    • options

      default String options(String list)
      Output options as html <option> in order of a space separated list of tokens.
      Parameters:
      list - Oredered options.
      Returns:
      HTML.
    • html

      default String html(boolean selected)
      Print this option as HTML.
      Parameters:
      selected - if option selected.
      Returns:
      HTML.