Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/agent/TeamDetailSection.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 |
*/ |
... | ... | |
16 | 16 |
import eu.etaxonomy.cdm.model.agent.Team; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
|
|
19 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
|
20 | 20 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection; |
21 | 21 |
|
22 | 22 |
/** |
... | ... | |
44 | 44 |
|
45 | 45 |
/** {@inheritDoc} */ |
46 | 46 |
@Override |
47 |
protected DetailType getDetailType() {
|
|
48 |
return DetailType.TEAM;
|
|
47 |
public String getHeading() {
|
|
48 |
return "Team";
|
|
49 | 49 |
} |
50 | 50 |
|
51 |
/** {@inheritDoc} */ |
|
51 |
/* (non-Javadoc) |
|
52 |
* @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int) |
|
53 |
*/ |
|
52 | 54 |
@Override |
53 |
public String getHeading() {
|
|
54 |
return "Team";
|
|
55 |
protected AbstractCdmDetailElement<Team> createCdmDetailElement(AbstractCdmDetailSection<Team> parentElement, int style) {
|
|
56 |
return formFactory.createTeamDetailElement(parentElement, style);
|
|
55 | 57 |
} |
56 | 58 |
} |
Also available in: Unified diff
merged trunk into branch