Project

General

Profile

Download (1.4 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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

    
10
package eu.etaxonomy.taxeditor.ui.section.supplemental;
11

    
12
import eu.etaxonomy.cdm.model.common.VersionableEntity;
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
 * <p>VersionSection class.</p>
19
 *
20
 * @author n.hoffmann
21
 * @created Mar 2, 2010
22
 * @version 1.0
23
 */
24
public class VersionSection extends AbstractFormSection<VersionableEntity>{
25

    
26
	private VersionElement versionElement;
27
	
28
	
29
	/**
30
	 * <p>Constructor for VersionSection.</p>
31
	 *
32
	 * @param cdmFormFactory a {@link eu.etaxonomy.taxeditor.ui.element.CdmFormFactory} object.
33
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.element.ICdmFormElement} object.
34
	 * @param style a int.
35
	 */
36
	public VersionSection(CdmFormFactory cdmFormFactory, ICdmFormElement parentElement,
37
			int style) {
38
		super(cdmFormFactory, parentElement, style);
39
		versionElement = cdmFormFactory.createVersionElement(this, null, style);
40
	}
41
	
42
	
43
	/** {@inheritDoc} */
44
	@Override
45
	public void setEntity(VersionableEntity entity) {
46
		super.setEntity(entity);
47
		versionElement.setEntity(entity);
48
	}
49
}
(19-19/19)