Project

General

Profile

Download (2.17 KB) Statistics
| Branch: | Tag: | Revision:
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;
12

    
13
import org.apache.log4j.Logger;
14
import org.eclipse.swt.SWT;
15
import org.eclipse.swt.graphics.Color;
16
import org.eclipse.swt.widgets.Label;
17

    
18
import eu.etaxonomy.cdm.model.common.VersionableEntity;
19
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmFormElement;
20
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
21
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
22
import eu.etaxonomy.taxeditor.ui.forms.IEntityElement;
23

    
24
/**
25
 * <p>EmptyElement class.</p>
26
 *
27
 * @author n.hoffmann
28
 * @created Nov 5, 2009
29
 * @version 1.0
30
 */
31
public class EmptyElement extends AbstractCdmFormElement implements IEntityElement {
32

    
33
	private static final Logger logger = Logger.getLogger(EmptyElement.class);
34
	private VersionableEntity entity;
35
	
36
	/**
37
	 * <p>Constructor for EmptyElement.</p>
38
	 *
39
	 * @param style a int.
40
	 * @param toolkit a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory} object.
41
	 * @param parentElement a {@link eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement} object.
42
	 * @param entity a {@link eu.etaxonomy.cdm.model.common.VersionableEntity} object.
43
	 */
44
	public EmptyElement(CdmFormFactory toolkit, ICdmFormElement parentElement, VersionableEntity entity, int style) {
45
		super(toolkit, parentElement);
46
		addControl(new Label(getLayoutComposite(), SWT.HORIZONTAL));
47
	}
48
	
49
	/**
50
	 * <p>Setter for the field <code>entity</code>.</p>
51
	 *
52
	 * @param entity a {@link eu.etaxonomy.cdm.model.common.VersionableEntity} object.
53
	 */
54
	public void setEntity(VersionableEntity entity){
55

    
56
		this.entity = entity;		
57
	}
58

    
59
	/**
60
	 * <p>Getter for the field <code>entity</code>.</p>
61
	 *
62
	 * @return a {@link eu.etaxonomy.cdm.model.common.VersionableEntity} object.
63
	 */
64
	public VersionableEntity getEntity() {
65
		return entity;
66
	}
67

    
68
	/** {@inheritDoc} */
69
	public void setSelected(boolean selected) {
70
		// will not likely be selected
71
	}
72
	
73
	/** {@inheritDoc} */
74
	@Override
75
	public void setBackground(Color color) {
76
		
77
	}
78
}
(6-6/7)