Project

General

Profile

Download (1.42 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2007 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
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.
9
*/
10

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

    
13
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
14
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
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;
19

    
20
/**
21
 * @author n.hoffmann
22
 * @created Dec 15, 2010
23
 * @version 1.0
24
 */
25
public class GatheringEventWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
26

    
27
	public GatheringEventWizardPage(CdmFormFactory formFactory,
28
			ConversationHolder conversation, DerivedUnitFacade entity) {
29
		super(formFactory, conversation, entity);
30
		setTitle("Gathering Event Details");
31
		setPageComplete(true);
32
	}
33

    
34
	@Override
35
	protected void checkComplete() {
36
		setPageComplete(true);
37
	}
38

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

    
46
}
(26-26/36)