01: package fr.aliacom.form.swt.maker;
02:
03: import org.eclipse.swt.widgets.Table;
04: import org.w3c.dom.Element;
05:
06: import fr.aliacom.common.ui.table.ColumnView;
07: import fr.aliacom.form.common.FormLoader;
08: import fr.aliacom.form.common.IFormComponent;
09: import fr.aliacom.form.swt.BuilderFactory;
10: import fr.aliacom.form.swt.SWTBuilder;
11: import fr.aliacom.form.swt.ui.SWTCheckBoxEditor;
12:
13: /**
14: * @author tom
15: *
16: * (C) 2001, 2003 Thomas Cataldo
17: */
18: public final class CheckboxEditorBuilder extends SWTBuilder {
19:
20: /**
21: * @see fr.aliacom.form.swt.SWTBuilder#build(org.w3c.dom.Element, fr.aliacom.form.common.IFormComponent, fr.aliacom.form.common.FormLoader, fr.aliacom.form.swt.BuilderFactory)
22: */
23: public IFormComponent build(Element elem, IFormComponent parent,
24: FormLoader loader, BuilderFactory factory) {
25: ColumnView cv = (ColumnView) parent;
26: SWTCheckBoxEditor editor = new SWTCheckBoxEditor((Table) cv
27: .getTable().getNativeWidget(), cv.getProperty());
28: cv.setEditor(editor);
29: return null;
30: }
31:
32: }
|