Project

General

Profile

Download (1.81 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2007 EDIT
4
 * European Distributed Institute of Taxonomy
5
 * http://www.e-taxonomy.eu
6
 *
7
 * The contents of this file are subject to the Mozilla Public License Version 1.1
8
 * See LICENSE.TXT at the top of this package for the full license terms.
9
 */
10

    
11
package eu.etaxonomy.taxeditor.ui.section.classification;
12

    
13
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
14
import eu.etaxonomy.cdm.model.reference.Reference;
15
import eu.etaxonomy.cdm.model.taxon.Classification;
16
import eu.etaxonomy.cdm.model.taxon.TaxonRelationshipType;
17
import eu.etaxonomy.taxeditor.ui.dialog.CloneClassificationDetailElement;
18
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
19
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
20
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
21

    
22
/**
23
 *
24
 * @author pplitzner
25
 * @date Nov 6, 2016
26
 *
27
 */
28
public class CloneClassificationWizardPage extends
29
		AbstractCdmEntityWizardPage<Classification> {
30

    
31
	private CloneClassificationDetailElement detailElement;
32

    
33
    public CloneClassificationWizardPage(CdmFormFactory formFactory,
34
			ConversationHolder conversation, Classification entity) {
35
		super(formFactory, conversation, entity);
36
		setTitle("Clone Classification");
37
	}
38

    
39
    /** {@inheritDoc} */
40
    @Override
41
    public CloneClassificationDetailElement createElement(ICdmFormElement rootElement) {
42
        detailElement = formFactory.createCloneClassificationDetailElement(rootElement);
43
        detailElement.setEntity(getEntity());
44
        return detailElement;
45
    }
46

    
47
    public String getClassificationName(){
48
        return detailElement.getClassificationName();
49
    }
50

    
51
    public TaxonRelationshipType getRelationType(){
52
        return detailElement.getRelationType();
53
    }
54

    
55
    public Reference getReference(){
56
        return detailElement.getReference();
57
    }
58

    
59
}
(6-6/12)