if (WidgetType.MENU_BAR.equals(widgetType)) { return new PTMenuBar(); }
if (WidgetType.MENU_ITEM.equals(widgetType)) { return new PTMenuItem(); }
if (WidgetType.MENU_ITEM_SEPARATOR.equals(widgetType)) { return new PTMenuItemSeparator(); }
if (WidgetType.POPUP_PANEL.equals(widgetType)) { return new PTPopupPanel(); }
if (WidgetType.DECORATED_POPUP_PANEL.equals(widgetType)) { return new PTDecoratedPopupPanel(); }
if (WidgetType.ATTACHED_POPUP_PABEL.equals(widgetType)) { return new PTAttachedPopupPanel(); }
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(); }