Interface WidgetBrowserModel

All Superinterfaces:
BrowserModel, Cloneable, CockpitEventProducer, CockpitListComponent<TypedObject>, ConfigurableBrowserModel
All Known Implementing Classes:
DefaultWidgetBrowserModel, WidgetDashboardBrowserModel

public interface WidgetBrowserModel extends ConfigurableBrowserModel, CockpitEventProducer
Browser model which supports the use of Cockpit widgets.
See Also:
  • Method Details

    • getWidgetConfig

      WidgetConfig getWidgetConfig(String widgetCode)
      Returns the widget configuration mapped to the key widgetCode.
      Parameters:
      widgetCode - widget configuration code
      Returns:
      if a widget configuration is available with the specified code it is returned, otherwise null
    • getWidgetMap

      Map<String,WidgetConfig> getWidgetMap()
      Get widget configuration mappings.
      Returns:
      map containing all the widget configuration mappings
    • setWidgetMap

      void setWidgetMap(Map<String,WidgetConfig> widgetMap)
      Sets the widget configuration map to widgetMap.
      Parameters:
      widgetMap - the new widget configuration mapping
    • focusWidget

      void focusWidget(String widgetCode)
      Gives focus to the widget with the specified code.
      Parameters:
      widgetCode - widget configuration code
    • getFocusedWidgetCode

      String getFocusedWidgetCode()
      Returns the code of the currently focused widget.
      Returns:
      focused widget's widget code or null if no focused widget is available.
    • setWidgetFactory

      void setWidgetFactory(WidgetFactory widgetFactory)
      Sets the widget factory to be used when creating widgets.
      Parameters:
      widgetFactory - the widget factory
    • getWidgetFactory

      WidgetFactory getWidgetFactory()
      Returns the widget factory used for creating widgets.
      Returns:
      the widget factory
    • getViewTemplateURI

      String getViewTemplateURI()
      Returns this browser's view template URI.
      Returns:
      view template URI or null if no template has been specified
    • setViewTemplateURI

      void setViewTemplateURI(String viewUri)
      Sets this browser's view template URI to viewUri.
      Parameters:
      viewUri - view template URI