View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   import sharin.doc.builder.Elem;
    4
    5   public class GenericCellElem<E extends Elem> extends GenericCommonElem<E> {
    6
    7       public GenericCellElem(String name, Object... nodes) {
    8           super(name, nodes);
    9       }
    10
    11      public E align(String value) {
    12          return attr("align", value);
    13      }
    14
    15      public E alignLeft() {
    16          return align("left");
    17      }
    18
    19      public E alignCenter() {
    20          return align("center");
    21      }
    22
    23      public E alignRight() {
    24          return align("right");
    25      }
    26
    27      public E alignJustify() {
    28          return align("justify");
    29      }
    30
    31      public E alignChar() {
    32          return align("char");
    33      }
    34
    35      /**
    36       * char
    37       */
    38      public E cha(String value) {
    39          return attr("char", value);
    40      }
    41
    42      public E charoff(String value) {
    43          return attr("charoff", value);
    44      }
    45
    46      public E valign(String value) {
    47          return attr("valign", value);
    48      }
    49
    50      public E valignTop() {
    51          return valign("top");
    52      }
    53
    54      public E valignMiddle() {
    55          return valign("middle");
    56      }
    57
    58      public E valignBottom() {
    59          return valign("bottom");
    60      }
    61
    62      public E valignBaseline() {
    63          return valign("baseline");
    64      }
    65  }