01: package fr.aliacom.form.swt.ui;
02:
03: import org.eclipse.swt.graphics.Color;
04: import org.eclipse.swt.graphics.Device;
05:
06: import fr.aliacom.common.ui.IColor;
07:
08: /**
09: * @author tom
10: *
11: * (C) 2001, 2002 Thomas Cataldo
12: */
13: public final class SWTColor implements IColor {
14:
15: private Color color;
16:
17: /**
18: * Constructor SWTColor.
19: * @param device
20: * @param r
21: * @param g
22: * @param b
23: */
24: public SWTColor(Device device, int r, int g, int b) {
25: color = new Color(device, r, g, b);
26: }
27:
28: /**
29: * @see fr.aliacom.form.common.IFormComponent#reset()
30: */
31: public void reset() {
32: }
33:
34: /**
35: * @see fr.aliacom.form.common.IFormComponent#setValueBean(java.lang.Object)
36: */
37: public void setValueBean(Object bean) {
38: }
39:
40: /**
41: * @see fr.aliacom.form.common.IFormComponent#getNativeWidget()
42: */
43: public Object getNativeWidget() {
44: return color;
45: }
46:
47: }
|