1 32 33 package it.businesslogic.ireport.gui.event; 34 import it.businesslogic.ireport.*; 35 import it.businesslogic.ireport.gui.*; 36 import java.util.*; 37 42 public class ReportSubDatasetChangedEvent { 43 44 private SubDataset subDataset; 45 46 49 public static final int REMOVED = 1; 51 54 public static final int ADDED = 2; 56 59 public static final int CHANGED = 8; 61 public static final int OBJECT_SUBDATASET = 1; 62 public static final int OBJECT_FIELD = 2; 63 public static final int OBJECT_PARAMETER = 3; 64 public static final int OBJECT_VARIABLE = 4; 65 public static final int OBJECT_QUERY = 5; 66 public static final int OBJECT_GROUP = 6; 67 68 71 private Vector elements = new Vector(); 72 73 76 private int action = 0; 77 private int objectType = 0; 78 79 public ReportSubDatasetChangedEvent(SubDataset subDataset, Object object, int action, int objectType) { 80 this.subDataset = subDataset; 81 this.setElements(new Vector()); 82 this.getElements().add(object); 83 this.action = action; 84 this.objectType = objectType; 85 } 86 87 public ReportSubDatasetChangedEvent(JReportFrame jReportFrame, Vector objects, int objectType) { 88 this.subDataset = subDataset; 89 this.setElements(objects); 90 this.action = action; 91 this.objectType = objectType; 92 } 93 94 public SubDataset getSubDataset() { 95 return subDataset; 96 } 97 98 public void setSubDataset(SubDataset subDataset) { 99 this.subDataset = subDataset; 100 } 101 102 109 110 public int getAction() { 111 return action; 112 } 113 114 public void setAction(int action) { 115 this.action = action; 116 } 117 118 public int getObjectType() { 119 return objectType; 120 } 121 122 public void setObjectType(int objectType) { 123 this.objectType = objectType; 124 } 125 126 public Vector getElements() { 127 return elements; 128 } 129 130 public void setElements(Vector elements) { 131 this.elements = elements; 132 } 133 134 } 135 | Popular Tags |