- removed the use of DetailType enum for the creation of GeneralDetailSection
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / DerivedUnitBaseDetailSection.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.ui.section.occurrence;
12
13 import org.eclipse.jface.viewers.ISelectionProvider;
14
15 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16 import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
17 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
19 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
20 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
21 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
22
23 /**
24 * <p>DerivedUnitBaseDetailSection class.</p>
25 *
26 * @author n.hoffmann
27 * @created Jun 24, 2010
28 * @version 1.0
29 */
30 public class DerivedUnitBaseDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection{
31
32 /**
33 * <p>Constructor for DerivedUnitBaseDetailSection.</p>
34 *
35 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
36 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
37 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
38 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
39 * @param style a int.
40 */
41 public DerivedUnitBaseDetailSection(CdmFormFactory formFactory,
42 ConversationHolder conversation, ICdmFormElement parentElement,
43 ISelectionProvider selectionProvider, int style) {
44 super(formFactory, conversation, parentElement, selectionProvider, style);
45 }
46
47 /* (non-Javadoc)
48 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
49 */
50 /** {@inheritDoc} */
51 @Override
52 protected DetailType getDetailType() {
53 return DetailType.DERIVED_UNIT;
54 }
55
56 /* (non-Javadoc)
57 * @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
58 */
59 /** {@inheritDoc} */
60 @Override
61 public String getHeading() {
62 return "Specimen Details";
63 }
64
65 /* (non-Javadoc)
66 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
67 */
68 @Override
69 protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) {
70 return formFactory.createDerivedUnitBaseDetailElement(parentElement);
71 }
72 }