/**\r
* Copyright (C) 2011 EDIT\r
-* European Distributed Institute of Taxonomy \r
+* European Distributed Institute of Taxonomy\r
* http://www.e-taxonomy.eu\r
-* \r
+*\r
* The contents of this file are subject to the Mozilla Public License Version 1.1\r
* See LICENSE.TXT at the top of this package for the full license terms.\r
*/\r
import eu.etaxonomy.cdm.model.description.DescriptionElementBase;\r
import eu.etaxonomy.taxeditor.store.CdmStore;\r
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;\r
-import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;\r
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;\r
+import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;\r
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;\r
\r
/**\r
* UseRecordDetailSection Class\r
- * @author a.theys \r
+ * @author a.theys\r
* @created mar 13, 2012\r
* @version 1.0\r
*/\r
public class UseRecordDetailSection extends AbstractCdmDetailSection<DescriptionElementBase> {\r
- \r
+\r
/**Constructor for class UseRecordDetailSection\r
- * \r
+ *\r
* @param cdmFormFactory\r
* @param conversation\r
* @param parentElement\r
ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) {\r
super(cdmFormFactory, conversation, parentElement, selectionProvider, style);\r
}\r
- \r
- /** {@inheritDoc} */\r
- @Override\r
- protected DetailType getDetailType() {\r
- return DetailType.USE_RECORD;\r
- }\r
- \r
+\r
/** {@inheritDoc} */\r
@Override\r
public String getHeading() {\r
return "Use Record";\r
}\r
- \r
+\r
/** {@inheritDoc} */\r
@Override\r
protected void setSectionTitle() {\r
this.setText(getHeading() + ": " + getEntity().getFeature().getLabel(CdmStore.getDefaultLanguage()));\r
setTextClient(createToolbar());\r
}\r
+\r
+ /* (non-Javadoc)\r
+ * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)\r
+ */\r
+ @Override\r
+ protected AbstractCdmDetailElement createCdmDetailElement(AbstractCdmDetailSection<DescriptionElementBase> parentElement, int style) {\r
+ return formFactory.createUseRecordDetailElement(parentElement);\r
+ }\r
+\r
}\r