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.reference.Reference;
|
13
|
import eu.etaxonomy.cdm.model.taxon.Classification;
|
14
|
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
|
15
|
import eu.etaxonomy.taxeditor.ui.dialog.CloneClassificationDetailElement;
|
16
|
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
|
17
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
18
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
19
|
|
20
|
/**
|
21
|
*
|
22
|
* @author pplitzner
|
23
|
* @date Nov 6, 2016
|
24
|
*
|
25
|
*/
|
26
|
public class CloneClassificationWizardPage extends
|
27
|
AbstractCdmEntityWizardPage<Classification> {
|
28
|
|
29
|
private CloneClassificationDetailElement detailElement;
|
30
|
|
31
|
public CloneClassificationWizardPage(CdmFormFactory formFactory, Classification entity) {
|
32
|
super(formFactory, entity);
|
33
|
setTitle("Clone Classification");
|
34
|
}
|
35
|
|
36
|
/** {@inheritDoc} */
|
37
|
@Override
|
38
|
public CloneClassificationDetailElement createElement(ICdmFormElement rootElement) {
|
39
|
detailElement = formFactory.createCloneClassificationDetailElement(rootElement);
|
40
|
detailElement.setEntity(getEntity());
|
41
|
return detailElement;
|
42
|
}
|
43
|
|
44
|
public String getClassificationName(){
|
45
|
return detailElement.getClassificationName();
|
46
|
}
|
47
|
|
48
|
public TaxonRelationshipType getRelationType(){
|
49
|
return detailElement.getRelationType();
|
50
|
}
|
51
|
|
52
|
public Reference getReference(){
|
53
|
return detailElement.getReference();
|
54
|
}
|
55
|
|
56
|
}
|