View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   import sharin.doc.builder.Elem;
    4
    5   public class GenericCommonElem<E extends Elem> extends GenericCoreElem<E> {
    6
    7       public GenericCommonElem(String name, Object... nodes) {
    8           super(name, nodes);
    9       }
    10
    11      public E lang(String value) {
    12          return attr("lang", value);
    13      }
    14
    15      /**
    16       * xml:lang
    17       */
    18      public E xmllang(String value) {
    19          return attr("xml:lang", value);
    20      }
    21
    22      public E dir(String value) {
    23          return attr("dir", value);
    24      }
    25
    26      public E onclick(String value) {
    27          return attr("onclick", value);
    28      }
    29
    30      public E ondblclick(String value) {
    31          return attr("ondblclick", value);
    32      }
    33
    34      public E onmousedown(String value) {
    35          return attr("onmousedown", value);
    36      }
    37
    38      public E onmouseup(String value) {
    39          return attr("onmouseup", value);
    40      }
    41
    42      public E onmouseover(String value) {
    43          return attr("onmouseover", value);
    44      }
    45
    46      public E onmousemove(String value) {
    47          return attr("onmousemove", value);
    48      }
    49
    50      public E onmouseout(String value) {
    51          return attr("onmouseout", value);
    52      }
    53
    54      public E onkeypress(String value) {
    55          return attr("onkeypress", value);
    56      }
    57
    58      public E onkeydown(String value) {
    59          return attr("onkeydown", value);
    60      }
    61
    62      public E onkeyup(String value) {
    63          return attr("onkeyup", value);
    64      }
    65  }