Revision 139902da
Added by Patrick Plitzner almost 11 years ago
- completely removed DetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/HybridDetailSection.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 |
*/ |
... | ... | |
19 | 19 |
import eu.etaxonomy.cdm.model.taxon.TaxonBase; |
20 | 20 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
22 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
|
|
22 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
|
23 | 23 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
24 | 24 |
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection; |
25 | 25 |
|
... | ... | |
46 | 46 |
super(formFactory, conversation, parentElement, selectionProvider, style); |
47 | 47 |
} |
48 | 48 |
|
49 |
|
|
49 |
|
|
50 | 50 |
/* (non-Javadoc) |
51 | 51 |
* @see eu.etaxonomy.taxeditor.section.ITaxonBaseDetailSection#setTaxonBase(eu.etaxonomy.cdm.model.taxon.TaxonBase) |
52 | 52 |
*/ |
... | ... | |
65 | 65 |
return taxonBase; |
66 | 66 |
} |
67 | 67 |
|
68 |
/* (non-Javadoc) |
|
69 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType() |
|
70 |
*/ |
|
71 |
@Override |
|
72 |
protected DetailType getDetailType() { |
|
73 |
return DetailType.HYBRID; |
|
74 |
} |
|
75 |
|
|
76 | 68 |
/* (non-Javadoc) |
77 | 69 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading() |
78 | 70 |
*/ |
... | ... | |
88 | 80 |
protected void setSectionTitle() { |
89 | 81 |
setText(getHeading()); |
90 | 82 |
} |
91 |
|
|
83 |
|
|
84 |
/* (non-Javadoc) |
|
85 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
86 |
*/ |
|
87 |
@Override |
|
88 |
protected AbstractCdmDetailElement createCdmDetailElement(AbstractCdmDetailSection<TaxonNameBase> parentElement, int style) { |
|
89 |
//FIXME generic |
|
90 |
return formFactory.createHybridDetailElement(parentElement); |
|
91 |
} |
|
92 |
|
|
92 | 93 |
} |
Also available in: Unified diff