1 56 package org.objectstyle.cayenne.modeler.event; 57 58 import org.objectstyle.cayenne.access.DataDomain; 59 import org.objectstyle.cayenne.access.DataNode; 60 61 67 public class DataNodeDisplayEvent extends DomainDisplayEvent { 68 69 protected DataNode dataNode; 70 71 72 protected boolean dataNodeChanged = true; 73 74 75 public DataNodeDisplayEvent(Object src, DataDomain domain, DataNode node) { 76 super(src, domain); 77 this.dataNode = node; 78 setDomainChanged(false); 79 } 80 81 82 public DataNode getDataNode() { 83 return dataNode; 84 } 85 86 87 public boolean isDataNodeChanged() { 88 return dataNodeChanged; 89 } 90 91 public void setDataNodeChanged(boolean temp) { 92 dataNodeChanged = temp; 93 } 94 98 public void setDataNode(DataNode dataNode) { 99 this.dataNode = dataNode; 100 } 101 102 103 } | Popular Tags |