1 56 package org.objectstyle.cayenne.modeler.event; 57 58 import org.objectstyle.cayenne.access.DataDomain; 59 import org.objectstyle.cayenne.access.DataNode; 60 import org.objectstyle.cayenne.map.DataMap; 61 import org.objectstyle.cayenne.map.Entity; 62 63 69 public class EntityDisplayEvent extends DataMapDisplayEvent { 70 protected Entity entity; 71 72 73 protected boolean entityChanged = true; 74 protected boolean unselectAttributes; 75 76 public EntityDisplayEvent(Object src, Entity entity) { 77 this(src, entity, null, null, null); 78 } 79 80 public EntityDisplayEvent( 81 Object src, 82 Entity entity, 83 DataMap map, 84 DataDomain domain) { 85 86 this(src, entity, map, null, domain); 87 } 88 89 public EntityDisplayEvent( 90 Object src, 91 Entity entity, 92 DataMap map, 93 DataNode node, 94 DataDomain domain) { 95 96 super(src, map, domain, node); 97 this.entity = entity; 98 setDataMapChanged(false); 99 } 100 101 104 public Entity getEntity() { 105 return entity; 106 } 107 108 109 public boolean isEntityChanged() { 110 return entityChanged; 111 } 112 public void setEntityChanged(boolean temp) { 113 entityChanged = temp; 114 } 115 116 120 public boolean isUnselectAttributes() { 121 return unselectAttributes; 122 } 123 124 128 public void setUnselectAttributes(boolean unselectAttributes) { 129 this.unselectAttributes = unselectAttributes; 130 } 131 132 136 public void setEntity(Entity entity) { 137 this.entity = entity; 138 } 139 } | Popular Tags |