View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   public class SelectElem extends GenericCommonElem<SelectElem> {
    4
    5       public SelectElem(Object... nodes) {
    6           super("select", nodes);
    7       }
    8
    9       public SelectElem disabled(boolean disabled) {
    10          return disabled ? disabled("disabled") : this;
    11      }
    12
    13      public SelectElem disabled(Object value) {
    14          return attr("disabled", value);
    15      }
    16
    17      public SelectElem multiple(boolean multiple) {
    18          return multiple ? multiple("multiple") : this;
    19      }
    20
    21      public SelectElem multiple(Object value) {
    22          return attr("multiple", value);
    23      }
    24
    25      public SelectElem name(Object value) {
    26          return attr("name", value);
    27      }
    28
    29      public SelectElem onblur(Object value) {
    30          return attr("onblur", value);
    31      }
    32
    33      public SelectElem onchange(Object value) {
    34          return attr("onchange", value);
    35      }
    36
    37      public SelectElem onfocus(Object value) {
    38          return attr("onfocus", value);
    39      }
    40
    41      public SelectElem size(Object value) {
    42          return attr("size", value);
    43      }
    44
    45      public SelectElem tabindex(Object value) {
    46          return attr("tabindex", value);
    47      }
    48  }