3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.agent
;
13 import org
.eclipse
.swt
.SWT
;
15 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
16 import eu
.etaxonomy
.cdm
.model
.agent
.Team
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractCdmEntityWizardPage
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
19 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
20 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
24 * TeamWizardPage class.
28 * @created Jun 1, 2010
31 public class TeamWizardPage
extends AbstractCdmEntityWizardPage
<Team
> {
33 private boolean isNomenclaturalTeam
= false;
37 * Constructor for TeamWizardPage.
41 * a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
44 * a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder}
47 * a {@link eu.etaxonomy.cdm.model.agent.Team} object.
49 public TeamWizardPage(CdmFormFactory formFactory
,
50 ConversationHolder conversation
, Team entity
, boolean isNomenclaturalTeam
) {
51 super(formFactory
, conversation
, entity
);
53 setIsNomenclaturalTeam(isNomenclaturalTeam
);
58 public AbstractCdmDetailElement
<Team
> createElement(
59 ICdmFormElement rootElement
) {
60 TeamDetailElement teamElement
= formFactory
.createTeamDetailElement(rootElement
, SWT
.NULL
, isNomenclaturalTeam
);
61 teamElement
.setEntity(entity
);
66 * @return the isNomenclaturalTeam
68 public boolean isNomenclaturalTeam() {
69 return isNomenclaturalTeam
;
72 public void setIsNomenclaturalTeam(boolean isNomenclaturalTeam
){
73 this.isNomenclaturalTeam
= isNomenclaturalTeam
;