Project

General

Profile

Download (1.78 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
package eu.etaxonomy.taxeditor.ui.section.agent;
10

    
11
import org.eclipse.swt.SWT;
12

    
13
import eu.etaxonomy.cdm.model.agent.Team;
14
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
15
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
16
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
17
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
18

    
19
/**
20
 * @author n.hoffmann
21
 * @created Jun 1, 2010
22
 */
23
public class TeamWizardPage extends AbstractCdmEntityWizardPage<Team> {
24

    
25
    private boolean isNomenclaturalTeam = false;
26
    private boolean isCollectorTeam = false;
27

    
28
	public TeamWizardPage(CdmFormFactory formFactory, Team entity, boolean isNomenclaturalTeam, boolean isCollectorTeam) {
29
		super(formFactory, entity);
30
		setTitle("Team");
31
		setIsNomenclaturalTeam(isNomenclaturalTeam);
32
		setIsCollectorTeam(isCollectorTeam);
33
	}
34

    
35
	@Override
36
	public AbstractCdmDetailElement<Team> createElement(
37
			ICdmFormElement rootElement) {
38
		TeamDetailElement teamElement = formFactory.createTeamDetailElement(rootElement, SWT.NULL, isNomenclaturalTeam, isCollectorTeam);
39
		teamElement.setEntity(entity);
40
		return teamElement;
41
	}
42

    
43
    public boolean isNomenclaturalTeam() {
44
        return isNomenclaturalTeam;
45
    }
46

    
47
    public void setIsNomenclaturalTeam(boolean isNomenclaturalTeam){
48
        this.isNomenclaturalTeam = isNomenclaturalTeam;
49
    }
50

    
51
    public boolean isCollectorTeam() {
52
        return isCollectorTeam;
53
    }
54

    
55
    public void setIsCollectorTeam(boolean isCollectorTeam){
56
        this.isCollectorTeam = isCollectorTeam;
57
    }
58
}
(13-13/13)