Revision b0ce5b17
Added by Patrick Plitzner almost 11 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/reference/NomenclaturalReferenceDetailSection.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 |
|
... | ... | |
48 | 48 |
ICdmFormElement parentElement, ISelectionProvider selectionProvider, int style) { |
49 | 49 |
super(cdmFormFactory, conversation, parentElement, selectionProvider, style); |
50 | 50 |
} |
51 |
|
|
52 |
/** {@inheritDoc} */ |
|
53 |
@Override |
|
54 |
protected DetailType getDetailType() { |
|
55 |
return DetailType.NOMENCLATURALREFERENCE; |
|
56 |
} |
|
57 | 51 |
|
58 | 52 |
/** {@inheritDoc} */ |
59 | 53 |
@Override |
... | ... | |
62 | 56 |
} |
63 | 57 |
|
64 | 58 |
/** {@inheritDoc} */ |
65 |
public void setTaxonBase(TaxonBase entity) { |
|
59 |
@Override |
|
60 |
public void setTaxonBase(TaxonBase entity) { |
|
66 | 61 |
this.taxonBase = entity; |
67 | 62 |
TaxonNameBase name = (TaxonNameBase) HibernateProxyHelper.deproxy(entity.getName()); |
68 | 63 |
setEntity(name); |
69 | 64 |
} |
70 |
|
|
65 |
|
|
71 | 66 |
/** {@inheritDoc} */ |
72 | 67 |
@Override |
73 | 68 |
protected void setSectionTitle() { |
... | ... | |
76 | 71 |
INomenclaturalReference reference = getEntity().getNomenclaturalReference(); |
77 | 72 |
String nomenclaturalCitation = reference.getNomenclaturalCitation(getEntity().getNomenclaturalMicroReference()); |
78 | 73 |
title = ": " + nomenclaturalCitation; |
79 |
}
|
|
74 |
} |
|
80 | 75 |
this.setText(getHeading() + title); |
81 | 76 |
} |
82 | 77 |
|
... | ... | |
87 | 82 |
public TaxonBase getTaxonBase() { |
88 | 83 |
return taxonBase; |
89 | 84 |
} |
85 |
|
|
86 |
/* (non-Javadoc) |
|
87 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
88 |
*/ |
|
89 |
@Override |
|
90 |
protected AbstractCdmDetailElement<TaxonNameBase> createCdmDetailElement(AbstractCdmDetailSection<TaxonNameBase> parentElement, int style) { |
|
91 |
return formFactory.createNomenclaturalReferenceDetailElement(parentElement, style); |
|
92 |
} |
|
90 | 93 |
} |
Also available in: Unified diff
merged trunk into branch