View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   import sharin.doc.builder.Elem;
    4
    5   public class GenericTextElem<E extends Elem> extends GenericCommonElem<E> {
    6
    7       public GenericTextElem(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  }