001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * CrosstabGroup.java
028: *
029: * Created on 5 gennaio 2006, 15.52
030: *
031: */
032:
033: package it.businesslogic.ireport.crosstab;
034:
035: /**
036: *
037: * @author Administrator
038: */
039: public class CrosstabGroup {
040:
041: protected CrosstabCell headerCell = null;
042: protected CrosstabCell totalCell = null;
043: private int size = 0;
044:
045: private boolean hasHeader = true;
046: private boolean hasTotal = true;
047:
048: protected String name = "";
049: protected String totalPosition = "None";
050: protected String headerPosition = "";
051:
052: private String bucketExpression = "";
053: private String bucketExpressionClass = "";
054: private String bucketOrder = "Ascending";
055: private String bucketComparatorExpression = "";
056:
057: /** Creates a new instance of CrosstabGroup */
058: public CrosstabGroup() {
059: }
060:
061: public CrosstabCell getHeaderCell() {
062: return headerCell;
063: }
064:
065: public void setHeaderCell(CrosstabCell headerCell) {
066: this .headerCell = headerCell;
067: }
068:
069: public CrosstabCell getTotalCell() {
070: return totalCell;
071: }
072:
073: public void setTotalCell(CrosstabCell totalCell) {
074: this .totalCell = totalCell;
075: }
076:
077: public String getName() {
078: return name;
079: }
080:
081: public void setName(String name) {
082: this .name = name;
083: }
084:
085: public String getTotalPosition() {
086: return totalPosition;
087: }
088:
089: public void setTotalPosition(String totalPosition) {
090: this .totalPosition = totalPosition;
091: }
092:
093: public String getHeaderPosition() {
094: return headerPosition;
095: }
096:
097: public void setHeaderPosition(String headerPosition) {
098: this .headerPosition = headerPosition;
099: }
100:
101: public String getBucketExpression() {
102: return bucketExpression;
103: }
104:
105: public void setBucketExpression(String bucketExpression) {
106: this .bucketExpression = bucketExpression;
107: }
108:
109: public String getBucketOrder() {
110: return bucketOrder;
111: }
112:
113: public void setBucketOrder(String bucketOrder) {
114: this .bucketOrder = bucketOrder;
115: }
116:
117: public String getBucketComparatorExpression() {
118: return bucketComparatorExpression;
119: }
120:
121: public void setBucketComparatorExpression(
122: String bucketComparatorExpression) {
123: this .bucketComparatorExpression = bucketComparatorExpression;
124: }
125:
126: public int getSize() {
127: return size;
128: }
129:
130: public void setSize(int size) {
131: this .size = size;
132: }
133:
134: public boolean isHasHeader() {
135: return true;
136: }
137:
138: public void setHasHeader(boolean hasHeader) {
139: this .hasHeader = hasHeader;
140: }
141:
142: public String getBucketExpressionClass() {
143: return bucketExpressionClass;
144: }
145:
146: public void setBucketExpressionClass(String bucketExpressionClass) {
147: this .bucketExpressionClass = bucketExpressionClass;
148: }
149:
150: public boolean isHasTotal() {
151: return !getTotalPosition().equals("None");
152: }
153:
154: public void setHasTotal(boolean hasTotal) {
155: this .hasTotal = hasTotal;
156: }
157:
158: public String toString() {
159: return "" + name;
160: }
161:
162: }
|