Project

General

Profile

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

    
11
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
12
import eu.etaxonomy.cdm.model.molecular.Primer;
13
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
14
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
16
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
17
import eu.etaxonomy.taxeditor.ui.section.occurrence.dna.PrimerGeneralDetailElement;
18

    
19
/**
20
 * @author pplitzner
21
 * @date 11.03.2014
22
 *
23
 */
24
public class PrimerWizardPage extends AbstractCdmEntityWizardPage<Primer> {
25

    
26
    /**
27
     * @param formFactory
28
     * @param conversation
29
     * @param entity
30
     */
31
    public PrimerWizardPage(CdmFormFactory formFactory,
32
            ConversationHolder conversation, Primer entity) {
33
        super(formFactory, conversation, entity);
34
        setTitle("General Primer Data");
35
    }
36

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

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

    
56
}
(23-23/23)