Revision 0c52f39c
Added by Niels Hoffmann over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/selection/AbstractSelectionElement.java | ||
---|---|---|
30 | 30 |
import eu.etaxonomy.taxeditor.ui.forms.IEnableableFormElement; |
31 | 31 |
import eu.etaxonomy.taxeditor.ui.forms.IEntityElement; |
32 | 32 |
import eu.etaxonomy.taxeditor.ui.forms.ILabeledElement; |
33 |
import eu.etaxonomy.taxeditor.ui.forms.ISelectable; |
|
33 | 34 |
import eu.etaxonomy.taxeditor.ui.forms.ISelectableElement; |
34 | 35 |
import eu.etaxonomy.taxeditor.ui.forms.SelectionArbitrator; |
35 | 36 |
|
... | ... | |
46 | 47 |
public abstract class AbstractSelectionElement<T> extends |
47 | 48 |
AbstractCdmFormElement implements SelectionListener, |
48 | 49 |
IEnableableFormElement, ISelectableElement, IEntityElement<T>, |
49 |
ILabeledElement, IConversationEnabled { |
|
50 |
ILabeledElement, IConversationEnabled, ISelectable {
|
|
50 | 51 |
|
51 | 52 |
/** |
52 | 53 |
* bitmask to set |
... | ... | |
280 | 281 |
/** {@inheritDoc} */ |
281 | 282 |
@Override |
282 | 283 |
public void setSelected(boolean selected) { |
283 |
Color color = getColor(selected); |
|
284 |
getLayoutComposite().setBackground(color); |
|
285 |
selectableComposite.setBackground(color); |
|
286 |
label.setBackground(color); |
|
284 |
setBackground(selected ? SELECTED : getPersistentBackground()); |
|
287 | 285 |
} |
288 | 286 |
|
289 | 287 |
/* |
Also available in: Unified diff
Fixing background color logic as it was kind of broken