public void setUpdatePolicy(int i) { this.updatePolicy = i; if (env != null) { env.setChangeImmediate(i != UPDATE_ON_EXPLICIT_REQUEST); } }
public void setUpdatePolicy(int i) { this.updatePolicy = i; if (env != null) { env.setChangeImmediate(i != UPDATE_ON_EXPLICIT_REQUEST); } }
public void setUpdatePolicy(int i) { this.updatePolicy = i; if (env != null) { env.setChangeImmediate(i != UPDATE_ON_EXPLICIT_REQUEST); } }
public void setUpdatePolicy(int i) { if ((i != UPDATE_ON_FOCUS_LOST) && (i != UPDATE_ON_EXPLICIT_REQUEST) && (i != UPDATE_ON_CONFIRMATION)) { throw new IllegalArgumentException("Bad update policy: " + i); //NOI18N } updatePolicy = i; PropertyEnv env = getPropertyEnv(); if (env != null) { env.setChangeImmediate(i != UPDATE_ON_EXPLICIT_REQUEST); } }
public void attachEnv (PropertyEnv env) { this.env = env; env.setChangeImmediate(false); FeatureDescriptor details = env.getFeatureDescriptor(); if (details instanceof Node.IndexedProperty) { indexedProperty = (Node.IndexedProperty)details; } else { throw new IllegalStateException("This is not an array: " + details); // NOI18N } }
public void attachEnv(PropertyEnv env) { this.env = env; env.setChangeImmediate(false); FeatureDescriptor details = env.getFeatureDescriptor(); if (details instanceof Node.IndexedProperty) { indexedProperty = (Node.IndexedProperty) details; } else { throw new IllegalStateException("This is not an array: " + details); // NOI18N } }
public void attachEnv (PropertyEnv env) { this.env = env; env.setChangeImmediate(false); FeatureDescriptor details = env.getFeatureDescriptor(); if (details instanceof Node.IndexedProperty) { indexedProperty = (Node.IndexedProperty)details; } else { throw new IllegalStateException("This is not an array: " + details); // NOI18N } }
public void setUpdatePolicy(int i) { if (i != UPDATE_ON_FOCUS_LOST && i != UPDATE_ON_EXPLICIT_REQUEST && i != UPDATE_ON_CONFIRMATION) { throw new IllegalArgumentException ("Bad update policy: " + i); //NOI18N } updatePolicy = i; PropertyEnv env = getPropertyEnv(); if (env != null) { env.setChangeImmediate(i != UPDATE_ON_EXPLICIT_REQUEST); } }
public void setUpdatePolicy(int i) { if (i != UPDATE_ON_FOCUS_LOST && i != UPDATE_ON_EXPLICIT_REQUEST && i != UPDATE_ON_CONFIRMATION) { throw new IllegalArgumentException ("Bad update policy: " + i); //NOI18N } updatePolicy = i; PropertyEnv env = getPropertyEnv(); if (env != null) { env.setChangeImmediate(i != UPDATE_ON_EXPLICIT_REQUEST); } }
/** * Feature descritor that describes the property. It is feature * descriptor so one can plug in PropertyDescritor and also Node.Property * which both inherit from FeatureDescriptor */ void setFeatureDescriptor(FeatureDescriptor desc) { if (desc == null) { throw new IllegalArgumentException("Cannot set FeatureDescriptor to null."); //NOI18N } this.featureDescriptor = desc; if (featureDescriptor != null) { Object obj = featureDescriptor.getValue(PROP_CHANGE_IMMEDIATE); if (obj instanceof Boolean) { setChangeImmediate(((Boolean) obj).booleanValue()); } } }
/** * Feature descritor that describes the property. It is feature * descriptor so one can plug in PropertyDescritor and also Node.Property * which both inherit from FeatureDescriptor */ void setFeatureDescriptor(FeatureDescriptor desc) { if (desc == null) { throw new IllegalArgumentException ("Cannot set FeatureDescriptor to null."); //NOI18N } this.featureDescriptor = desc; if (featureDescriptor != null) { Object obj = featureDescriptor.getValue(PROP_CHANGE_IMMEDIATE); if (obj instanceof Boolean) { setChangeImmediate(((Boolean)obj).booleanValue()); } } }
/** * Feature descritor that describes the property. It is feature * descriptor so one can plug in PropertyDescritor and also Node.Property * which both inherit from FeatureDescriptor */ void setFeatureDescriptor(FeatureDescriptor desc) { if (desc == null) { throw new IllegalArgumentException ("Cannot set FeatureDescriptor to null."); //NOI18N } this.featureDescriptor = desc; if (featureDescriptor != null) { Object obj = featureDescriptor.getValue(PROP_CHANGE_IMMEDIATE); if (obj instanceof Boolean) { setChangeImmediate(((Boolean)obj).booleanValue()); } } }
private void setPropertyEnv(PropertyEnv env) { if (this.env != null) { detachFromEnv(this.env); } this.env = env; if (env != null) { env.setChangeImmediate(getUpdatePolicy() != UPDATE_ON_EXPLICIT_REQUEST); attachToEnv(env); } }
private void setPropertyEnv (PropertyEnv env) { if (this.env != null) { detachFromEnv(this.env); } this.env = env; if (env != null) { env.setChangeImmediate(getUpdatePolicy()!=UPDATE_ON_EXPLICIT_REQUEST); attachToEnv(env); } }
private void setPropertyEnv (PropertyEnv env) { if (this.env != null) { detachFromEnv(this.env); } this.env = env; if (env != null) { env.setChangeImmediate(getUpdatePolicy()!=UPDATE_ON_EXPLICIT_REQUEST); attachToEnv(env); } }
protected void setPropertyEnv(PropertyEnv env) { if (getPropertyEnv() != null) { detachFromEnv(getPropertyEnv()); } super.setPropertyEnv(env); if (env != null) { env.setChangeImmediate(getUpdatePolicy() != UPDATE_ON_EXPLICIT_REQUEST); attachToEnv(getPropertyEnv()); } }
protected void setPropertyEnv(PropertyEnv env) { if (getPropertyEnv() != null) { detachFromEnv(getPropertyEnv()); } super.setPropertyEnv(env); if (env != null) { env.setChangeImmediate(getUpdatePolicy()!=UPDATE_ON_EXPLICIT_REQUEST); attachToEnv(getPropertyEnv()); } }
protected void setPropertyEnv(PropertyEnv env) { if (getPropertyEnv() != null) { detachFromEnv(getPropertyEnv()); } super.setPropertyEnv(env); if (env != null) { env.setChangeImmediate(getUpdatePolicy()!=UPDATE_ON_EXPLICIT_REQUEST); attachToEnv(getPropertyEnv()); } }