01: package fr.aliacom.form.swt.ui;
02:
03: import org.eclipse.swt.SWT;
04: import org.eclipse.swt.custom.SashForm;
05: import org.eclipse.swt.widgets.Composite;
06:
07: import fr.aliacom.common.ui.ISplitter;
08:
09: /**
10: * @author tom
11: *
12: * (C) 2001, 2002 Thomas Cataldo
13: */
14: public final class SWTSplitter implements ISplitter {
15:
16: private SashForm sash;
17:
18: public SWTSplitter(Composite parent, String orientation) {
19: sash = new SashForm(parent,
20: (orientation.equals("vertical") ? SWT.VERTICAL
21: : SWT.HORIZONTAL));
22: }
23:
24: /**
25: * @see fr.aliacom.form.common.IFormComponent#reset()
26: */
27: public void reset() {
28: }
29:
30: /**
31: * @see fr.aliacom.form.common.IFormComponent#setValueBean(java.lang.Object)
32: */
33: public void setValueBean(Object bean) {
34: }
35:
36: /**
37: * @see fr.aliacom.form.common.IFormComponent#getNativeWidget()
38: */
39: public Object getNativeWidget() {
40: return sash;
41: }
42:
43: }
|