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/GatheringEventDetailSection.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 |
/** |
... | ... | |
27 | 28 |
* @version 1.0 |
28 | 29 |
*/ |
29 | 30 |
public class GatheringEventDetailSection extends AbstractCdmDetailSection<DerivedUnitFacade> implements IDerivedUnitFacadeDetailSection{ |
30 |
|
|
31 |
|
|
31 | 32 |
/** |
32 | 33 |
* <p>Constructor for GatheringEventDetailSection.</p> |
33 | 34 |
* |
... | ... | |
42 | 43 |
ISelectionProvider selectionProvider, int style) { |
43 | 44 |
super(formFactory, conversation, parentElement, selectionProvider, style); |
44 | 45 |
} |
45 |
|
|
46 |
|
|
46 |
|
|
47 |
|
|
47 | 48 |
/* (non-Javadoc) |
48 | 49 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType() |
49 | 50 |
*/ |
... | ... | |
61 | 62 |
public String getHeading() { |
62 | 63 |
return "Gathering Event Details"; |
63 | 64 |
} |
65 |
|
|
66 |
/* (non-Javadoc) |
|
67 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
68 |
*/ |
|
69 |
@Override |
|
70 |
protected AbstractCdmDetailElement<DerivedUnitFacade> createCdmDetailElement(AbstractCdmDetailSection<DerivedUnitFacade> parentElement, int style) { |
|
71 |
return formFactory.createGatheringEventDetailElement(parentElement); |
|
72 |
} |
|
64 | 73 |
} |
Also available in: Unified diff