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
.model
.occurrence
.Collection
;
15 import eu
.etaxonomy
.taxeditor
.ui
.element
.AbstractCdmEntityWizardPage
;
16 import eu
.etaxonomy
.taxeditor
.ui
.element
.CdmFormFactory
;
17 import eu
.etaxonomy
.taxeditor
.ui
.element
.ICdmFormElement
;
18 import eu
.etaxonomy
.taxeditor
.ui
.section
.AbstractCdmDetailElement
;
21 * <p>CollectionWizardPage class.</p>
24 * @created Oct 13, 2010
27 public class CollectionWizardPage
extends AbstractCdmEntityWizardPage
<Collection
> {
30 * <p>Constructor for CollectionWizardPage.</p>
32 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
33 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
34 * @param entity a {@link eu.etaxonomy.cdm.model.occurrence.Collection} object.
36 public CollectionWizardPage(CdmFormFactory formFactory
,
37 ConversationHolder conversation
, Collection entity
) {
38 super(formFactory
, conversation
, entity
);
39 setPageComplete(true);
43 * @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
46 protected void checkComplete() {
47 setPageComplete(true);
51 * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
55 public AbstractCdmDetailElement
<Collection
> createElement(ICdmFormElement rootElement
) {
56 CollectionDetailElement collectionDetailElement
= formFactory
.createCollectionDetailElement(rootElement
);
57 collectionDetailElement
.setEntity(entity
);
58 return collectionDetailElement
;