1 56 package org.objectstyle.cayenne.modeler.dialog.datamap; 57 58 import org.scopemvc.core.Selector; 59 60 66 public class DefaultsPreferencesModel { 67 68 72 public static final Selector ALL_ENTITIES_SELECTOR = Selector 73 .fromString("allEntities"); 74 75 79 public static final Selector UNINITIALIZED_ENTITIES_SELECTOR = Selector 80 .fromString("uninitializedEntities"); 81 82 protected boolean allEntities; 83 84 public DefaultsPreferencesModel(boolean flag) { 85 this.allEntities = flag; 86 } 87 88 public boolean isAllEntities() { 89 return allEntities; 90 } 91 92 public void setAllEntities(boolean flag) { 93 this.allEntities = flag; 94 } 95 96 public boolean isUninitializedEntities() { 97 return !isAllEntities(); 98 } 99 100 public void setUninitializedEntities(boolean flag) { 101 setAllEntities(!flag); 102 } 103 } | Popular Tags |