KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > businesslogic > ireport > gui > event > ReportBandChangedEvent


1 /*
2  * Copyright (C) 2005 - 2006 JasperSoft Corporation. All rights reserved.
3  * http://www.jaspersoft.com.
4  *
5  * Unless you have purchased a commercial license agreement from JasperSoft,
6  * the following license terms apply:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as published by
10  * the Free Software Foundation.
11  *
12  * This program is distributed WITHOUT ANY WARRANTY; and without the
13  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
18  * or write to:
19  *
20  * Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330,
22  * Boston, MA USA 02111-1307
23  *
24  *
25  *
26  *
27  * ReportBandChangedEvent.java
28  *
29  * Created on 17 giugno 2003, 1.12
30  *
31  */

32
33 package it.businesslogic.ireport.gui.event;
34 import it.businesslogic.ireport.*;
35 import it.businesslogic.ireport.gui.*;
36 /**
37  * Save all info required by a ReportElementChangedEvent
38  * Return the band changed/removed/added
39  * @author Administrator
40  */

41 public class ReportBandChangedEvent {
42     
43     private JReportFrame jReportFrame;
44     /**
45      * The band was removed
46      */

47     public static final int REMOVED = 1;
48     /**
49      * An band was added
50      */

51     public static final int ADDED = 2;
52     /**
53      * The band was changed
54      */

55     public static final int CHANGED = 3;
56
57     /**
58      * The band that is changed/removed/added
59      */

60     private Band band;
61     
62     /**
63      * The type of the element
64      */

65     private int type = 0;
66     /** Creates a new instance of ReportBandChangedEvent */
67     public ReportBandChangedEvent(JReportFrame jReportFrame, Band band, int type) {
68         this.jReportFrame =jReportFrame;
69         this.band = band;
70         this.type = type;
71     }
72     
73     /** Getter for property band.
74      * @return Value of property band.
75      *
76      */

77     public Band getBand() {
78         return band;
79     }
80     
81     /** Setter for property selectedElements.
82      * @param selectedElements New value of property selectedElements.
83      *
84      */

85     public void setBand(Band band) {
86         this.band = band;
87     }
88     
89     /** Getter for property type.
90      * Type can assume 3 values:
91      * REMOVED, ADDED, CHANGED
92      * @return Value of property type.
93      *
94      */

95     public int getType() {
96         return type;
97     }
98     
99     /** Setter for property type.
100      * @param type New value of property type.
101      *
102      */

103     public void setType(int type) {
104         this.type = type;
105     }
106     
107     /** Getter for property jReportFrame.
108      * @return Value of property jReportFrame.
109      *
110      */

111     public it.businesslogic.ireport.gui.JReportFrame getJReportFrame() {
112         return jReportFrame;
113     }
114     
115     /** Setter for property jReportFrame.
116      * @param jReportFrame New value of property jReportFrame.
117      *
118      */

119     public void setJReportFrame(it.businesslogic.ireport.gui.JReportFrame jReportFrame) {
120         this.jReportFrame = jReportFrame;
121     }
122     
123 }
124
Popular Tags