47d911def13d98047f3a14b1ee733ead823e036a
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / ui / section / grantedAuthority / GrantedAuthorityDetailWizardPage.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 package eu.etaxonomy.taxeditor.ui.section.grantedAuthority;
11
12 import org.eclipse.swt.SWT;
13
14 import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
15 import eu.etaxonomy.cdm.model.common.GrantedAuthorityImpl;
16 import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
17 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
18 import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
19 import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType;
20 import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
21
22 /**
23 * @author a.kohlbecker
24 * @created Sept 13 2012
25 */
26 public class GrantedAuthorityDetailWizardPage extends AbstractCdmEntityWizardPage<GrantedAuthorityImpl> {
27
28 public GrantedAuthorityDetailWizardPage(CdmFormFactory formFactory,
29 ConversationHolder conversation, GrantedAuthorityImpl entity) {
30 super(formFactory, conversation, entity);
31 setTitle("GrantedAuthority");
32 }
33
34 @Override
35 public AbstractCdmDetailElement<GrantedAuthorityImpl> createElement(
36 ICdmFormElement rootElement) {
37 GrantedAuthorityDetailElement authorityElement = (GrantedAuthorityDetailElement) formFactory.createCdmDetailElement(DetailType.GRANTEDAUTHORITY, rootElement, SWT.NULL);
38 authorityElement.setEntity(getEntity());
39 return authorityElement;
40 }
41
42 }