combo_lifeStage;
/**
* Constructor for FieldObservationDetailElement.
@@ -63,8 +66,8 @@ public class FieldObservationDetailElement extends AbstractCdmDetailElement selection_collector;
private TextWithLabelElement text_collectingNumber;
-// private EntitySelectionElement selection_collection;
-// private TextWithLabelElement text_accessionNumber;
+ private EntitySelectionElement selection_collection;
+ private TextWithLabelElement text_accessionNumber;
/**
* @param formFactory
@@ -88,14 +89,14 @@ public class GeneralDetailElement extends
style);
text_collectingNumber = formFactory.createTextWithLabelElement(formElement,
"Collecting number", entity.getFieldNumber(), style);
-// selection_collection = formFactory
-// .createSelectionElement(Collection.class,
-// getConversationHolder(), formElement, "Collection",
-// entity.getCollection(),
-// EntitySelectionElement.ALL, style);
-// text_accessionNumber = formFactory.createTextWithLabelElement(
-// formElement, "Accession Number", entity.getAccessionNumber(),
-// style);
+ selection_collection = formFactory
+ .createSelectionElement(Collection.class,
+ getConversationHolder(), formElement, "Collection",
+ entity.getCollection(),
+ EntitySelectionElement.ALL, style);
+ text_accessionNumber = formFactory.createTextWithLabelElement(
+ formElement, "Accession Number", entity.getAccessionNumber(),
+ style);
}
@@ -127,11 +128,11 @@ public class GeneralDetailElement extends
} else if (eventSource == text_collectingNumber) {
getEntity().setFieldNumber(text_collectingNumber.getText());
}
-// else if (eventSource == selection_collection) {
-// getEntity().setCollection(selection_collection.getSelection());
-// } else if (eventSource == text_accessionNumber) {
-// getEntity().setAccessionNumber(text_accessionNumber.getText());
-// }
+ else if (eventSource == selection_collection) {
+ getEntity().setCollection(selection_collection.getSelection());
+ } else if (eventSource == text_accessionNumber) {
+ getEntity().setAccessionNumber(text_accessionNumber.getText());
+ }
if (eventSource != toggleableText_titleCache) {
toggleableText_titleCache.setText(getEntity().getTitleCache());