Interface HamletSpec.SELECT

All Superinterfaces:
HamletSpec.__, HamletSpec._Child, HamletSpec._Option, HamletSpec.Attrs, HamletSpec.CoreAttrs, HamletSpec.EventsAttrs, HamletSpec.I18nAttrs
All Known Implementing Classes:
Hamlet.SELECT
Enclosing class:
HamletSpec

public static interface HamletSpec.SELECT extends HamletSpec.Attrs, HamletSpec._Option, HamletSpec._Child
  • Method Details

    • optgroup

      Add a OPTGROUP element.
      Returns:
      a new OPTGROUP element builder
    • $name

      HamletSpec.SELECT $name(String cdata)
      field name
      Parameters:
      cdata - the content of the element.
      Returns:
      the current element builder
    • $size

      HamletSpec.SELECT $size(int rows)
      rows visible
      Parameters:
      rows - number of rows.
      Returns:
      the current element builder
    • $multiple

      HamletSpec.SELECT $multiple()
      default is single selection
      Returns:
      the current element builder
    • $disabled

      HamletSpec.SELECT $disabled()
      unavailable in this context
      Returns:
      the current element builder
    • $tabindex

      HamletSpec.SELECT $tabindex(int index)
      position in tabbing order
      Parameters:
      index - the index
      Returns:
      the current element builder
    • $onfocus

      HamletSpec.SELECT $onfocus(String script)
      the element got the focus
      Parameters:
      script - to invoke.
      Returns:
      the current element builder
    • $onblur

      HamletSpec.SELECT $onblur(String script)
      the element lost the focus
      Parameters:
      script - to invoke.
      Returns:
      the current element builder
    • $onchange

      HamletSpec.SELECT $onchange(String script)
      the element value was changed
      Parameters:
      script - to invoke.
      Returns:
      the current element builder