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.Primer;
|
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.PrimerGeneralDetailElement;
|
19
|
|
20
|
/**
|
21
|
* @author pplitzner
|
22
|
* @date 11.03.2014
|
23
|
*
|
24
|
*/
|
25
|
public class PrimerWizardPage extends AbstractCdmEntityWizardPage<Primer> {
|
26
|
|
27
|
/**
|
28
|
* @param formFactory
|
29
|
* @param conversation
|
30
|
* @param entity
|
31
|
*/
|
32
|
public PrimerWizardPage(CdmFormFactory formFactory,
|
33
|
ConversationHolder conversation, Primer entity) {
|
34
|
super(formFactory, conversation, entity);
|
35
|
setTitle("General Primer 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<Primer> createElement(ICdmFormElement rootElement) {
|
51
|
PrimerGeneralDetailElement detailElement = formFactory.createPrimerGeneralDetailElement(rootElement);
|
52
|
detailElement.setEntity(getEntity());
|
53
|
checkComplete();
|
54
|
return detailElement;
|
55
|
}
|
56
|
|
57
|
}
|