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