Project

General

Profile

Download (1.82 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.classification;
11

    
12
import eu.etaxonomy.cdm.model.taxon.Classification;
13
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
14
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
16

    
17
/**
18
 * <p>
19
 * ClassificationWizardPage class.
20
 * </p>
21
 *
22
 * @author n.hoffmann
23
 * @created 23.06.2009
24
 * @version 1.0
25
 */
26
public class ClassificationWizardPage extends
27
		AbstractCdmEntityWizardPage<Classification> {
28

    
29
	/**
30
	 * <p>
31
	 * Constructor for ClassificationWizardPage.
32
	 * </p>
33
	 *
34
	 * @param formFactory
35
	 *            a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory}
36
	 *            object.
37
	 * @param conversation
38
	 *            a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder}
39
	 *            object.
40
	 * @param entity
41
	 *            a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object.
42
	 */
43
	public ClassificationWizardPage(CdmFormFactory formFactory,
44
			Classification entity) {
45
		super(formFactory, entity);
46
		setTitle("Classification");
47

    
48
	}
49

    
50
	    /*
51
     * (non-Javadoc)
52
     *
53
     * @see
54
     * eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement
55
     * (eu.etaxonomy.taxeditor.forms.ICdmFormElement)
56
     */
57
    /** {@inheritDoc} */
58
    @Override
59
    public ClassificationDetailElement createElement(ICdmFormElement rootElement) {
60
        ClassificationDetailElement detailElement = formFactory.createClassificationDetailElement(rootElement);
61
        detailElement.setEntity(getEntity());
62
        return detailElement;
63
    }
64

    
65
}
(4-4/12)