Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/TermVocabularyDetailSection.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2009 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 |
*/ |
... | ... | |
15 | 15 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
16 | 16 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
|
|
18 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
|
19 | 19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
20 | 20 |
|
21 | 21 |
/** |
... | ... | |
40 | 40 |
// TODO Auto-generated constructor stub |
41 | 41 |
} |
42 | 42 |
|
43 |
/* (non-Javadoc) |
|
44 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getDetailType() |
|
45 |
*/ |
|
46 |
@Override |
|
47 |
protected DetailType getDetailType() { |
|
48 |
|
|
49 |
return DetailType.TERM_VOCABULARY; |
|
50 |
} |
|
51 |
|
|
52 | 43 |
/* (non-Javadoc) |
53 | 44 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#getHeading() |
54 | 45 |
*/ |
55 | 46 |
@Override |
56 | 47 |
public String getHeading() { |
57 |
|
|
48 |
|
|
58 | 49 |
return "Vocabulary: "+ (getEntity() != null ? getEntity().getLabel() : ""); |
59 | 50 |
} |
60 |
|
|
51 |
|
|
61 | 52 |
/* (non-Javadoc) |
62 | 53 |
* @see eu.etaxonomy.taxeditor.section.AbstractCdmDetailSection#setSectionTitle() |
63 | 54 |
*/ |
... | ... | |
65 | 56 |
protected void setSectionTitle() { |
66 | 57 |
setText(getHeading()); |
67 | 58 |
} |
59 |
|
|
60 |
/* (non-Javadoc) |
|
61 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
62 |
*/ |
|
63 |
@Override |
|
64 |
protected AbstractCdmDetailElement<TermVocabulary> createCdmDetailElement(AbstractCdmDetailSection<TermVocabulary> parentElement, int style) { |
|
65 |
return formFactory.createTermVocabularyDetailElement(parentElement); |
|
66 |
} |
|
68 | 67 |
} |
Also available in: Unified diff
merged trunk into branch