01: package fr.aliacom.form.swt.maker;
02:
03: import org.w3c.dom.Element;
04:
05: import fr.aliacom.form.common.FormLoader;
06: import fr.aliacom.form.common.IFormComponent;
07: import fr.aliacom.form.swt.BuilderFactory;
08: import fr.aliacom.form.swt.SWTBuilder;
09: import fr.aliacom.form.swt.ui.SWTCheckBox;
10:
11: /**
12: * @author tom
13: *
14: * (C) 2001, 2003 Thomas Cataldo
15: */
16: public final class CheckboxBuilder extends SWTBuilder {
17:
18: /**
19: * @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)
20: */
21: public IFormComponent build(Element elem, IFormComponent parent,
22: FormLoader loader, BuilderFactory factory) {
23: SWTCheckBox check = new SWTCheckBox(parent, elem
24: .getAttribute("property"), getNodeText(elem));
25: return check;
26: }
27:
28: }
|