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.supplemental;
|
12
|
|
13
|
import eu.etaxonomy.cdm.model.common.VersionableEntity;
|
14
|
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
|
15
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
16
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
17
|
|
18
|
/**
|
19
|
* <p>VersionSection class.</p>
|
20
|
*
|
21
|
* @author n.hoffmann
|
22
|
* @created Mar 2, 2010
|
23
|
* @version 1.0
|
24
|
*/
|
25
|
public class VersionSection extends AbstractFormSection<VersionableEntity>{
|
26
|
|
27
|
private VersionElement versionElement;
|
28
|
|
29
|
|
30
|
/**
|
31
|
* <p>Constructor for VersionSection.</p>
|
32
|
*
|
33
|
* @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
|
34
|
* @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
|
35
|
* @param style a int.
|
36
|
*/
|
37
|
public VersionSection(CdmFormFactory cdmFormFactory, ICdmFormElement parentElement,
|
38
|
int style) {
|
39
|
super(cdmFormFactory, parentElement, style);
|
40
|
versionElement = cdmFormFactory.createVersionElement(this, null, style);
|
41
|
}
|
42
|
|
43
|
|
44
|
/** {@inheritDoc} */
|
45
|
@Override
|
46
|
public void setEntity(VersionableEntity entity) {
|
47
|
super.setEntity(entity);
|
48
|
versionElement.setEntity(entity);
|
49
|
}
|
50
|
}
|