automated build configuration is on its way
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / ui / forms / ISelectable.java
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.forms;
12
13 import org.eclipse.swt.SWT;
14 import org.eclipse.swt.graphics.Color;
15 import org.eclipse.swt.widgets.Display;
16
17
18 /**
19 * <p>ISelectable interface.</p>
20 *
21 * @author n.hoffmann
22 * @created Feb 22, 2010
23 * @version 1.0
24 */
25 public interface ISelectable{
26
27 /** Constant <code>SELECTED</code> */
28 public static Color SELECTED = Display.getCurrent().getSystemColor(SWT.COLOR_LIST_SELECTION);
29 /** Constant <code>NOT_SELECTED</code> */
30 public static Color NOT_SELECTED = Display.getCurrent().getSystemColor(SWT.COLOR_WHITE);
31
32 /**
33 * <p>setSelected</p>
34 *
35 * @param selected a boolean.
36 */
37 public void setSelected(boolean selected);
38
39 /**
40 * <p>getColor</p>
41 *
42 * @param selected a boolean.
43 * @return a {@link org.eclipse.swt.graphics.Color} object.
44 */
45 public Color getColor(boolean selected);
46 }