Project

General

Profile

« Previous | Next » 

Revision 0c52f39c

Added by Niels Hoffmann over 12 years ago

Fixing background color logic as it was kind of broken

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/EmptyElement.java
10 10

  
11 11
package eu.etaxonomy.taxeditor.ui.section;
12 12

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

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

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

  
33
	private static final Logger logger = Logger.getLogger(EmptyElement.class);
34
	private VersionableEntity entity;
35
	
36 30
	/**
37 31
	 * <p>Constructor for EmptyElement.</p>
38 32
	 *
......
45 39
		super(toolkit, parentElement);
46 40
		addControl(new Label(getLayoutComposite(), SWT.HORIZONTAL));
47 41
	}
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 42
}

Also available in: Unified diff