Project

General

Profile

Download (1.71 KB) Statistics
| Branch: | Tag: | Revision:
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
package eu.etaxonomy.taxeditor.ui.section.occurrence;
10

    
11
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
12
import eu.etaxonomy.cdm.model.occurrence.Collection;
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

    
18
/**
19
 * <p>CollectionWizardPage class.</p>
20
 *
21
 * @author n.hoffmann
22
 * @created Oct 13, 2010
23
 */
24
public class CollectionWizardPage extends AbstractCdmEntityWizardPage<Collection> {
25

    
26
	/**
27
	 * <p>Constructor for CollectionWizardPage.</p>
28
	 *
29
	 * @param formFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
30
	 * @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
31
	 * @param entity a {@link eu.etaxonomy.cdm.model.occurrence.Collection} object.
32
	 */
33
	public CollectionWizardPage(CdmFormFactory formFactory,
34
			ConversationHolder conversation, Collection entity) {
35
		super(formFactory, conversation, entity);
36
		setPageComplete(true);
37
	}
38

    
39
	@Override
40
	protected void checkComplete() {
41
		setPageComplete(true);
42
	}
43

    
44
	@Override
45
	public AbstractCdmDetailElement<Collection> createElement(ICdmFormElement rootElement) {
46
		CollectionDetailElement collectionDetailElement = formFactory.createCollectionDetailElement(rootElement);
47
		collectionDetailElement.setEntity(entity);
48
		return collectionDetailElement;
49
	}
50
}
(7-7/38)