merge-update from trunk
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / agent / InstitutionWizardPage.java
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.agent;
12
13 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
14 import eu.etaxonomy.cdm.model.agent.Institution;
15 import eu.etaxonomy.taxeditor.ui.campanula.compatibility.ICdmFormElement;
16 import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
17 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
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 InstitutionWizardPage extends
26 AbstractCdmEntityWizardPage<Institution> {
27
28 /**
29 * @param formFactory
30 * @param conversation
31 * @param entity
32 */
33 public InstitutionWizardPage(CdmFormFactory formFactory,
34 ConversationHolder conversation, Institution entity) {
35 super(formFactory, conversation, entity);
36 }
37
38 /*
39 * (non-Javadoc)
40 *
41 * @see
42 * eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement
43 * (eu.etaxonomy.taxeditor.forms.ICdmFormElement)
44 */
45 @Override
46 public AbstractCdmDetailElement<Institution> createElement(ICdmFormElement rootElement) {
47 InstitutionDetailElement detailElement = formFactory.createInstitutionDetailElement(rootElement);
48 detailElement.setEntity(entity);
49 return detailElement;
50 }
51 }