KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openbravo > erpCommon > utility > GridReportVO


1 /*
2  *************************************************************************
3  * The contents of this file are subject to the Openbravo Public License
4  * Version 1.0 (the "License"), being the Mozilla Public License
5  * Version 1.1 with a permitted attribution clause; you may not use this
6  * file except in compliance with the License. You may obtain a copy of
7  * the License at http://www.openbravo.com/legal/license.html
8  * Software distributed under the License is distributed on an "AS IS"
9  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
10  * License for the specific language governing rights and limitations
11  * under the License.
12  * The Original Code is Openbravo ERP.
13  * The Initial Developer of the Original Code is Openbravo SL
14  * All portions are Copyright (C) 2007 Openbravo SL
15  * All Rights Reserved.
16  * Contributor(s): ______________________________________.
17  ************************************************************************
18 */

19 package org.openbravo.erpCommon.utility;
20
21
22 import java.util.List JavaDoc;
23 import java.sql.ResultSet JavaDoc;
24 import java.awt.Color JavaDoc;
25
26 public class GridReportVO {
27   private String JavaDoc jrxmlTemplate;
28   private String JavaDoc sql;
29   private String JavaDoc title;
30   private String JavaDoc context;
31   private List JavaDoc columns;
32   private ResultSet JavaDoc resultSet;
33   private BandStyleVO headerBandStyle;
34   private BandStyleVO detailBandStyle;
35   private int totalWidth;
36   private Boolean JavaDoc pagination;
37
38   public GridReportVO() {
39   }
40
41   public GridReportVO(String JavaDoc jrxmlTemplate, ResultSet JavaDoc resultSet, String JavaDoc title,
42       List JavaDoc columns, String JavaDoc context, int totalWidth) {
43     super();
44     this.jrxmlTemplate = jrxmlTemplate;
45     this.resultSet = resultSet;
46     this.title = title;
47     this.context = context;
48     this.columns = columns;
49     this.headerBandStyle = new BandStyleVO(null, new Color JavaDoc(65,134,18),9, true, false, false);
50     this.detailBandStyle = new BandStyleVO();
51     this.totalWidth = totalWidth;
52   }
53
54   public List JavaDoc getColumns() {
55     return columns;
56   }
57
58   public BandStyleVO getDetailBandStyle() {
59     return detailBandStyle;
60   }
61
62   public BandStyleVO getHeaderBandStyle() {
63     return headerBandStyle;
64   }
65
66   public String JavaDoc getJrxmlTemplate() {
67     return jrxmlTemplate;
68   }
69
70   public String JavaDoc getSql() {
71     return sql;
72   }
73
74   public String JavaDoc getContext() {
75     return context;
76   }
77
78   public String JavaDoc getTitle() {
79     return title;
80   }
81
82   public ResultSet JavaDoc getResultSet() {
83     return resultSet;
84   }
85
86   public int getTotalWidth() {
87     return totalWidth;
88   }
89
90   public Boolean JavaDoc getPagination() {
91     return pagination;
92   }
93
94   public void setColumns(List JavaDoc columns) {
95     this.columns = columns;
96   }
97
98   public void setDetailBandStyle(BandStyleVO detailBandStyle) {
99     this.detailBandStyle = detailBandStyle;
100   }
101
102   public void setHeaderBandStyle(BandStyleVO headerBandStyle) {
103     this.headerBandStyle = headerBandStyle;
104   }
105
106   public void setJrxmlTemplate(String JavaDoc jrxmlTemplate) {
107     this.jrxmlTemplate = jrxmlTemplate;
108   }
109
110   public void setSql(String JavaDoc sql) {
111     this.sql = sql;
112   }
113
114   public void setContext(String JavaDoc context) {
115     this.context = context;
116   }
117
118   public void setTitle(String JavaDoc title) {
119     this.title = title;
120   }
121
122   public void setResultSet(ResultSet JavaDoc resultSet) {
123     this.resultSet = resultSet;
124   }
125
126   public void setTotalWidth(int totalWidth) {
127     this.totalWidth = totalWidth;
128   }
129
130   public void setPagination(Boolean JavaDoc pagination) {
131     this.pagination = pagination;
132   }
133
134 }
135
Popular Tags