1 |
729887cf
|
n.hoffmann
|
/**
|
2 |
|
|
* Copyright (C) 2007 EDIT
|
3 |
139902da
|
Patric Plitzner
|
* European Distributed Institute of Taxonomy
|
4 |
729887cf
|
n.hoffmann
|
* http://www.e-taxonomy.eu
|
5 |
139902da
|
Patric Plitzner
|
*
|
6 |
729887cf
|
n.hoffmann
|
* 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 |
f211dd28
|
n.hoffmann
|
package eu.etaxonomy.taxeditor.ui.section.name;
|
11 |
729887cf
|
n.hoffmann
|
|
12 |
2d9a13f7
|
n.hoffmann
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
13 |
e3a4a3ff
|
Andreas Müller
|
import eu.etaxonomy.cdm.model.name.TaxonName;
|
14 |
78222507
|
n.hoffmann
|
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
|
15 |
|
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
16 |
dacb59c9
|
Patric Plitzner
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
17 |
f211dd28
|
n.hoffmann
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
18 |
729887cf
|
n.hoffmann
|
|
19 |
|
|
/**
|
20 |
3be6ef3e
|
n.hoffmann
|
* <p>NonViralNameWizardPage class.</p>
|
21 |
|
|
*
|
22 |
729887cf
|
n.hoffmann
|
* @author n.hoffmann
|
23 |
|
|
* @created Jun 1, 2010
|
24 |
|
|
*/
|
25 |
e3a4a3ff
|
Andreas Müller
|
public class NonViralNameWizardPage extends AbstractCdmEntityWizardPage<TaxonName> {
|
26 |
729887cf
|
n.hoffmann
|
|
27 |
3fb05254
|
n.hoffmann
|
private NonViralNameDetailElement nameElement;
|
28 |
729887cf
|
n.hoffmann
|
|
29 |
3be6ef3e
|
n.hoffmann
|
/**
|
30 |
|
|
* <p>Constructor for NonViralNameWizardPage.</p>
|
31 |
|
|
*
|
32 |
78222507
|
n.hoffmann
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
33 |
3be6ef3e
|
n.hoffmann
|
* @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 |
2d9a13f7
|
n.hoffmann
|
public NonViralNameWizardPage(CdmFormFactory formFactory, ConversationHolder conversation,
|
37 |
e3a4a3ff
|
Andreas Müller
|
TaxonName entity) {
|
38 |
2d9a13f7
|
n.hoffmann
|
super(formFactory, conversation, entity);
|
39 |
729887cf
|
n.hoffmann
|
setTitle("Name");
|
40 |
|
|
}
|
41 |
139902da
|
Patric Plitzner
|
|
42 |
3be6ef3e
|
n.hoffmann
|
/** {@inheritDoc} */
|
43 |
729887cf
|
n.hoffmann
|
@Override
|
44 |
e3a4a3ff
|
Andreas Müller
|
public AbstractCdmDetailElement<TaxonName> createElement(ICdmFormElement rootElement) {
|
45 |
139902da
|
Patric Plitzner
|
nameElement = formFactory.createNonViralNameDetailElement(rootElement);
|
46 |
729887cf
|
n.hoffmann
|
nameElement.setEntity(entity);
|
47 |
|
|
return nameElement;
|
48 |
|
|
}
|
49 |
139902da
|
Patric Plitzner
|
|
50 |
3be6ef3e
|
n.hoffmann
|
/** {@inheritDoc} */
|
51 |
3fb05254
|
n.hoffmann
|
@Override
|
52 |
|
|
public void dispose() {
|
53 |
|
|
nameElement.removeElements();
|
54 |
|
|
super.dispose();
|
55 |
|
|
}
|
56 |
729887cf
|
n.hoffmann
|
}
|