if (WidgetType.DATEBOX.equals(widgetType)) { return new PTDateBox(); }
if (WidgetType.DATEPICKER.equals(widgetType)) { return new PTDatePicker(); }
if (WidgetType.FLEX_TABLE.equals(widgetType)) { return new PTFlexTable(); }
if (WidgetType.GRID.equals(widgetType)) { return new PTGrid(); }
if (WidgetType.IMAGE.equals(widgetType)) { return new PTImage(); }
if (WidgetType.FILE_UPLOAD.equals(widgetType)) { return new PTFileUpload(); }
if (WidgetType.TREE.equals(widgetType)) { return new PTTree(); }
if (WidgetType.TREE_ITEM.equals(widgetType)) { return new PTTreeItem(); }
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(); }