private HashMap paintableToId = new HashMap();
- private WidgetFactory widgetFactory = new DefaultWidgetFactory();
+ private final WidgetFactory widgetFactory;
private IContextMenu contextMenu = null;
private IView view = new IView();
+
+ public ApplicationConnection() {
+ widgetFactory = createWidgetFactory();
+ }
/**
* This is the entry point method.
}
+ protected static WidgetFactory createWidgetFactory() {
+ return new DefaultWidgetFactory();
+ }
+
public static Console getConsole() {
return console;
}
buf.toString(), immediate, 'a');
}
- public WidgetFactory getWidgetFactory() {
- return widgetFactory;
- }
-
- public void setWidgetFactory(WidgetFactory widgetFactory) {
- this.widgetFactory = widgetFactory;
- }
-
public static Layout getParentLayout(Widget component) {
Widget parent = component.getParent();
while (parent != null && !(parent instanceof Layout))
* TODO: Class based impl, use when GWT supports return
* (Widget)GWT.create(resolveWidgetClass(uidl));
*/
+
+
}
- private String resolveWidgetTypeName(UIDL uidl) {
+ protected String resolveWidgetTypeName(UIDL uidl) {
String tag = uidl.getTag();
if ("button".equals(tag)) {