Project

General

Profile

Download (1.24 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.model.occurrence.Collection;
12
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
13
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
14
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
15
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
16

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

    
23
	public CollectionWizardPage(CdmFormFactory formFactory, Collection entity) {
24
		super(formFactory, entity);
25
		setPageComplete(true);
26
	}
27

    
28
	@Override
29
	protected void checkComplete() {
30
		setPageComplete(true);
31
	}
32

    
33
	@Override
34
	public AbstractCdmDetailElement<Collection> createElement(ICdmFormElement rootElement) {
35
		CollectionDetailElement collectionDetailElement = formFactory.createCollectionDetailElement(rootElement);
36
		collectionDetailElement.setEntity(entity);
37
		return collectionDetailElement;
38
	}
39
}
(7-7/38)