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