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.Person;
|
17
|
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade;
|
18
|
import eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade.DetailType;
|
19
|
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage;
|
20
|
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
|
21
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
22
|
|
23
|
/**
|
24
|
* <p>PersonWizardPage class.</p>
|
25
|
*
|
26
|
* @author n.hoffmann
|
27
|
* @created Jun 1, 2010
|
28
|
* @version 1.0
|
29
|
*/
|
30
|
public class PersonWizardPage extends AbstractCdmEntityWizardPage<Person> {
|
31
|
|
32
|
/**
|
33
|
* <p>Constructor for PersonWizardPage.</p>
|
34
|
*
|
35
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.singlesource.ui.forms.CdmFormFactoryFacade} object.
|
36
|
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
37
|
* @param entity a {@link eu.etaxonomy.cdm.model.agent.Person} object.
|
38
|
*/
|
39
|
public PersonWizardPage(CdmFormFactoryFacade formFactory, ConversationHolder conversation,
|
40
|
Person entity) {
|
41
|
super(formFactory, conversation, entity);
|
42
|
setTitle("Person");
|
43
|
}
|
44
|
|
45
|
|
46
|
/* (non-Javadoc)
|
47
|
* @see eu.etaxonomy.taxeditor.forms.CdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
|
48
|
*/
|
49
|
/** {@inheritDoc} */
|
50
|
@Override
|
51
|
public AbstractCdmDetailElement<Person> createElement(ICdmFormElement rootElement) {
|
52
|
PersonDetailElement personElement = (PersonDetailElement) formFactory.createCdmDetailElement(DetailType.PERSON, rootElement, SWT.NULL);
|
53
|
personElement.setEntity(entity);
|
54
|
return personElement;
|
55
|
}
|
56
|
}
|