- completely removed DetailType enum and all its uses
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / common / ReferencedEntityDetailSection.java
index f0ade829c97b042a644dcadb8fba674f48a620c3..d9825324dff6423943b6b543588cd228aefa1152 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 /**
 * Copyright (C) 2009 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
-* 
+*
 * 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.
 */
@@ -15,7 +15,7 @@ import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.model.common.ReferencedEntityBase;
 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
+import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
 
 /**
@@ -31,15 +31,17 @@ public class ReferencedEntityDetailSection extends AbstractCdmDetailSection<Refe
                super(formFactory, conversation, parentElement, selectionProvider, style);
        }
 
-       @Override
-       protected DetailType getDetailType() {
-               return DetailType.REFERENCED_ENTITY;
-       }
-
        @Override
        public String getHeading() {
                return "Reference";
        }
 
+       /* (non-Javadoc)
+        * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
+        */
+       @Override
+       protected AbstractCdmDetailElement<ReferencedEntityBase> createCdmDetailElement(AbstractCdmDetailSection<ReferencedEntityBase> parentElement, int style) {
+           return formFactory.createReferenceEntityDetailElement(parentElement);
+       }
 
 }