Merge branch 'release/5.32.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / derivedUnit / PreservedSpecimenDetailElement.java
index 90314a1289210224507d3d83c2a94377a3a35399..10231bbadb5496833643f2b6a387574d975b8da5 100644 (file)
@@ -6,7 +6,6 @@
  * The contents of this file are subject to the Mozilla Public License Version 1.1
  * See LICENSE.TXT at the top of this package for the full license terms.
  */
-
 package eu.etaxonomy.taxeditor.ui.section.occurrence.derivedUnit;
 
 import eu.etaxonomy.cdm.model.name.TaxonName;
@@ -23,25 +22,17 @@ import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
 import eu.etaxonomy.taxeditor.ui.element.LayoutConstants;
 import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
-import eu.etaxonomy.taxeditor.ui.section.occurrence.SpecimenCollectionDetailSection;
 import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
 
 /**
- * <p>
- * DerivedUnitBaseDetailElement class.
- * </p>
- *
  * @author n.hoffmann
  * @created Jun 24, 2010
- * @version 1.0
  */
 public class PreservedSpecimenDetailElement extends
                AbstractCdmDetailElement<DerivedUnit> {
 
        private TextWithLabelElement text_derivedUnitDefinitions;
 
-       private TextWithLabelElement text_barcode;
-
        private TextWithLabelElement text_catalogNumber;
 
        private EntitySelectionElement<TaxonName> selection_storedUnder;
@@ -50,8 +41,6 @@ public class PreservedSpecimenDetailElement extends
 
        private TermComboElement<DefinedTerm> combo_preservationMethod;
 
-       private SpecimenCollectionDetailSection section_duplicates;
-
        private PreservedSpecimenSourceCollectionDetailSection section_source;
 
        /**
@@ -71,7 +60,6 @@ public class PreservedSpecimenDetailElement extends
                super(formFactory, formElement);
        }
 
-       /** {@inheritDoc} */
        @Override
     protected void createControls(ICdmFormElement formElement, DerivedUnit entity, int style) {
                // Disable for now
@@ -80,7 +68,6 @@ public class PreservedSpecimenDetailElement extends
                // "Specimen Definition",
                // facade.getDerivedUnitDefinition(CdmStore.getDefaultLanguage()),
                // style);
-        text_barcode = formFactory.createTextWithLabelElement(formElement, "Barcode", entity.getBarcode(), style);
         text_catalogNumber = formFactory.createTextWithLabelElement(formElement, "Catalog Number", entity.getCatalogNumber(), style);
 
 
@@ -96,13 +83,10 @@ public class PreservedSpecimenDetailElement extends
                section_source.setEntity(entity);
        }
 
-    /** {@inheritDoc} */
     @Override
     public void handleEvent(Object eventSource) {
         if (eventSource == text_derivedUnitDefinitions) {
             getEntity().putDefinition(CdmStore.getDefaultLanguage(), text_derivedUnitDefinitions.getText());
-        } else if (eventSource == text_barcode) {
-            getEntity().setBarcode(text_barcode.getText());
         } else if (eventSource == text_catalogNumber) {
             getEntity().setCatalogNumber(text_catalogNumber.getText());
         } else if (eventSource == combo_preservationMethod) {