1
|
/**
|
2
|
* Copyright (C) 2009 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.ui.section.supplemental;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
12
|
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
|
13
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
14
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
15
|
|
16
|
/**
|
17
|
* @author l.morris
|
18
|
* @date 24 Jan 2012
|
19
|
*
|
20
|
*/
|
21
|
public class CdmBaseSection extends AbstractFormSection<CdmBase> {
|
22
|
|
23
|
private CdmBaseElement cdmBaseElement;
|
24
|
|
25
|
/**
|
26
|
* @param formFactory
|
27
|
* @param parentElement
|
28
|
* @param selectionProvider
|
29
|
* @param style
|
30
|
*/
|
31
|
public CdmBaseSection(CdmFormFactory formFactory,
|
32
|
ICdmFormElement parentElement,
|
33
|
int style) {
|
34
|
|
35
|
super(formFactory, parentElement, style);
|
36
|
cdmBaseElement = formFactory.createCdmBaseElement(this, null, style);
|
37
|
}
|
38
|
|
39
|
/** {@inheritDoc} */
|
40
|
@Override
|
41
|
public void setEntity(CdmBase entity) {
|
42
|
super.setEntity(entity);
|
43
|
cdmBaseElement.setEntity(entity);
|
44
|
}
|
45
|
|
46
|
}
|