Revision 139902da
Added by Patrick Plitzner over 10 years ago
- completely removed DetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/ReferenceDetailSection.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 |
*/ |
... | ... | |
20 | 20 |
import eu.etaxonomy.taxeditor.store.StoreUtil; |
21 | 21 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
22 | 22 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
23 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
|
|
23 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
|
24 | 24 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
25 | 25 |
import eu.etaxonomy.taxeditor.ui.section.ITaxonBaseDetailSection; |
26 | 26 |
|
... | ... | |
32 | 32 |
* @version 1.0 |
33 | 33 |
*/ |
34 | 34 |
public class ReferenceDetailSection extends AbstractCdmDetailSection<Reference> implements ITaxonBaseDetailSection{ |
35 |
|
|
35 |
|
|
36 | 36 |
private TaxonBase taxonBase; |
37 | 37 |
|
38 | 38 |
/** |
... | ... | |
54 | 54 |
* @see eu.etaxonomy.taxeditor.section.ITaxonDetailSection#setTaxon(eu.etaxonomy.cdm.model.taxon.TaxonBase) |
55 | 55 |
*/ |
56 | 56 |
/** {@inheritDoc} */ |
57 |
public void setTaxonBase(TaxonBase entity) { |
|
57 |
@Override |
|
58 |
public void setTaxonBase(TaxonBase entity) { |
|
58 | 59 |
this.taxonBase = entity; |
59 | 60 |
NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName()); |
60 |
|
|
61 |
|
|
61 | 62 |
Reference reference = (Reference) HibernateProxyHelper.deproxy(name.getNomenclaturalReference()); |
62 |
|
|
63 |
|
|
63 | 64 |
setEntity(reference); |
64 | 65 |
} |
65 | 66 |
|
... | ... | |
73 | 74 |
return "Reference"; |
74 | 75 |
} |
75 | 76 |
|
76 |
/** {@inheritDoc} */ |
|
77 |
@Override |
|
78 |
protected DetailType getDetailType() { |
|
79 |
return DetailType.REFERENCEBASE; |
|
80 |
} |
|
81 |
|
|
82 | 77 |
/** {@inheritDoc} */ |
83 | 78 |
@Override |
84 | 79 |
public void refresh() { |
... | ... | |
93 | 88 |
public TaxonBase getTaxonBase() { |
94 | 89 |
return taxonBase; |
95 | 90 |
} |
96 |
|
|
91 |
|
|
92 |
/* (non-Javadoc) |
|
93 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
94 |
*/ |
|
95 |
@Override |
|
96 |
protected AbstractCdmDetailElement<Reference> createCdmDetailElement(AbstractCdmDetailSection<Reference> parentElement, int style) { |
|
97 |
return formFactory.createReferenceDetailElement(parentElement, style); |
|
98 |
} |
|
99 |
|
|
97 | 100 |
} |
Also available in: Unified diff