Interface WidgetBrowserModel
- All Superinterfaces:
BrowserModel,Cloneable,CockpitEventProducer,CockpitListComponent<TypedObject>,ConfigurableBrowserModel
- All Known Implementing Classes:
DefaultWidgetBrowserModel,WidgetDashboardBrowserModel
Browser model which supports the use of Cockpit widgets.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidfocusWidget(String widgetCode) Gives focus to the widget with the specified code.Returns the code of the currently focused widget.Returns this browser's view template URI.getWidgetConfig(String widgetCode) Returns the widget configuration mapped to the keywidgetCode.Returns the widget factory used for creating widgets.Get widget configuration mappings.voidsetViewTemplateURI(String viewUri) Sets this browser's view template URI to viewUri.voidsetWidgetFactory(WidgetFactory widgetFactory) Sets the widget factory to be used when creating widgets.voidsetWidgetMap(Map<String, WidgetConfig> widgetMap) Sets the widget configuration map towidgetMap.Methods inherited from interface de.hybris.platform.cockpit.session.BrowserModel
addBrowserModelListener, clone, collapse, createViewComponent, focus, getArea, getAvailableBrowserFilters, getBrowserFilter, getExtendedLabel, getItem, getLabel, getRootType, getSelectedIndexes, getSelectedItems, getTotalCount, hasStatusBar, isAdvancedHeaderDropdownSticky, isAdvancedHeaderDropdownVisible, isAllMarked, isCollapsed, isDuplicatable, isFocused, multiEdit, multiEdit, removeBrowserModelListener, setAllMarked, setArea, setBrowserFilter, setExtendedLabel, setLabel, setRootType, setSelectedIndexes, setTotalCount, updateItemsMethods inherited from interface de.hybris.platform.cockpit.events.CockpitEventProducer
addCockpitEventAcceptor, removeCockpitEventAcceptorMethods inherited from interface de.hybris.platform.cockpit.session.CockpitListComponent
getItemsMethods inherited from interface de.hybris.platform.cockpit.session.ConfigurableBrowserModel
getBrowserCode, getViewClass, isInitiallyOpen, setBrowserCode, setInitiallyOpen, setViewClass
-
Method Details
-
getWidgetConfig
Returns the widget configuration mapped to the keywidgetCode.- 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
Sets the widget configuration map towidgetMap.- Parameters:
widgetMap- the new widget configuration mapping
-
focusWidget
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
nullif no focused widget is available.
-
setWidgetFactory
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
Sets this browser's view template URI to viewUri.- Parameters:
viewUri- view template URI
-