Project

General

Profile

Download (1.59 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.agent;
12

    
13
import org.eclipse.swt.SWT;
14

    
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16
import eu.etaxonomy.cdm.model.agent.Institution;
17
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage;
18
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
19
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
20
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType;
21
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
22

    
23
/**
24
 * @author n.hoffmann
25
 * @created Dec 15, 2010
26
 * @version 1.0
27
 */
28
public class InstitutionWizardPage extends AbstractCdmEntityWizardPage<Institution> {
29

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

    
40
	/* (non-Javadoc)
41
	 * @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
42
	 */
43
	@Override
44
	public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
45
		InstitutionDetailElement detailElement = (InstitutionDetailElement) formFactory.createCdmDetailElement(DetailType.INSTITUTION, rootElement, SWT.NULL);
46
		detailElement.setEntity(entity);
47
		return detailElement;
48
	}
49

    
50
}
(3-3/12)