01: package com.xoetrope.export;
02:
03: import java.util.ArrayList;
04:
05: /**
06: *
07: * <p> Copyright (c) Xoetrope Ltd., 2001-2007, 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 abstract class ArrayArrayBlock extends Block {
14: private String style, headerStyle, width;
15:
16: public ArrayArrayBlock() {
17: }
18:
19: public void setTableStyle(String styleName) {
20: style = styleName;
21: }
22:
23: public void setHeaderStyle(String styleName) {
24: headerStyle = styleName;
25: }
26:
27: public void setWidth(String widthStr) {
28: width = widthStr;
29: }
30:
31: public String getTableStyle() {
32: return style;
33: }
34:
35: public String getHeaderStyle() {
36: return headerStyle;
37: }
38:
39: /**
40: * Get the optional width paramenter
41: * @return the width as a string or null
42: */
43: public String getWidth() {
44: return width;
45: }
46:
47: protected abstract String exportModel(ArrayList table,
48: boolean includeHeader);
49: }
|