Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/key/PolytomousKeyDetailSection.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.ui.section.key; |
5 | 5 |
|
... | ... | |
9 | 9 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
10 | 10 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
11 | 11 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
12 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
|
|
12 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
|
13 | 13 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
14 | 14 |
|
15 | 15 |
/** |
... | ... | |
25 | 25 |
} |
26 | 26 |
|
27 | 27 |
/* (non-Javadoc) |
28 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getDetailType()
|
|
28 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
|
|
29 | 29 |
*/ |
30 | 30 |
@Override |
31 |
protected DetailType getDetailType() {
|
|
32 |
return DetailType.POLYTOMOUS_KEY;
|
|
31 |
public String getHeading() {
|
|
32 |
return "Polytomous Key";
|
|
33 | 33 |
} |
34 | 34 |
|
35 | 35 |
/* (non-Javadoc) |
36 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#getHeading()
|
|
36 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
|
|
37 | 37 |
*/ |
38 | 38 |
@Override |
39 |
public String getHeading() {
|
|
40 |
return "Polytomous Key";
|
|
39 |
protected AbstractCdmDetailElement<PolytomousKey> createCdmDetailElement(AbstractCdmDetailSection<PolytomousKey> parentElement, int style) {
|
|
40 |
return formFactory.createPolytomousKeyDetailElement(parentElement);
|
|
41 | 41 |
} |
42 | 42 |
|
43 | 43 |
} |
Also available in: Unified diff
merged trunk into branch