Project

General

Profile

Download (1.47 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 17, 2010
23
 * @version 1.0
24
 */
25
public class DerivedUnitGeneralWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
26

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

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

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

    
47
}
(12-12/36)