1
2
3
4
5
6
7
8
9
10
11 package de.jaret.util.ui.table.print;
12
13 /***
14 * Simple structure to control the printing using the JaretTablePrinter.
15 *
16 * @author Peter Kliem
17 * @version $Id: JaretTablePrintConfiguration.java 179 2007-01-07 17:37:50Z olk $
18 */
19 public class JaretTablePrintConfiguration {
20 protected boolean _repeatHeader;
21 protected double _scale;
22 protected String _name;
23 protected String _footerText;
24 protected int _rowLimit = -1;
25 protected int _colLimit = -1;
26
27 public JaretTablePrintConfiguration(String name, boolean repeatHeader, double scale) {
28 _name = name;
29 _repeatHeader = repeatHeader;
30 _scale = scale;
31 }
32
33 public JaretTablePrintConfiguration() {
34 this("Table", false, 1.0);
35 }
36
37 /***
38 * @return Returns the name.
39 */
40 public String getName() {
41 return _name;
42 }
43
44 /***
45 * @param name The name to set.
46 */
47 public void setName(String name) {
48 _name = name;
49 }
50
51 /***
52 * @return Returns the repeatHeader.
53 */
54 public boolean getRepeatHeader() {
55 return _repeatHeader;
56 }
57
58 /***
59 * @param repeatHeader The repeatHeader to set.
60 */
61 public void setRepeatHeader(boolean repeatHeader) {
62 _repeatHeader = repeatHeader;
63 }
64
65 /***
66 * @return Returns the scale.
67 */
68 public double getScale() {
69 return _scale;
70 }
71
72 /***
73 * @param scale The scale to set.
74 */
75 public void setScale(double scale) {
76 _scale = scale;
77 }
78
79 /***
80 * @return Returns the footerText.
81 */
82 public String getFooterText() {
83 return _footerText;
84 }
85
86 /***
87 * @param footerText The footerText to set.
88 */
89 public void setFooterText(String footerText) {
90 _footerText = footerText;
91 }
92
93 /***
94 * @return Returns the colLimit.
95 */
96 public int getColLimit() {
97 return _colLimit;
98 }
99
100 /***
101 * @param colLimit The colLimit to set.
102 */
103 public void setColLimit(int colLimit) {
104 _colLimit = colLimit;
105 }
106
107 /***
108 * @return Returns the rowLimit.
109 */
110 public int getRowLimit() {
111 return _rowLimit;
112 }
113
114 /***
115 * @param rowLimit The rowLimit to set.
116 */
117 public void setRowLimit(int rowLimit) {
118 _rowLimit = rowLimit;
119 }
120
121 }