3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.newWizard
;
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
.AmplificationGeneralDetailElement
;
25 public class AmplificationGeneralWizardPage
extends AbstractCdmEntityWizardPage
<Amplification
> {
32 public AmplificationGeneralWizardPage(CdmFormFactory formFactory
,
33 ConversationHolder conversation
, Amplification entity
) {
34 super(formFactory
, conversation
, entity
);
35 setTitle("General Amplification Data");
39 * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
42 protected void checkComplete() {
43 //TODO: check for institution, staff and date
44 //one of them has to be set otherwise setPageComplete(false);
45 setPageComplete(true);
49 * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
52 public AbstractCdmDetailElement
<Amplification
> createElement(ICdmFormElement rootElement
) {
53 AmplificationGeneralDetailElement detailElement
= formFactory
.createAmplificationGeneralDetailElement(rootElement
);
54 detailElement
.setEntity(getEntity());