1 32 33 package it.businesslogic.ireport.gui.event; 34 35 import it.businesslogic.ireport.gui.*; 36 import javax.swing.*; 37 41 public class ValueChangedEvent { 42 43 private JComponent source; 44 45 private double oldValue; 46 private double newValue; 47 48 public ValueChangedEvent(JComponent source, double oldValue, double newValue) { 49 50 this.source = source; 51 this.oldValue = oldValue; 52 this.newValue = newValue; 53 } 54 55 59 public JComponent getSource() { 60 return source; 61 } 62 63 67 public void setSource(JComponent source) { 68 this.source = source; 69 } 70 71 75 public double getNewValue() { 76 return newValue; 77 } 78 79 83 public void setNewValue(double newValue) { 84 this.newValue = newValue; 85 } 86 87 91 public double getOldValue() { 92 return oldValue; 93 } 94 95 99 public void setOldValue(double oldValue) { 100 this.oldValue = oldValue; 101 } 102 103 } 104 | Popular Tags |