1 /*
2 * $Id: IForegroundBackgroundColorCapability.java,v 1.18 2011/06/16 09:29:40 jbmeslin Exp $
3 *
4 */
5 package org.rcfaces.core.component.capability;
6
7 /**
8 * Foreground et background colors.
9 *
10 * @author Olivier Oeuillot (latest modification by $Author: jbmeslin $)
11 * @version $Revision: 1.18 $ $Date: 2011/06/16 09:29:40 $
12 */
13 public interface IForegroundBackgroundColorCapability {
14
15 /**
16 * Returns the receiver's background color.
17 *
18 * @return the background color
19 */
20 String getBackgroundColor();
21
22 /**
23 * Sets the receiver's background color to the color specified by the
24 * argument, or to the default system color for the control if the argument
25 * is null.
26 *
27 * @param color
28 * background color
29 */
30 void setBackgroundColor(String color);
31
32 /**
33 * Returns the foreground color that the receiver will use to draw.
34 *
35 * @return the receiver's foreground color
36 */
37 String getForegroundColor();
38
39 /**
40 * Sets the receiver's foreground color to the color specified by the
41 * argument, or to the default system color for the control if the argument
42 * is null.
43 *
44 * @param color
45 * foreground color
46 */
47 void setForegroundColor(String color);
48 }