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(); }
if (WidgetType.SIMPLE_PANEL.equals(widgetType)) { return new PTSimplePanel(); }
if (WidgetType.FOCUS_PANEL.equals(widgetType)) { return new PTFocusPanel(); }
if (WidgetType.SCROLL_PANEL.equals(widgetType)) { return new PTScrollPanel(); }