01: package fr.aliacom.form.swt.ui;
02:
03: import org.eclipse.swt.SWT;
04: import org.eclipse.swt.widgets.Menu;
05: import org.eclipse.swt.widgets.MenuItem;
06:
07: import fr.aliacom.common.ui.ISeparator;
08:
09: /**
10: * @author tom
11: *
12: * (C) 2001, 2002 Thomas Cataldo
13: */
14: public final class SWTMenuSeparator implements ISeparator {
15:
16: private MenuItem sep;
17:
18: public SWTMenuSeparator(Menu m) {
19: sep = new MenuItem(m, SWT.SEPARATOR);
20: }
21:
22: /**
23: * @see fr.aliacom.form.common.IFormComponent#reset()
24: */
25: public void reset() {
26: }
27:
28: /**
29: * @see fr.aliacom.form.common.IFormComponent#setValueBean(java.lang.Object)
30: */
31: public void setValueBean(Object bean) {
32: }
33:
34: /**
35: * @see fr.aliacom.form.common.IFormComponent#getNativeWidget()
36: */
37: public Object getNativeWidget() {
38: return sep;
39: }
40:
41: }
|