- completely removed DetailType enum and all its uses
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / user / UserDetailSection.java
index e1010d885b8509bfd72987cba837cb213eaa92ef..a80b492c070a74a1f27225c8fbc7e20506714615 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * 
+ *
  */
 package eu.etaxonomy.taxeditor.ui.section.user;
 
@@ -12,7 +12,7 @@ import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.model.common.User;
 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;
 
 /**
@@ -37,19 +37,18 @@ public class UserDetailSection extends AbstractCdmDetailSection<User> {
        }
 
        /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
+        * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
         */
        @Override
-       protected DetailType getDetailType() {
-               return DetailType.USER;
+       public String getHeading() {
+               return "User " + (getEntity() != null ? getEntity().getUsername() : "");
        }
 
        /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
+        * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
         */
        @Override
-       public String getHeading() {
-               return "User " + (getEntity() != null ? getEntity().getUsername() : "");
+       protected AbstractCdmDetailElement<User> createCdmDetailElement(AbstractCdmDetailSection<User> parentElement, int style) {
+           return formFactory.createUserDetailElement(parentElement);
        }
-
 }