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.name;
|
11
|
|
12
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
13
|
import eu.etaxonomy.cdm.model.name.TaxonName;
|
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
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
18
|
|
19
|
/**
|
20
|
* <p>NonViralNameWizardPage class.</p>
|
21
|
*
|
22
|
* @author n.hoffmann
|
23
|
* @created Jun 1, 2010
|
24
|
*/
|
25
|
public class NonViralNameWizardPage extends AbstractCdmEntityWizardPage<TaxonName> {
|
26
|
|
27
|
private NonViralNameDetailElement nameElement;
|
28
|
|
29
|
/**
|
30
|
* <p>Constructor for NonViralNameWizardPage.</p>
|
31
|
*
|
32
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
33
|
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
34
|
* @param entity a {@link eu.etaxonomy.cdm.model.name.NonViralName} object.
|
35
|
*/
|
36
|
public NonViralNameWizardPage(CdmFormFactory formFactory, ConversationHolder conversation,
|
37
|
TaxonName entity) {
|
38
|
super(formFactory, conversation, entity);
|
39
|
setTitle("Name");
|
40
|
}
|
41
|
|
42
|
/** {@inheritDoc} */
|
43
|
@Override
|
44
|
public AbstractCdmDetailElement<TaxonName> createElement(ICdmFormElement rootElement) {
|
45
|
nameElement = formFactory.createNonViralNameDetailElement(rootElement);
|
46
|
nameElement.setEntity(entity);
|
47
|
return nameElement;
|
48
|
}
|
49
|
|
50
|
/** {@inheritDoc} */
|
51
|
@Override
|
52
|
public void dispose() {
|
53
|
nameElement.removeElements();
|
54
|
super.dispose();
|
55
|
}
|
56
|
}
|