## org.csstudio.opibuilder.scriptUtil
Class WidgetUtil

The Utility Class to help managing widgets.

Author:
  Xihui Chen

Method Summary
`static org.csstudio.opibuilder.model.AbstractWidgetModel` | `createWidgetModel(java.lang.String widgetTypeID)` Create a new widget model with the give widget type ID.

Method Detail

### createWidgetModel

    public static org.csstudio.opibuilder.model.AbstractWidgetModel createWidgetModel(java.lang.String widgetTypeID)
                                                                               throws java.lang.Exception

  Create a new widget model with the give widget type ID.

  Parameters:
    `widgetTypeID` - type ID of the widget. You can get the typeID of a widget by opening an OPI with this widget in text editor.
  Returns:
    the widget model.
  Throws:
    `java.lang.Exception` - if the widget type ID does not exist.