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/forms/CheckboxElement.java
26 26
 * @created Nov 5, 2009
27 27
 * @version 1.0
28 28
 */
29
public class CheckboxElement extends AbstractCdmFormElement implements SelectionListener, IEnableableFormElement {
29
public class CheckboxElement extends AbstractCdmFormElement implements SelectionListener, IEnableableFormElement, ISelectable {
30 30
	
31 31
	private Button checkbox;
32 32

  
......
92 92

  
93 93
	/** {@inheritDoc} */
94 94
	public void setSelected(boolean selected) {
95
		checkbox.setBackground(getColor(selected));
95
		setBackground(selected ? SELECTED : getPersistentBackground());
96 96
	}
97 97

  
98 98
	/** {@inheritDoc} */
......
105 105
		String colorId = irrelevant ? Resources.COLOR_COMPOSITE_IRRELEVANT : Resources.COLOR_COMPOSITE_BACKGROUND;
106 106
		
107 107
		Color color = getColor(colorId);
108
		checkbox.setBackground(color);
108
		setBackground(color);
109 109
	}
110 110
	
111 111
	/* (non-Javadoc)

Also available in: Unified diff