/**
- *
+ *
*/
package eu.etaxonomy.taxeditor.ui.section.user;
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;
/**
}
/* (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);
}
-
}