3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
;
13 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
14 import eu
.etaxonomy
.cdm
.api
.facade
.DerivedUnitFacade
;
15 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.compatibility
.ICdmFormElement
;
16 import eu
.etaxonomy
.taxeditor
.ui
.campanula
.detailViews
.fieldObservation
.GatheringEventDetailsElementController
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractCdmEntityWizardPage
;
18 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
19 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
23 * @created Dec 15, 2010
26 public class GatheringEventDetailsWizardPage
extends AbstractCdmEntityWizardPage
<DerivedUnitFacade
> {
33 public GatheringEventDetailsWizardPage(CdmFormFactory formFactory
,
34 ConversationHolder conversation
, DerivedUnitFacade entity
) {
35 super(formFactory
, conversation
, entity
);
36 setTitle("Gathering Event Details");
37 setPageComplete(true);
41 * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
44 protected void checkComplete() {
45 setPageComplete(true);
49 * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
52 public AbstractCdmDetailElement
<DerivedUnitFacade
> createElement(ICdmFormElement rootElement
) {
53 GatheringEventDetailsElementController detailElement
= formFactory
.createGatheringEventDetailsElementController(rootElement
);
54 detailElement
.setEntity(getEntity());