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.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;
|
21
|
|
22
|
/**
|
23
|
* <p>
|
24
|
* TeamWizardPage class.
|
25
|
* </p>
|
26
|
*
|
27
|
* @author n.hoffmann
|
28
|
* @created Jun 1, 2010
|
29
|
* @version 1.0
|
30
|
*/
|
31
|
public class TeamWizardPage extends AbstractCdmEntityWizardPage<Team> {
|
32
|
|
33
|
/**
|
34
|
* <p>
|
35
|
* Constructor for TeamWizardPage.
|
36
|
* </p>
|
37
|
*
|
38
|
* @param formFactory
|
39
|
* a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
|
40
|
* object.
|
41
|
* @param conversation
|
42
|
* a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder}
|
43
|
* object.
|
44
|
* @param entity
|
45
|
* a {@link eu.etaxonomy.cdm.model.agent.Team} object.
|
46
|
*/
|
47
|
public TeamWizardPage(CdmFormFactory formFactory,
|
48
|
ConversationHolder conversation, Team entity) {
|
49
|
super(formFactory, conversation, entity);
|
50
|
setTitle("Team");
|
51
|
}
|
52
|
|
53
|
/** {@inheritDoc} */
|
54
|
@Override
|
55
|
public AbstractCdmDetailElement<Team> createElement(
|
56
|
ICdmFormElement rootElement) {
|
57
|
TeamDetailElement teamElement = formFactory.createTeamDetailElement(rootElement, SWT.NULL);
|
58
|
teamElement.setEntity(entity);
|
59
|
return teamElement;
|
60
|
}
|
61
|
}
|