Project

General

Profile

Download (1.53 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.agent;
11

    
12
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
13
import eu.etaxonomy.cdm.model.agent.Institution;
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 InstitutionWizardPage extends
25
		AbstractCdmEntityWizardPage<Institution> {
26

    
27
	/**
28
	 * @param formFactory
29
	 * @param conversation
30
	 * @param entity
31
	 */
32
	public InstitutionWizardPage(CdmFormFactory formFactory,
33
			ConversationHolder conversation, Institution entity) {
34
		super(formFactory, conversation, entity);
35
	}
36

    
37
	    /*
38
     * (non-Javadoc)
39
     *
40
     * @see
41
     * eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement
42
     * (eu.etaxonomy.taxeditor.forms.ICdmFormElement)
43
     */
44
    @Override
45
    public AbstractCdmDetailElement<Institution> createElement(ICdmFormElement rootElement) {
46
        InstitutionDetailElement detailElement = formFactory.createInstitutionDetailElement(rootElement);
47
        detailElement.setEntity(entity);
48
        return detailElement;
49
    }
50
}
(3-3/12)