if (WidgetType.SCHEDULER.equals(widgetType)) { return new PTScheduler(); }
if (WidgetType.RICH_TEXT_AREA.equals(widgetType)) { return new PTRichTextArea(); }
if (WidgetType.RICH_TEXT_TOOLBAR.equals(widgetType)) { return new PTRichTextToolbar(); }
if (WidgetType.DIALOG_BOX.equals(widgetType)) { return new PTDialogBox(); }
if (WidgetType.FLOW_PANEL.equals(widgetType)) { return new PTFlowPanel(); }
if (WidgetType.SUGGESTBOX.equals(widgetType)) { return new PTSuggestBox(); }
if (WidgetType.MULTIWORD_SUGGEST_ORACLE.equals(widgetType)) { return new PTMultiWordSuggestOracle(); }
if (WidgetType.DISCLOSURE_PANEL.equals(widgetType)) { return new PTDisclosurePanel(); }
if (WidgetType.DECORATOR_PANEL.equals(widgetType)) { return new PTDecoratorPanel(); }
if (WidgetType.ELEMENT.equals(widgetType)) { return new PTElement(); }
if (WidgetType.SCRIPT.equals(widgetType)) { return new PTScript(); }