Class WidgetUtil

java.lang.Object
org.yamcs.studio.script.WidgetUtil
Direct Known Subclasses:
WidgetUtil

public class WidgetUtil extends Object
The Utility Class to help managing widgets.
  • Constructor Details

    • WidgetUtil

      public WidgetUtil()
  • Method Details

    • createWidgetModel

      public static AbstractWidgetModel createWidgetModel(String widgetTypeID) throws 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:
      Exception - if the widget type ID does not exist.