Project

General

Profile

Download (1.36 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
package eu.etaxonomy.taxeditor.ui.section.grantedAuthority;
11

    
12
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
13
import eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl;
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 a.kohlbecker
21
 * @created Sept 13 2012
22
 */
23
public class GrantedAuthorityDetailWizardPage extends AbstractCdmEntityWizardPage<GrantedAuthorityImpl> {
24

    
25
	public GrantedAuthorityDetailWizardPage(CdmFormFactory formFactory,
26
			ConversationHolder conversation, GrantedAuthorityImpl entity) {
27
		super(formFactory, conversation, entity);
28
		setTitle("GrantedAuthority");
29
	}
30

    
31
	@Override
32
	public AbstractCdmDetailElement<GrantedAuthorityImpl> createElement(
33
			ICdmFormElement rootElement) {
34
		GrantedAuthorityDetailElement authorityElement = formFactory.createGrantedAuthorityDetailElement(rootElement);
35
		authorityElement.setEntity(getEntity());
36
		return authorityElement;
37
	}
38

    
39
}
(4-4/5)