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.2 $</p>
12: */
13: public class XLFreeFormBlock extends Block {
14: XLExporter xlExporter;
15:
16: public XLFreeFormBlock(XLExporter exporter) {
17: xlExporter = exporter;
18: }
19:
20: public Block append(String tagName) {
21: XLFreeFormItem item = new XLFreeFormItem(xlExporter);
22: xlExporter.addRow();
23: xlExporter.setColumn(0);
24: item.setY(xlExporter.getRow());
25: item.setX(xlExporter.getColumn());
26: item.setTag(tagName);
27: blocks.add(item);
28: return item;
29: }
30:
31: }
|