01: package fr.aliacom.form.swt.ui;
02:
03: import org.eclipse.swt.custom.CLabel;
04:
05: import fr.aliacom.common.ui.ILabel;
06:
07: /**
08: * @author tom
09: *
10: * (C) 2001, 2003 Thomas Cataldo
11: */
12: public final class SWTLabel implements ILabel {
13:
14: private CLabel label;
15: private String property;
16:
17: public SWTLabel(CLabel label) {
18: this .label = label;
19: }
20:
21: /**
22: * @see fr.aliacom.form.common.IFormComponent#reset()
23: */
24: public void reset() {
25: }
26:
27: /**
28: * @see fr.aliacom.form.common.IFormComponent#setValueBean(Object)
29: */
30: public void setValueBean(Object bean) {
31: System.err.println("Label loading not implemented");
32: }
33:
34: /**
35: * @see fr.aliacom.form.common.IFormComponent#getNativeWidget()
36: */
37: public Object getNativeWidget() {
38: return label;
39: }
40:
41: /**
42: * Returns the name of the property displayed by this label.
43: *
44: * @return the name of the property
45: */
46: public String getProperty() {
47: return property;
48: }
49:
50: /**
51: * @param string
52: */
53: public void setProperty(String string) {
54: property = string;
55: }
56:
57: }
|