View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   public class ButtonElem extends GenericCommonElem<ButtonElem> {
    4
    5       public ButtonElem(Object... nodes) {
    6           super("button", nodes);
    7       }
    8
    9       public ButtonElem accesskey(Object value) {
    10          return attr("accesskey", value);
    11      }
    12
    13      public ButtonElem disabled(boolean disabled) {
    14          return disabled ? disabled("disabled") : this;
    15      }
    16
    17      public ButtonElem disabled(Object value) {
    18          return attr("disabled", value);
    19      }
    20
    21      public ButtonElem name(Object value) {
    22          return attr("name", value);
    23      }
    24
    25      public ButtonElem onblur(Object value) {
    26          return attr("onblur", value);
    27      }
    28
    29      public ButtonElem onfocus(Object value) {
    30          return attr("onfocus", value);
    31      }
    32
    33      public ButtonElem tabindex(Object value) {
    34          return attr("tabindex", value);
    35      }
    36
    37      public ButtonElem type(Object value) {
    38          return attr("type", value);
    39      }
    40
    41      public ButtonElem typeButton() {
    42          return type("button");
    43      }
    44
    45      public ButtonElem typeReset() {
    46          return type("reset");
    47      }
    48
    49      public ButtonElem typeSubmit() {
    50          return type("submit");
    51      }
    52
    53      public ButtonElem value(Object value) {
    54          return attr("value", value);
    55      }
    56  }