1 32 33 package it.businesslogic.ireport.gui.event; 34 35 import it.businesslogic.ireport.*; 36 37 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 oldValue; 55 private Object newValue; 56 private int type = 0; 57 private int action = 0; 58 private SubDataset source = null; 59 60 61 public SubDatasetObjectChangedEvent(SubDataset source, int objectType, int action ,Object oldValue, Object 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 74 public SubDataset getSource() { 75 return source; 76 } 77 78 82 public void setSource(Report source) { 83 this.source = source; 84 } 85 86 90 public Object getNewValue() { 91 return newValue; 92 } 93 94 98 public void setNewValue(Object newValue) { 99 this.newValue = newValue; 100 } 101 102 106 public Object getOldValue() { 107 return oldValue; 108 } 109 110 114 public void setOldValue(Object 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 |