Project

General

Profile

Download (1.31 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

    
10
package eu.etaxonomy.taxeditor.ui.section.occurrence;
11

    
12
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
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
 * @author n.hoffmann
20
 * @created Dec 15, 2010
21
 * @version 1.0
22
 */
23
public class GatheringEventWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
24

    
25
	public GatheringEventWizardPage(CdmFormFactory formFactory, DerivedUnitFacade entity) {
26
		super(formFactory, entity);
27
		setTitle("Gathering Event Details");
28
		setPageComplete(true);
29
	}
30

    
31
	@Override
32
	protected void checkComplete() {
33
		setPageComplete(true);
34
	}
35

    
36
	@Override
37
	public AbstractCdmDetailElement<DerivedUnitFacade> createElement(ICdmFormElement rootElement) {
38
		GatheringEventDetailElement detailElement = formFactory.createGatheringEventDetailElement(rootElement);
39
		detailElement.setEntity(getEntity());
40
		return detailElement;
41
	}
42

    
43
}
(29-29/38)