View Javadoc

    1   package sharin.doc.builder.xhtml1;
    2
    3   public class TableElem extends GenericCommonElem<TableElem> {
    4
    5       public TableElem(Object... nodes) {
    6           super("table", nodes);
    7       }
    8
    9       public TableElem align(Object value) {
    10          return attr("align", value);
    11      }
    12
    13      public TableElem alignCenter() {
    14          return align("center");
    15      }
    16
    17      public TableElem alignLeft() {
    18          return align("left");
    19      }
    20
    21      public TableElem alignRight() {
    22          return align("right");
    23      }
    24
    25      public TableElem bgcolor(Object value) {
    26          return attr("bgcolor", value);
    27      }
    28
    29      public TableElem border(Object value) {
    30          return attr("border", value);
    31      }
    32
    33      public TableElem cellpadding(Object value) {
    34          return attr("cellpadding", value);
    35      }
    36
    37      public TableElem cellspacing(Object value) {
    38          return attr("cellspacing", value);
    39      }
    40
    41      public TableElem frame(Object value) {
    42          return attr("frame", value);
    43      }
    44
    45      public TableElem frameAbove() {
    46          return frame("above");
    47      }
    48
    49      public TableElem frameBelow() {
    50          return frame("below");
    51      }
    52
    53      public TableElem frameBorder() {
    54          return frame("border");
    55      }
    56
    57      public TableElem frameBox() {
    58          return frame("box");
    59      }
    60
    61      public TableElem frameHsides() {
    62          return frame("hsides");
    63      }
    64
    65      public TableElem frameLhs() {
    66          return frame("lhs");
    67      }
    68
    69      public TableElem frameRhs() {
    70          return frame("rhs");
    71      }
    72
    73      public TableElem frameVoid() {
    74          return frame("void");
    75      }
    76
    77      public TableElem frameVsides() {
    78          return frame("vsides");
    79      }
    80
    81      public TableElem rules(Object value) {
    82          return attr("rules", value);
    83      }
    84
    85      public TableElem rulesAll() {
    86          return rules("all");
    87      }
    88
    89      public TableElem rulesCols() {
    90          return rules("cols");
    91      }
    92
    93      public TableElem rulesGroups() {
    94          return rules("groups");
    95      }
    96
    97      public TableElem rulesNone() {
    98          return rules("none");
    99      }
    100
    101     public TableElem rulesRows() {
    102         return rules("rows");
    103     }
    104
    105     public TableElem summary(Object value) {
    106         return attr("summary", value);
    107     }
    108
    109     public TableElem width(Object value) {
    110         return attr("width", value);
    111     }
    112 }