tabbed_properties branch merged into trunk completely
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / 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.section.agent;
12
13 import org.apache.log4j.Logger;
14 import org.eclipse.swt.SWT;
15
16 import eu.etaxonomy.cdm.model.agent.Person;
17 import eu.etaxonomy.taxeditor.forms.CdmEntityWizardPage;
18 import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
19 import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
20 import eu.etaxonomy.taxeditor.forms.CdmFormFactory.DetailType;
21 import eu.etaxonomy.taxeditor.section.AbstractCdmDetailElement;
22
23 /**
24 * @author n.hoffmann
25 * @created Jun 1, 2010
26 * @version 1.0
27 */
28 public class PersonWizardPage extends CdmEntityWizardPage<Person> {
29
30 private static final Logger logger = Logger
31 .getLogger(PersonWizardPage.class);
32
33 public PersonWizardPage(CdmFormFactory formFactory,
34 Person entity) {
35 super(formFactory, entity);
36 setTitle("Person");
37 }
38
39
40 /* (non-Javadoc)
41 * @see eu.etaxonomy.taxeditor.forms.CdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
42 */
43 @Override
44 public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
45 PersonDetailElement personElement = (PersonDetailElement) formFactory.createCdmDetailElement(DetailType.PERSON, rootElement, SWT.NULL);
46 personElement.setEntity(entity);
47 return personElement;
48 }
49 }