Project

General

Profile

Download (1.76 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9

    
10
package eu.etaxonomy.taxeditor.ui.section.agent;
11

    
12
import org.eclipse.swt.SWT;
13

    
14
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
15
import eu.etaxonomy.cdm.model.agent.Person;
16
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
17
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
20

    
21
/**
22
 * <p>PersonWizardPage class.</p>
23
 *
24
 * @author n.hoffmann
25
 * @created Jun 1, 2010
26
 * @version 1.0
27
 */
28
public class PersonWizardPage extends AbstractCdmEntityWizardPage<Person> {
29

    
30
	/**
31
	 * <p>Constructor for PersonWizardPage.</p>
32
	 *
33
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
34
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
35
	 * @param entity a {@link eu.etaxonomy.cdm.model.agent.Person} object.
36
	 */
37
	public PersonWizardPage(CdmFormFactory formFactory, ConversationHolder conversation,
38
			Person entity) {
39
		super(formFactory, conversation, entity);
40
		setTitle("Person");
41
	}
42

    
43

    
44
	/* (non-Javadoc)
45
	 * @see eu.etaxonomy.taxeditor.forms.CdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
46
	 */
47
	/** {@inheritDoc} */
48
	@Override
49
	public AbstractCdmDetailElement<Person> createElement(ICdmFormElement rootElement) {
50
		PersonDetailElement personElement = formFactory.createPersonDetailElement(rootElement, SWT.NULL);
51
		personElement.setEntity(entity);
52
		return personElement;
53
	}
54
}
(6-6/12)