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