KickJava   Java API By Example, From Geeks To Geeks.

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


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  * SubDatasetObjectChangedEvent.java
28  *
29  * Created on 10 febbraio 2003, 2.04
30  *
31  */

32
33 package it.businesslogic.ireport.gui.event;
34
35 import it.businesslogic.ireport.*;
36
37 /**
38  *
39  * @author Administrator
40  */

41 public class SubDatasetObjectChangedEvent {
42        
43     public static final int FIELD = 0;
44     public static final int VARIABLE = 1;
45     public static final int PARAMETER = 2;
46     public static final int QUERY = 3;
47     public static final int QUERY_LANGUAGE = 4;
48     public static final int SORTFIELD = 2;
49
50     public static final int ADDED = 0;
51     public static final int MODIFIED = 1;
52     public static final int DELETED = 2;
53     
54     private Object JavaDoc oldValue;
55     private Object JavaDoc newValue;
56     private int type = 0;
57     private int action = 0;
58     private SubDataset source = null;
59     
60     /** Creates a new instance of ValueChangedEvent */
61     public SubDatasetObjectChangedEvent(SubDataset source, int objectType, int action ,Object JavaDoc oldValue, Object JavaDoc newValue) {
62         
63         this.source = source;
64         this.oldValue = oldValue;
65         this.newValue = newValue;
66         this.action = action;
67         this.type = objectType;
68     }
69     
70     /** Getter for property source.
71      * @return Value of property source.
72      *
73      */

74     public SubDataset getSource() {
75         return source;
76     }
77     
78     /** Setter for property source.
79      * @param source New value of property source.
80      *
81      */

82     public void setSource(Report source) {
83         this.source = source;
84     }
85     
86     /** Getter for property newValue.
87      * @return Value of property newValue.
88      *
89      */

90     public Object JavaDoc getNewValue() {
91         return newValue;
92     }
93     
94     /** Setter for property newValue.
95      * @param newValue New value of property newValue.
96      *
97      */

98     public void setNewValue(Object JavaDoc newValue) {
99         this.newValue = newValue;
100     }
101     
102     /** Getter for property oldValue.
103      * @return Value of property oldValue.
104      *
105      */

106     public Object JavaDoc getOldValue() {
107         return oldValue;
108     }
109     
110     /** Setter for property oldValue.
111      * @param oldValue New value of property oldValue.
112      *
113      */

114     public void setOldValue(Object JavaDoc oldValue) {
115         this.oldValue = oldValue;
116     }
117
118     public int getType() {
119         return type;
120     }
121
122     public void setType(int type) {
123         this.type = type;
124     }
125
126     public int getAction() {
127         return action;
128     }
129
130     public void setAction(int action) {
131         this.action = action;
132     }
133     
134 }
135
Popular Tags