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