if (propertyId != null && field != null) {
dependsOn(field);
- field.dependsOn(this);
fields.put(propertyId, field);
propertyIds.addLast(propertyId);
field.setReadThrough(readThrough);
propertyIds.remove(id);
fields.remove(id);
removeDirectDependency(field);
- field.removeDirectDependency(this);
layout.removeComponent(field);
return true;
}
layout.replaceComponent(oldField, newField);
fields.put(propertyId, newField);
removeDirectDependency(oldField);
- oldField.removeDirectDependency(this);
dependsOn(newField);
newField.dependsOn(this);