View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   public class FormElem extends GenericCommonElem<FormElem> {
    4
    5       public FormElem(Object... nodes) {
    6           super("form", nodes);
    7       }
    8
    9       public FormElem accept(Object value) {
    10          return attr("accept", value);
    11      }
    12
    13      public FormElem acceptcharset(Object value) {
    14          return attr("acceptcharset", value);
    15      }
    16
    17      public FormElem action(Object value) {
    18          return attr("action", value);
    19      }
    20
    21      public FormElem enctype(Object value) {
    22          return attr("enctype", value);
    23      }
    24
    25      public FormElem method(Object value) {
    26          return attr("method", value);
    27      }
    28
    29      public FormElem methodGet() {
    30          return method("get");
    31      }
    32
    33      public FormElem methodPost() {
    34          return method("post");
    35      }
    36
    37      public FormElem name(Object value) {
    38          return attr("name", value);
    39      }
    40
    41      public FormElem onreset(Object value) {
    42          return attr("onreset", value);
    43      }
    44
    45      public FormElem onsubmit(Object value) {
    46          return attr("onsubmit", value);
    47      }
    48
    49      public FormElem target(Object value) {
    50          return attr("target", value);
    51      }
    52  }