View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   public class InputElem extends GenericCommonElem<InputElem> {
    4
    5       public InputElem(Object... nodes) {
    6           super("input", nodes);
    7       }
    8
    9       public InputElem accept(Object value) {
    10          return attr("accept", value);
    11      }
    12
    13      public InputElem accesskey(Object value) {
    14          return attr("accesskey", value);
    15      }
    16
    17      public InputElem align(Object value) {
    18          return attr("align", value);
    19      }
    20
    21      public InputElem alignBottom() {
    22          return align("bottom");
    23      }
    24
    25      public InputElem alignLeft() {
    26          return align("left");
    27      }
    28
    29      public InputElem alignMiddle() {
    30          return align("middle");
    31      }
    32
    33      public InputElem alignRight() {
    34          return align("right");
    35      }
    36
    37      public InputElem alignTop() {
    38          return align("top");
    39      }
    40
    41      public InputElem alt(Object value) {
    42          return attr("alt", value);
    43      }
    44
    45      public InputElem checked(boolean checked) {
    46          return checked ? checked("checked") : this;
    47      }
    48
    49      public InputElem checked(Object value) {
    50          return attr("checked", value);
    51      }
    52
    53      public InputElem disabled(boolean disabled) {
    54          return disabled ? disabled("disabled") : this;
    55      }
    56
    57      public InputElem disabled(Object value) {
    58          return attr("disabled", value);
    59      }
    60
    61      public InputElem maxlength(Object value) {
    62          return attr("maxlength", value);
    63      }
    64
    65      public InputElem name(Object value) {
    66          return attr("name", value);
    67      }
    68
    69      public InputElem onblur(Object value) {
    70          return attr("onblur", value);
    71      }
    72
    73      public InputElem onchange(Object value) {
    74          return attr("onchange", value);
    75      }
    76
    77      public InputElem onfocus(Object value) {
    78          return attr("onfocus", value);
    79      }
    80
    81      public InputElem onselect(Object value) {
    82          return attr("onselect", value);
    83      }
    84
    85      public InputElem readonly(boolean readonly) {
    86          return readonly ? readonly("readonly") : this;
    87      }
    88
    89      public InputElem readonly(Object value) {
    90          return attr("readonly", value);
    91      }
    92
    93      public InputElem size(Object value) {
    94          return attr("size", value);
    95      }
    96
    97      public InputElem src(Object value) {
    98          return attr("src", value);
    99      }
    100
    101     public InputElem tabindex(Object value) {
    102         return attr("tabindex", value);
    103     }
    104
    105     public InputElem type(Object value) {
    106         return attr("type", value);
    107     }
    108
    109     public InputElem typeButton() {
    110         return type("button");
    111     }
    112
    113     public InputElem typeCheckbox() {
    114         return type("checkbox");
    115     }
    116
    117     public InputElem typeFile() {
    118         return type("file");
    119     }
    120
    121     public InputElem typeHidden() {
    122         return type("hidden");
    123     }
    124
    125     public InputElem typeImage() {
    126         return type("image");
    127     }
    128
    129     public InputElem typePassword() {
    130         return type("password");
    131     }
    132
    133     public InputElem typeRadio() {
    134         return type("radio");
    135     }
    136
    137     public InputElem typeReset() {
    138         return type("reset");
    139     }
    140
    141     public InputElem typeSubmit() {
    142         return type("submit");
    143     }
    144
    145     public InputElem typeText() {
    146         return type("text");
    147     }
    148
    149     public InputElem usemap(Object value) {
    150         return attr("usemap", value);
    151     }
    152
    153     public InputElem value(Object value) {
    154         return attr("value", value);
    155     }
    156 }