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