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: * ValueChangedEvent.java
028: *
029: * Created on 10 febbraio 2003, 2.04
030: *
031: */
032:
033: package it.businesslogic.ireport.gui.event;
034:
035: import it.businesslogic.ireport.gui.*;
036: import javax.swing.*;
037:
038: /**
039: *
040: * @author Administrator
041: */
042: public class ValueChangedEvent {
043:
044: private JComponent source;
045:
046: private double oldValue;
047: private double newValue;
048:
049: /** Creates a new instance of ValueChangedEvent */
050: public ValueChangedEvent(JComponent source, double oldValue,
051: double newValue) {
052:
053: this .source = source;
054: this .oldValue = oldValue;
055: this .newValue = newValue;
056: }
057:
058: /** Getter for property source.
059: * @return Value of property source.
060: *
061: */
062: public JComponent getSource() {
063: return source;
064: }
065:
066: /** Setter for property source.
067: * @param source New value of property source.
068: *
069: */
070: public void setSource(JComponent source) {
071: this .source = source;
072: }
073:
074: /** Getter for property newValue.
075: * @return Value of property newValue.
076: *
077: */
078: public double getNewValue() {
079: return newValue;
080: }
081:
082: /** Setter for property newValue.
083: * @param newValue New value of property newValue.
084: *
085: */
086: public void setNewValue(double newValue) {
087: this .newValue = newValue;
088: }
089:
090: /** Getter for property oldValue.
091: * @return Value of property oldValue.
092: *
093: */
094: public double getOldValue() {
095: return oldValue;
096: }
097:
098: /** Setter for property oldValue.
099: * @param oldValue New value of property oldValue.
100: *
101: */
102: public void setOldValue(double oldValue) {
103: this.oldValue = oldValue;
104: }
105:
106: }
|