if (WidgetType.STACKLAYOUT_PANEL.equals(widgetType)) { return new PTStackLayoutPanel(); }
if (WidgetType.LABEL.equals(widgetType)) { return new PTLabel(); }
if (WidgetType.HTML.equals(widgetType)) { return new PTHTML(); }
if (WidgetType.TEXTBOX.equals(widgetType)) { return new PTTextBox(); }
if (WidgetType.PASSWORD_TEXTBOX.equals(widgetType)) { return new PTPasswordTextBox(); }
if (WidgetType.TEXT_AREA.equals(widgetType)) { return new PTTextArea(); }
if (WidgetType.CHECKBOX.equals(widgetType)) { return new PTCheckBox(); }
if (WidgetType.RADIO_BUTTON.equals(widgetType)) { return new PTRadioButton(); }
if (WidgetType.PUSH_BUTTON.equals(widgetType)) { return new PTPushButton(); }
if (WidgetType.LISTBOX.equals(widgetType)) { return new PTListBox(); }
if (WidgetType.SIMPLE_LAYOUT_PANEL.equals(widgetType)) { return new PTSimpleLayoutPanel(); }