Project

General

Profile

Download (1.93 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
 * Copyright (C) 2014 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
package eu.etaxonomy.taxeditor.newWizard;
11

    
12
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
13
import eu.etaxonomy.cdm.model.molecular.Amplification;
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
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.AmplificationCloningDetailElement;
19

    
20
/**
21
 * @author pplitzner
22
 * @date 11.03.2014
23
 *
24
 */
25
public class AmplificationCloningWizardPage extends AbstractCdmEntityWizardPage<Amplification> {
26

    
27
    /**
28
     * @param formFactory
29
     * @param conversation
30
     * @param entity
31
     */
32
    public AmplificationCloningWizardPage(CdmFormFactory formFactory,
33
            ConversationHolder conversation, Amplification entity) {
34
        super(formFactory, conversation, entity);
35
        setTitle("Amplification Cloning Data");
36
    }
37

    
38
    /* (non-Javadoc)
39
     * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
40
     */
41
    @Override
42
    protected void checkComplete() {
43
        setPageComplete(true);
44
    }
45

    
46
    /* (non-Javadoc)
47
     * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
48
     */
49
    @Override
50
    public AbstractCdmDetailElement<Amplification> createElement(ICdmFormElement rootElement) {
51
        AmplificationCloningDetailElement detailElement = formFactory.createAmplificationCloningDetailElement(rootElement);
52
        detailElement.setEntity(getEntity());
53
        checkComplete();
54
        return detailElement;
55
    }
56

    
57
}
(2-2/23)