Revision 3be6ef3e
Added by Niels Hoffmann over 13 years ago
taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/section/name/NameDetailSection.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.taxeditor.section.ITaxonDetailSection; |
25 | 25 |
|
26 | 26 |
/** |
27 |
* <p>NameDetailSection class.</p> |
|
28 |
* |
|
27 | 29 |
* @author n.hoffmann |
28 | 30 |
* @created 05.06.2009 |
29 | 31 |
* @version 1.0 |
... | ... | |
36 | 38 |
|
37 | 39 |
|
38 | 40 |
/** |
39 |
* @param parentElement |
|
40 |
* @param listener |
|
41 |
* @param style |
|
41 |
* <p>Constructor for NameDetailSection.</p> |
|
42 |
* |
|
43 |
* @param parentElement a {@link eu.etaxonomy.taxeditor.forms.ICdmFormElement} object. |
|
44 |
* @param style a int. |
|
45 |
* @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object. |
|
46 |
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object. |
|
47 |
* @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object. |
|
42 | 48 |
*/ |
43 | 49 |
public NameDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement, |
44 | 50 |
ISelectionProvider selectionProvider, int style) { |
45 | 51 |
super(cdmFormFactory, conversation, parentElement, selectionProvider, style); |
46 | 52 |
} |
47 | 53 |
|
54 |
/** {@inheritDoc} */ |
|
48 | 55 |
public void setTaxon(TaxonBase entity) { |
49 | 56 |
NonViralName name = (NonViralName) HibernateProxyHelper.deproxy(entity.getName()); |
50 | 57 |
setEntity(name); |
51 | 58 |
} |
52 | 59 |
|
60 |
/** {@inheritDoc} */ |
|
53 | 61 |
@Override |
54 | 62 |
public String getHeading() { |
55 | 63 |
return "Scientific Name"; |
56 | 64 |
} |
57 | 65 |
|
66 |
/** {@inheritDoc} */ |
|
58 | 67 |
@Override |
59 | 68 |
protected DetailType getDetailType() { |
60 | 69 |
return DetailType.SCIENTIFICNAME; |
61 | 70 |
} |
62 | 71 |
|
72 |
/** {@inheritDoc} */ |
|
63 | 73 |
@Override |
64 | 74 |
protected void setSectionTitle() { |
65 | 75 |
if(!isDisposed()){ |
Also available in: Unified diff
performed javacscript:fix and worked on documentation