01: package org.gui4j.component.factory;
02:
03: import org.dom4j.LElement;
04: import org.gui4j.component.Gui4jButton;
05: import org.gui4j.component.Gui4jJComponent;
06: import org.gui4j.core.Gui4jComponentContainer;
07:
08: public final class Gui4jButtonFactory extends
09: Gui4jAbstractButtonFactory {
10:
11: private final String NAME = "button";
12:
13: /*
14: * (non-Javadoc)
15: *
16: * @see org.gui4j.component.factory.Gui4jJComponentFactory#defineGui4jJComponentBy(org.gui4j.core.Gui4jComponentContainer,
17: * java.lang.String, org.dom4j.LElement)
18: */
19: protected Gui4jJComponent defineGui4jJComponentBy(
20: Gui4jComponentContainer gui4jComponentContainer, String id,
21: LElement e) {
22:
23: return new Gui4jButton(gui4jComponentContainer, id);
24: }
25:
26: public String getName() {
27: return NAME;
28: }
29:
30: }
|