had to rename the packages to make them compliant with buckminster
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / agent / TeamWizardPage.java
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.swt.SWT;
14
15 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16 import eu.etaxonomy.cdm.model.agent.Team;
17 import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage;
18 import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
19 import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType;
20 import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
21 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
22
23 /**
24 * <p>TeamWizardPage class.</p>
25 *
26 * @author n.hoffmann
27 * @created Jun 1, 2010
28 * @version 1.0
29 */
30 public class TeamWizardPage extends AbstractCdmEntityWizardPage<Team> {
31
32 /**
33 * <p>Constructor for TeamWizardPage.</p>
34 *
35 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
36 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
37 * @param entity a {@link eu.etaxonomy.cdm.model.agent.Team} object.
38 */
39 public TeamWizardPage(CdmFormFactory formFactory, ConversationHolder conversation, Team entity) {
40 super(formFactory, conversation, entity);
41 setTitle("Team");
42 }
43
44 /** {@inheritDoc} */
45 @Override
46 public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
47 TeamDetailElement teamElement = (TeamDetailElement) formFactory.createCdmDetailElement(DetailType.TEAM, rootElement, SWT.NULL);
48 teamElement.setEntity(entity);
49 return teamElement;
50 }
51 }