1 package org.objectstyle.cayenne.modeler.event; 2 57 58 import org.objectstyle.cayenne.access.DataDomain; 59 import org.objectstyle.cayenne.access.DataNode; 60 import org.objectstyle.cayenne.map.DataMap; 61 62 68 public class DataMapDisplayEvent extends DataNodeDisplayEvent { 69 protected DataMap dataMap; 70 71 72 protected boolean dataMapChanged = true; 73 74 public DataMapDisplayEvent(Object src, DataMap map, DataDomain domain) { 75 this(src, map, domain, null); 76 } 77 78 public DataMapDisplayEvent( 79 Object src, 80 DataMap map, 81 DataDomain domain, 82 DataNode node) { 83 84 super(src, domain, node); 85 this.dataMap = map; 86 setDataNodeChanged(false); 87 } 88 89 90 public DataMap getDataMap() { 91 return dataMap; 92 } 93 94 98 public void setDataMap(DataMap dataMap) { 99 this.dataMap = dataMap; 100 } 101 102 103 104 public boolean isDataMapChanged() { 105 return dataMapChanged; 106 } 107 108 public void setDataMapChanged(boolean temp) { 109 dataMapChanged = temp; 110 } 111 } | Popular Tags |