Project

General

Profile

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

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

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

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

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

    
30
    private boolean isNomenclaturalTeam;
31

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

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

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

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

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