Project

General

Profile

Download (1.42 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 15, 2010
22
 * @version 1.0
23
 */
24
public class DerivedUnitBaseWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitFacade> {
25

    
26
	public DerivedUnitBaseWizardPage(CdmFormFactory formFactory,
27
			ConversationHolder conversation, DerivedUnitFacade entity) {
28
		super(formFactory, conversation, entity);
29
		setTitle("Derived Unit Details");
30
		setPageComplete(true);
31
	}
32

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

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

    
45
}
(9-9/36)