536f82b3e930445e0726f89912cf8756a39bd7de
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / occurrence / GatheringEventDetailsWizardPage.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 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
11 package eu.etaxonomy.taxeditor.ui.section.occurrence;
12
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;
20
21 /**
22 * @author n.hoffmann
23 * @created Dec 15, 2010
24 * @version 1.0
25 */
26 public class GatheringEventDetailsWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
27
28 /**
29 * @param formFactory
30 * @param conversation
31 * @param entity
32 */
33 public GatheringEventDetailsWizardPage(CdmFormFactory formFactory,
34 ConversationHolder conversation, DerivedUnitFacade entity) {
35 super(formFactory, conversation, entity);
36 setTitle("Gathering Event Details");
37 setPageComplete(true);
38 }
39
40 /* (non-Javadoc)
41 * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
42 */
43 @Override
44 protected void checkComplete() {
45 setPageComplete(true);
46 }
47
48 /* (non-Javadoc)
49 * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
50 */
51 @Override
52 public AbstractCdmDetailElement<DerivedUnitFacade> createElement(ICdmFormElement rootElement) {
53 GatheringEventDetailsElementController detailElement = formFactory.createGatheringEventDetailsElementController(rootElement);
54 detailElement.setEntity(getEntity());
55 return detailElement;
56 }
57
58 }