Revision fd6c7492
Added by Patrick Plitzner almost 11 years ago
- removed the use of DetailType enum for the creation of GeneralDetailSection
- added "enum-free" creation methods for Abstract CdmDetailSection
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/GeneralDetailSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
... | ... | |
15 | 15 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 16 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
|
19 | 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; |
|
20 | 21 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
21 | 22 |
|
22 | 23 |
/** |
... | ... | |
56 | 57 |
return "General"; |
57 | 58 |
} |
58 | 59 |
|
60 |
/* (non-Javadoc) |
|
61 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
62 |
*/ |
|
63 |
@Override |
|
64 |
protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) { |
|
65 |
return formFactory.createGeneralDetailElement(parentElement); |
|
66 |
} |
|
67 |
|
|
59 | 68 |
} |
Also available in: Unified diff