01: package com.xoetrope.export.html;
02:
03: import com.xoetrope.export.Block;
04: import com.xoetrope.export.TagExporter;
05:
06: /**
07: *
08: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
09: * the GNU Public License (GPL), please see license.txt for more details. If
10: * you make commercial use of this software you must purchase a commercial
11: * license from Xoetrope.</p>
12: * <p> $Revision: 1.2 $</p>
13: */
14: public class HTMLFreeFormBlock extends Block implements TagExporter {
15: public static final String TAG_DIV = "DIV";
16: public static final String TAG_IMG = "IMG";
17: public static final String TAG_P = "P";
18:
19: public Block append(String tagName) {
20: HTMLFreeFormItem item = new HTMLFreeFormItem();
21: item.setTag(tagName);
22: blocks.add(item);
23: return item;
24: }
25:
26: public String getStartTag() {
27: return "<DIV>";
28: }
29:
30: public String getEndTag() {
31: return "</DIV>";
32: }
33: }
|