From aaeb07b5eaa134eb8560be9115ccb62b4c4fe011 Mon Sep 17 00:00:00 2001 From: izabel <izabel> Date: Tue, 17 Mar 2009 11:14:05 +0000 Subject: [PATCH] add material chooser SVN: 10262 --- .../PropertyTypeAssignmentForm.java | 2 +- .../AbstractGenericEntityEditForm.java | 17 +++++++++------- ...AbstractGenericEntityRegistrationForm.java | 8 ++++++-- .../experiment/ExperimentPropertyEditor.java | 11 ++++++---- .../experiment/GenericExperimentEditForm.java | 6 ++++-- .../GenericExperimentRegistrationForm.java | 8 +++++--- .../experiment/PropertiesEditor.java | 20 +++++++++++-------- .../material/GenericMaterialEditForm.java | 6 ++++-- .../material/MaterialPropertyEditor.java | 12 +++++++---- .../sample/GenericSampleEditForm.java | 5 +++-- .../sample/GenericSampleRegistrationForm.java | 6 ++++-- .../sample/SamplePropertyEditor.java | 12 +++++++---- 12 files changed, 72 insertions(+), 41 deletions(-) diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property_type/PropertyTypeAssignmentForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property_type/PropertyTypeAssignmentForm.java index 40dbe75ab0f..b9b45284afe 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property_type/PropertyTypeAssignmentForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/generic/client/web/client/application/ui/property_type/PropertyTypeAssignmentForm.java @@ -284,7 +284,7 @@ public final class PropertyTypeAssignmentForm extends LayoutContainer + propertyType.getSimpleCode()); Field<?> field = PropertyFieldFactory.createField(propertyType, false, viewContext - .getMessage(Dict.DEFAULT_VALUE), fieldId, null); + .getMessage(Dict.DEFAULT_VALUE), fieldId, null, viewContext); field.setToolTip(viewContext.getMessage(Dict.DEFAULT_VALUE_TOOLTIP)); defaultValueField = field; defaultValueField.show(); diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityEditForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityEditForm.java index 616748c1241..0d7e3482add 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityEditForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityEditForm.java @@ -26,6 +26,7 @@ import com.extjs.gxt.ui.client.widget.form.Field; import com.google.gwt.user.client.Element; import com.google.gwt.user.client.ui.Widget; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict; import ch.systemsx.cisd.openbis.generic.client.web.client.application.GenericConstants; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; @@ -64,7 +65,8 @@ abstract public class AbstractGenericEntityEditForm<T extends EntityType, S exte abstract protected void updateCheckPageWidgets(); abstract protected PropertiesEditor<T, S, P> createPropertiesEditor( - List<S> entityTypesPropertyTypes, List<P> properties, String string); + List<S> entityTypesPropertyTypes, List<P> properties, String string, + IViewContext<ICommonClientServiceAsync> context); public AbstractGenericEntityEditForm(final IViewContext<?> viewContext, V entity, boolean editMode) @@ -75,13 +77,14 @@ abstract public class AbstractGenericEntityEditForm<T extends EntityType, S exte this.editMode = editMode; editor = createPropertiesEditor(entity.getEntityTypePropertyTypes(), entity.getProperties(), - createId(entity.getEntityKind(), entity.getIdentifier())); + createId(entity.getEntityKind(), entity.getIdentifier()), viewContext + .getCommonViewContext()); grid = new EntityPropertyGrid<T, S, P>(viewContext, entity.getProperties()); + checkComponents.add(grid.getWidget()); for (Widget w : getEntitySpecificCheckPageWidgets()) { checkComponents.add(w); } - checkComponents.add(grid.getWidget()); checkComponents.add(new Button(viewContext.getMessage(Dict.BUTTON_EDIT), new SelectionListener<ComponentEvent>() { @@ -109,14 +112,14 @@ abstract public class AbstractGenericEntityEditForm<T extends EntityType, S exte private final void addFormFields() { - for (final Field<?> specificField : getEntitySpecificFormFields()) - { - formPanel.add(specificField); - } for (final Field<?> propertyField : editor.getPropertyFields()) { formPanel.add(propertyField); } + for (final Field<?> specificField : getEntitySpecificFormFields()) + { + formPanel.add(specificField); + } } protected List<P> extractProperties() diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityRegistrationForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityRegistrationForm.java index ba7809c0b52..6a66ffc8b4d 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityRegistrationForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/AbstractGenericEntityRegistrationForm.java @@ -22,6 +22,7 @@ import com.extjs.gxt.ui.client.widget.form.Field; import com.extjs.gxt.ui.client.widget.form.TextField; import com.google.gwt.user.client.Element; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict; import ch.systemsx.cisd.openbis.generic.client.web.client.application.GenericConstants; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; @@ -57,7 +58,9 @@ abstract public class AbstractGenericEntityRegistrationForm<T extends EntityType { super(viewContext, createId(entityKind)); this.viewContext = viewContext; - propertiesEditor = createPropertiesEditor(entityTypesPropertyTypes, createId(entityKind)); + propertiesEditor = + createPropertiesEditor(entityTypesPropertyTypes, createId(entityKind), viewContext + .getCommonViewContext()); } abstract protected List<Field<?>> getEntitySpecificFields(); @@ -65,7 +68,8 @@ abstract public class AbstractGenericEntityRegistrationForm<T extends EntityType abstract protected void createEntitySpecificFields(); abstract protected PropertiesEditor<T, S, P> createPropertiesEditor( - List<S> entityTypesPropertyTypes, String string); + List<S> entityTypesPropertyTypes, String string, + IViewContext<ICommonClientServiceAsync> context); protected static String createId(EntityKind entityKind) { diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/ExperimentPropertyEditor.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/ExperimentPropertyEditor.java index aed7743cc32..0b98cab55c9 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/ExperimentPropertyEditor.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/ExperimentPropertyEditor.java @@ -18,6 +18,8 @@ package ch.systemsx.cisd.openbis.plugin.generic.client.web.client.application.ex import java.util.List; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; +import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExperimentProperty; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExperimentType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExperimentTypePropertyType; @@ -27,15 +29,16 @@ public class ExperimentPropertyEditor extends { public ExperimentPropertyEditor(List<ExperimentTypePropertyType> entityTypesPropertyTypes, - List<ExperimentProperty> properties, String id) + List<ExperimentProperty> properties, String id, + IViewContext<ICommonClientServiceAsync> viewContext) { - super(id, entityTypesPropertyTypes, properties); + super(id, entityTypesPropertyTypes, properties, viewContext); } public ExperimentPropertyEditor(List<ExperimentTypePropertyType> entityTypesPropertyTypes, - String id) + String id, IViewContext<ICommonClientServiceAsync> viewContext) { - super(id, entityTypesPropertyTypes); + super(id, entityTypesPropertyTypes, viewContext); } @Override diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentEditForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentEditForm.java index 2b34211871f..45d09cd9f93 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentEditForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentEditForm.java @@ -28,6 +28,7 @@ import com.extjs.gxt.ui.client.widget.form.Field; import com.extjs.gxt.ui.client.widget.form.FileUploadField; import com.google.gwt.user.client.ui.Widget; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.client.web.client.application.InfoBoxCallbackListener; @@ -147,9 +148,10 @@ public final class GenericExperimentEditForm @Override protected PropertiesEditor<ExperimentType, ExperimentTypePropertyType, ExperimentProperty> createPropertiesEditor( List<ExperimentTypePropertyType> entityTypesPropertyTypes, - List<ExperimentProperty> properties, String id) + List<ExperimentProperty> properties, String id, + IViewContext<ICommonClientServiceAsync> context) { - return new ExperimentPropertyEditor(entityTypesPropertyTypes, properties, id); + return new ExperimentPropertyEditor(entityTypesPropertyTypes, properties, id, context); } @Override diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentRegistrationForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentRegistrationForm.java index 837afdd0490..aafe5a264ea 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentRegistrationForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/GenericExperimentRegistrationForm.java @@ -26,6 +26,7 @@ import com.extjs.gxt.ui.client.widget.form.Field; import com.extjs.gxt.ui.client.widget.form.FileUploadField; import com.extjs.gxt.ui.client.widget.form.TextArea; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; @@ -140,7 +141,7 @@ public final class GenericExperimentRegistrationForm protected void createEntitySpecificFields() { - projectSelectionWidget = new ProjectSelectionWidget(viewContext, null, getId()); + projectSelectionWidget = new ProjectSelectionWidget(viewContext, getId()); FieldUtil.markAsMandatory(projectSelectionWidget); projectSelectionWidget.setFieldLabel(viewContext.getMessage(Dict.PROJECT)); @@ -226,9 +227,10 @@ public final class GenericExperimentRegistrationForm @Override protected PropertiesEditor<ExperimentType, ExperimentTypePropertyType, ExperimentProperty> createPropertiesEditor( - List<ExperimentTypePropertyType> etpt, String id) + List<ExperimentTypePropertyType> etpt, String id, + IViewContext<ICommonClientServiceAsync> context) { - return new ExperimentPropertyEditor(etpt, id); + return new ExperimentPropertyEditor(etpt, id, context); } } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/PropertiesEditor.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/PropertiesEditor.java index 3eaa53e446c..1e0081e22fd 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/PropertiesEditor.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/experiment/PropertiesEditor.java @@ -23,6 +23,8 @@ import java.util.Map; import com.extjs.gxt.ui.client.widget.form.Field; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; +import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.client.web.client.application.ui.field.PropertyFieldFactory; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityProperty; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityType; @@ -50,22 +52,22 @@ abstract public class PropertiesEditor<T extends EntityType, S extends EntityTyp * Requires initial values of properties. */ protected PropertiesEditor(String id, final List<S> entityTypesPropertyTypes, - final List<P> properties) + final List<P> properties, IViewContext<ICommonClientServiceAsync> viewContext) { assert properties != null : "Undefined properties."; this.id = id; this.entityTypesPropertyTypes = entityTypesPropertyTypes; this.initialProperties = createInitialProperties(properties); - this.propertyFields = createPropertyFields(); + this.propertyFields = createPropertyFields(viewContext); } - private List<Field<?>> createPropertyFields() + private List<Field<?>> createPropertyFields(IViewContext<ICommonClientServiceAsync> viewContext) { List<Field<?>> result = new ArrayList<Field<?>>(); for (final S stpt : entityTypesPropertyTypes) { result.add(createPropertyField(stpt, initialProperties.get(stpt.getPropertyType() - .getCode()))); + .getCode()), viewContext)); } return result; } @@ -83,12 +85,14 @@ abstract public class PropertiesEditor<T extends EntityType, S extends EntityTyp /** * Does not require initial values of properties. */ - public PropertiesEditor(String id, final List<S> entityTypesPropertyTypes) + public PropertiesEditor(String id, final List<S> entityTypesPropertyTypes, + IViewContext<ICommonClientServiceAsync> viewContext) { - this(id, entityTypesPropertyTypes, new ArrayList<P>()); + this(id, entityTypesPropertyTypes, new ArrayList<P>(), viewContext); } - private final Field<?> createPropertyField(final S etpt, String value) + private final Field<?> createPropertyField(final S etpt, String value, + IViewContext<ICommonClientServiceAsync> viewContext) { final Field<?> field; final boolean isMandatory = etpt.isMandatory(); @@ -96,7 +100,7 @@ abstract public class PropertiesEditor<T extends EntityType, S extends EntityTyp final String propertyTypeCode = etpt.getPropertyType().getCode(); field = PropertyFieldFactory.createField(etpt.getPropertyType(), isMandatory, label, - createFormFieldId(getId(), propertyTypeCode), value, null); + createFormFieldId(getId(), propertyTypeCode), value, viewContext); field.setData(ETPT, etpt); field.setTitle(propertyTypeCode); return field; diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/GenericMaterialEditForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/GenericMaterialEditForm.java index 942383a1a1b..c04b24b4bfa 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/GenericMaterialEditForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/GenericMaterialEditForm.java @@ -22,6 +22,7 @@ import java.util.List; import com.extjs.gxt.ui.client.widget.form.Field; import com.google.gwt.user.client.ui.Widget; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.client.web.client.application.InfoBoxCallbackListener; @@ -87,9 +88,10 @@ public final class GenericMaterialEditForm @Override protected PropertiesEditor<MaterialType, MaterialTypePropertyType, MaterialProperty> createPropertiesEditor( List<MaterialTypePropertyType> entityTypesPropertyTypes, - List<MaterialProperty> properties, String id) + List<MaterialProperty> properties, String id, + IViewContext<ICommonClientServiceAsync> context) { - return new MaterialPropertyEditor(entityTypesPropertyTypes, properties, id); + return new MaterialPropertyEditor(entityTypesPropertyTypes, properties, id, context); } @Override diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/MaterialPropertyEditor.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/MaterialPropertyEditor.java index bdf2c71494c..ca658215876 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/MaterialPropertyEditor.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/material/MaterialPropertyEditor.java @@ -18,6 +18,8 @@ package ch.systemsx.cisd.openbis.plugin.generic.client.web.client.application.ma import java.util.List; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; +import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.MaterialProperty; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.MaterialType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.MaterialTypePropertyType; @@ -28,14 +30,16 @@ public class MaterialPropertyEditor extends { public MaterialPropertyEditor(List<MaterialTypePropertyType> entityTypesPropertyTypes, - List<MaterialProperty> properties, String id) + List<MaterialProperty> properties, String id, + IViewContext<ICommonClientServiceAsync> viewContext) { - super(id, entityTypesPropertyTypes, properties); + super(id, entityTypesPropertyTypes, properties, viewContext); } - public MaterialPropertyEditor(List<MaterialTypePropertyType> entityTypesPropertyTypes, String id) + public MaterialPropertyEditor(List<MaterialTypePropertyType> entityTypesPropertyTypes, + String id, IViewContext<ICommonClientServiceAsync> viewContext) { - super(id, entityTypesPropertyTypes); + super(id, entityTypesPropertyTypes, viewContext); } @Override diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleEditForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleEditForm.java index d961792ea01..acc964006ec 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleEditForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleEditForm.java @@ -22,6 +22,7 @@ import java.util.List; import com.extjs.gxt.ui.client.widget.form.Field; import com.google.gwt.user.client.ui.Widget; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.client.web.client.application.InfoBoxCallbackListener; @@ -87,9 +88,9 @@ public final class GenericSampleEditForm @Override protected PropertiesEditor<SampleType, SampleTypePropertyType, SampleProperty> createPropertiesEditor( List<SampleTypePropertyType> entityTypesPropertyTypes, List<SampleProperty> properties, - String id) + String id, IViewContext<ICommonClientServiceAsync> context) { - return new SamplePropertyEditor(entityTypesPropertyTypes, properties, id); + return new SamplePropertyEditor(entityTypesPropertyTypes, properties, id, context); } @Override diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleRegistrationForm.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleRegistrationForm.java index 7221ed67cd9..7fd4c349082 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleRegistrationForm.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/GenericSampleRegistrationForm.java @@ -22,6 +22,7 @@ import java.util.List; import com.extjs.gxt.ui.client.widget.form.Field; import com.extjs.gxt.ui.client.widget.form.TextField; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; import ch.systemsx.cisd.openbis.generic.client.web.client.application.AbstractAsyncCallback; import ch.systemsx.cisd.openbis.generic.client.web.client.application.Dict; import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; @@ -155,8 +156,9 @@ public final class GenericSampleRegistrationForm extends @Override protected PropertiesEditor<SampleType, SampleTypePropertyType, SampleProperty> createPropertiesEditor( - List<SampleTypePropertyType> entityTypesPropertyTypes, String string) + List<SampleTypePropertyType> entityTypesPropertyTypes, String string, + IViewContext<ICommonClientServiceAsync> context) { - return new SamplePropertyEditor(entityTypesPropertyTypes, string); + return new SamplePropertyEditor(entityTypesPropertyTypes, string, context); } } diff --git a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/SamplePropertyEditor.java b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/SamplePropertyEditor.java index e4c1f66a7c1..7f42a1e3cb4 100644 --- a/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/SamplePropertyEditor.java +++ b/openbis/source/java/ch/systemsx/cisd/openbis/plugin/generic/client/web/client/application/sample/SamplePropertyEditor.java @@ -18,6 +18,8 @@ package ch.systemsx.cisd.openbis.plugin.generic.client.web.client.application.sa import java.util.List; +import ch.systemsx.cisd.openbis.generic.client.web.client.ICommonClientServiceAsync; +import ch.systemsx.cisd.openbis.generic.client.web.client.application.IViewContext; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleProperty; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleType; import ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleTypePropertyType; @@ -28,14 +30,16 @@ public class SamplePropertyEditor extends { public SamplePropertyEditor(List<SampleTypePropertyType> entityTypesPropertyTypes, - List<SampleProperty> properties, String id) + List<SampleProperty> properties, String id, + IViewContext<ICommonClientServiceAsync> viewContext) { - super(id, entityTypesPropertyTypes, properties); + super(id, entityTypesPropertyTypes, properties, viewContext); } - public SamplePropertyEditor(List<SampleTypePropertyType> entityTypesPropertyTypes, String id) + public SamplePropertyEditor(List<SampleTypePropertyType> entityTypesPropertyTypes, String id, + IViewContext<ICommonClientServiceAsync> viewContext) { - super(id, entityTypesPropertyTypes); + super(id, entityTypesPropertyTypes, viewContext); } @Override -- GitLab