01: package com.xoetrope.export.pdf;
02:
03: import com.xoetrope.export.Block;
04: import com.xoetrope.export.RowBlock;
05: import com.lowagie.text.Phrase;
06: import com.lowagie.text.Paragraph;
07:
08: /**
09: * This correspons to a paragraph
10: *
11: * <p> Copyright (c) Xoetrope Ltd., 2001-2006, This software is licensed under
12: * the GNU Public License (GPL), please see license.txt for more details. If
13: * you make commercial use of this software you must purchase a commercial
14: * license from Xoetrope.</p>
15: * <p> $Revision: 1.2 $</p>
16: */
17: public class PdfRowBlockItem extends Block implements RowBlock {
18: protected Paragraph paragraph;
19:
20: public PdfRowBlockItem() {
21: super ();
22: paragraph = new Paragraph();
23: }
24:
25: /**
26: * Add some content, or a Phrase
27: */
28: public Block addCell(String cellContents, String style) {
29: return addCell(cellContents, style, 1, 1);
30: }
31:
32: /**
33: * Add some content, or a Phrase
34: */
35: public Block addCell(String cellContents, String style,
36: int colSpan, int rowSpan) {
37: Block cellItem = new Block();
38: cellItem.setValue(cellContents);
39: cellItem.setStyle(style);
40: blocks.add(cellItem);
41:
42: return cellItem;
43: }
44: }
|