01: package fr.aliacom.form.swt.maker;
02:
03: import org.eclipse.swt.SWT;
04: import org.eclipse.swt.custom.CLabel;
05: import org.eclipse.swt.widgets.Composite;
06: import org.w3c.dom.Element;
07:
08: import fr.aliacom.form.common.FormLoader;
09: import fr.aliacom.form.common.IFormComponent;
10: import fr.aliacom.form.swt.BuilderFactory;
11: import fr.aliacom.form.swt.SWTBuilder;
12: import fr.aliacom.form.swt.ui.SWTLabel;
13:
14: /**
15: * @author tom
16: *
17: * (C) 2001, 2003 Thomas Cataldo
18: */
19: public final class NotImplementedBuilder extends SWTBuilder {
20:
21: public NotImplementedBuilder() {
22: }
23:
24: /**
25: * @see fr.aliacom.form.swt.SWTBuilder#build(Element, IFormComponent, FormLoader, BuilderFactory)
26: */
27: public IFormComponent build(Element elem, IFormComponent parent,
28: FormLoader loader, BuilderFactory factory) {
29: CLabel label = new CLabel((Composite) parent.getNativeWidget(),
30: SWT.NONE);
31: label.setText("Not builder for " + elem.getNodeName());
32: return new SWTLabel(label);
33: }
34:
35: }
|