Project

General

Profile

Download (1.2 KB) Statistics
| Branch: | Tag: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2009 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.supplemental;
11

    
12
import eu.etaxonomy.cdm.model.common.CdmBase;
13
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
14
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
15
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
16

    
17
/**
18
 * @author l.morris
19
 * @date 24 Jan 2012
20
 *
21
 */
22
public class CdmBaseSection extends AbstractFormSection<CdmBase> {
23
	
24
	private CdmBaseElement cdmBaseElement;
25

    
26
	/**
27
	 * @param formFactory
28
	 * @param parentElement
29
	 * @param selectionProvider
30
	 * @param style
31
	 */
32
	public CdmBaseSection(CdmFormFactory formFactory,
33
			ICdmFormElement parentElement,
34
			int style) {
35

    
36
		super(formFactory, parentElement, style);
37
		cdmBaseElement = formFactory.createCdmBaseElement(this, null, style);
38
	}
39
	
40
	/** {@inheritDoc} */
41
	@Override
42
	public void setEntity(CdmBase entity) {
43
		super.setEntity(entity);
44
		cdmBaseElement.setEntity(entity);
45
	}
46

    
47
}
(6-6/19)