Project

General

Profile

Download (1.46 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.conversation.ConversationHolder;
13
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade;
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
 * @author n.hoffmann
21
 * @created Dec 17, 2010
22
 * @version 1.0
23
 */
24
public class DerivedUnitGeneralWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
25

    
26
	public DerivedUnitGeneralWizardPage(CdmFormFactory formFactory,
27
			ConversationHolder conversation, DerivedUnitFacade entity) {
28
		super(formFactory, conversation, entity);
29
		setTitle("General Specimen Data");
30
	}
31

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

    
37
	@Override
38
	public AbstractCdmDetailElement<DerivedUnitFacade> createElement(ICdmFormElement rootElement) {
39
		DerivedUnitGeneralDetailElement detailElement = formFactory.createDerivedUnitGeneralDetailElement(rootElement);
40
		detailElement.setShowSpecimenType(false);
41
		detailElement.setEntity(getEntity());
42
		checkComplete();
43
		return detailElement;
44
	}
45

    
46
}
(12-12/36)