01: package com.xoetrope.export.xl;
02:
03: import com.xoetrope.export.Block;
04:
05: /**
06: *
07: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
08: * the GNU Public License (GPL), please see license.txt for more details. If
09: * you make commercial use of this software you must purchase a commercial
10: * license from Xoetrope.</p>
11: * <p> $Revision: 1.5 $</p>
12: */
13: public class XLFreeFormItem extends XLCellBlockItem {
14: XLExporter xlExporter;
15:
16: public XLFreeFormItem(XLExporter exporter) {
17: super (exporter);
18: xlExporter = exporter;
19: }
20:
21: public Block append(String tagName) {
22: XLFreeFormItem item = new XLFreeFormItem(xlExporter);
23: xlExporter.addRow();
24: xlExporter.setColumn(0);
25: item.setY(xlExporter.getRow());
26: item.setX(xlExporter.getColumn());
27: item.setTag(tagName);
28: blocks.add(item);
29: return item;
30: }
31: }
|