Project

General

Profile

Download (2.3 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10

    
11
package eu.etaxonomy.taxeditor.ui.section.agent;
12

    
13
import org.eclipse.jface.viewers.ISelectionProvider;
14

    
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.model.agent.Team;
17
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
20
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection;
21

    
22
/**
23
 * <p>TeamDetailSection class.</p>
24
 *
25
 * @author n.hoffmann
26
 * @created Mar 4, 2010
27
 * @version 1.0
28
 */
29
public class TeamDetailSection extends AbstractCdmDetailSection<Team>{
30

    
31
    private boolean isNomenclaturalTeam;
32

    
33
	/**
34
	 * <p>Constructor for TeamDetailSection.</p>
35
	 *
36
	 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
37
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
38
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
39
	 * @param selectionProvider a {@link org.eclipse.jface.viewers.ISelectionProvider} object.
40
	 * @param style a int.
41
	 */
42
	public TeamDetailSection(CdmFormFactory cdmFormFactory, ConversationHolder conversation, ICdmFormElement parentElement,
43
			ISelectionProvider selectionProvider, int style) {
44
		super(cdmFormFactory, conversation, parentElement, selectionProvider, style);
45
	}
46

    
47
	/** {@inheritDoc} */
48
	@Override
49
	public String getHeading() {
50
		return "Team";
51
	}
52

    
53
	/* (non-Javadoc)
54
	 * @see eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection#createCdmDetailElement(eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailSection, int)
55
	 */
56
	@Override
57
	protected AbstractCdmDetailElement<Team> createCdmDetailElement(AbstractCdmDetailSection<Team> parentElement, int style) {
58
	    return formFactory.createTeamDetailElement(parentElement, style, isNomenclaturalTeam);
59
	}
60

    
61
	public boolean isNomenclaturalTeam(){
62
	    return isNomenclaturalTeam;
63
	}
64

    
65
	public void setIsNomenclaturalTeam(boolean isNomenclaturalTeam){
66
	    this.isNomenclaturalTeam = isNomenclaturalTeam;
67
	}
68
}
(8-8/12)