1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
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.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.ui.section.occurrence;
|
11
|
|
12
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
13
|
import eu.etaxonomy.cdm.model.occurrence.Collection;
|
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
|
|
19
|
/**
|
20
|
* <p>CollectionWizardPage class.</p>
|
21
|
*
|
22
|
* @author n.hoffmann
|
23
|
* @created Oct 13, 2010
|
24
|
* @version 1.0
|
25
|
*/
|
26
|
public class CollectionWizardPage extends AbstractCdmEntityWizardPage<Collection> {
|
27
|
|
28
|
/**
|
29
|
* <p>Constructor for CollectionWizardPage.</p>
|
30
|
*
|
31
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
32
|
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
33
|
* @param entity a {@link eu.etaxonomy.cdm.model.occurrence.Collection} object.
|
34
|
*/
|
35
|
public CollectionWizardPage(CdmFormFactory formFactory,
|
36
|
ConversationHolder conversation, Collection entity) {
|
37
|
super(formFactory, conversation, entity);
|
38
|
setPageComplete(true);
|
39
|
}
|
40
|
|
41
|
/* (non-Javadoc)
|
42
|
* @see eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage#checkComplete()
|
43
|
*/
|
44
|
@Override
|
45
|
protected void checkComplete() {
|
46
|
setPageComplete(true);
|
47
|
}
|
48
|
|
49
|
/* (non-Javadoc)
|
50
|
* @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
|
51
|
*/
|
52
|
/** {@inheritDoc} */
|
53
|
@Override
|
54
|
public AbstractCdmDetailElement<Collection> createElement(ICdmFormElement rootElement) {
|
55
|
CollectionDetailElement collectionDetailElement = formFactory.createCollectionDetailElement(rootElement);
|
56
|
collectionDetailElement.setEntity(entity);
|
57
|
return collectionDetailElement;
|
58
|
}
|
59
|
|
60
|
}
|