01: package com.xoetrope.export.html;
02:
03: import com.xoetrope.export.RowBlock;
04: import com.xoetrope.export.TableBlock;
05: import com.xoetrope.export.TagExporter;
06:
07: /**
08: *
09: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
10: * the GNU Public License (GPL), please see license.txt for more details. If
11: * you make commercial use of this software you must purchase a commercial
12: * license from Xoetrope.</p>
13: * <p> $Revision: 1.2 $</p>
14: */
15: public class HTMLTableBlock extends TableBlock implements TagExporter {
16:
17: public String getStartTag() {
18: return "<TABLE>";
19: }
20:
21: public String getEndTag() {
22: return "</TABLE>";
23: }
24:
25: public RowBlock addRow() {
26: HTMLRowBlockItem rowItem = new HTMLRowBlockItem();
27: blocks.add(rowItem);
28: return rowItem;
29: }
30:
31: public String getContents() {
32: content.append("</TABLE>\n");
33: return content.toString();
34: }
35:
36: }
|