0f47182680bca1f9d9c8f0c1a7a006363abedc37
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / classification / ClassificationWizardPage.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.classification;
12
13 import org.eclipse.swt.SWT;
14
15 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16 import eu.etaxonomy.cdm.model.taxon.Classification;
17 import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
18 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
19 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
20 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
21
22 /**
23 * <p>
24 * ClassificationWizardPage class.
25 * </p>
26 *
27 * @author n.hoffmann
28 * @created 23.06.2009
29 * @version 1.0
30 */
31 public class ClassificationWizardPage extends
32 AbstractCdmEntityWizardPage<Classification> {
33
34 /**
35 * <p>
36 * Constructor for ClassificationWizardPage.
37 * </p>
38 *
39 * @param formFactory
40 * a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
41 * object.
42 * @param conversation
43 * a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder}
44 * object.
45 * @param entity
46 * a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object.
47 */
48 public ClassificationWizardPage(CdmFormFactory formFactory,
49 ConversationHolder conversation, Classification entity) {
50 super(formFactory, conversation, entity);
51 setTitle("Classification");
52
53 }
54
55 /*
56 * (non-Javadoc)
57 *
58 * @see
59 * eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement
60 * (eu.etaxonomy.taxeditor.forms.ICdmFormElement)
61 */
62 /** {@inheritDoc} */
63 @Override
64 public ClassificationDetailElement createElement(ICdmFormElement rootElement) {
65 ClassificationDetailElement detailElement = (ClassificationDetailElement) formFactory
66 .createCdmDetailElement(DetailType.CLASSIFICATION, rootElement,
67 SWT.NULL);
68 detailElement.setEntity(getEntity());
69 return detailElement;
70 }
71
72 }