Interface ConfigurableBrowserArea
- All Superinterfaces:
CockpitEventAcceptor,CockpitEventProducer,FocusablePerspectiveArea,UIBrowserArea,UICockpitArea,UIComponent
- All Known Implementing Classes:
DefaultConfigurableBrowserArea
Browser area which supports creation of multiple Cockpit browser types, configured using Spring.
-
Method Summary
Modifier and TypeMethodDescription<T extends BrowserModel>
TcreateBrowser(String browserId, Class<T> expectedClass) Creates a browser with the specified ID if it is supported.getBrowserModel(String browserCode) Returns the browser with the code browserCode.Returns the Spring bean ID of this area's default browser.Returns all browser IDs supported by this browser area.booleanisBrowserSupported(String browserId) Returns whether this browser area supports creation of browsers with the specified ID.voidSets the Spring bean ID of this area's default browser.voidsetSupportedBrowserIds(List<String> browserIds) Sets the browsers supported by this browser area.Methods inherited from interface de.hybris.platform.cockpit.events.CockpitEventAcceptor
onCockpitEventMethods inherited from interface de.hybris.platform.cockpit.events.CockpitEventProducer
addCockpitEventAcceptor, removeCockpitEventAcceptorMethods inherited from interface de.hybris.platform.cockpit.session.FocusablePerspectiveArea
getManagingPerspective, isFocused, setFocusMethods inherited from interface de.hybris.platform.cockpit.session.UIBrowserArea
addBrowserAreaListener, addVisibleBrowser, addVisibleBrowser, close, closeOthers, duplicateBrowser, getBrowsers, getDefaultBrowserViewMapping, getFocusedBrowser, getMultiSelectActions, getMultiSelectContextActions, getMultiSelectContextActionsRegistry, getPreviousBrowser, getVisibleBrowsers, hide, initBrowsers, isBrowserMinimized, isClosable, isMinimizable, isSaveQueryAvailable, isSplitModeActive, isSplittable, removeBrowserAreaListener, replaceBrowser, saveQuery, setFocusedBrowser, setMultiSelectActions, setMultiSelectContextActions, setMultiSelectContextActionsRegistry, setSplitModeActive, setSplittable, show, updateActivation, updateActiveItems, updateSelectedItemsMethods inherited from interface de.hybris.platform.cockpit.session.UICockpitArea
getPerspective, initialize, setPerspective, updateMethods inherited from interface de.hybris.platform.cockpit.session.UIComponent
getLabel, getViewURI
-
Method Details
-
isBrowserSupported
Returns whether this browser area supports creation of browsers with the specified ID. Supported browsers are those which have been configured by a call tosetSupportedBrowserIds(List)- Parameters:
browserId- browser ID- Returns:
trueif browser with the specified id can be created,falseotherwise- See Also:
-
createBrowser
Creates a browser with the specified ID if it is supported. Note:isBrowserSupported(String)should be called before calling this method in order to assure that a browser with the specified code can be created.- Type Parameters:
T- type of browser model- Parameters:
browserId- browser Spring bean IDexpectedClass- expected browser type- Returns:
- browser model of type
T - See Also:
-
setSupportedBrowserIds
Sets the browsers supported by this browser area.- Parameters:
browserIds- list containing Spring bean IDs of all supported browsers
-
getSupportedBrowserIds
Returns all browser IDs supported by this browser area.- Returns:
- list containing Spring bean IDs of all supported browsers
-
setDefaultBrowserId
Sets the Spring bean ID of this area's default browser. Note: The corresponding Spring bean should be declared in the "prototype" scope.- Parameters:
id- bean ID of the default browser
-
getDefaultBrowserId
String getDefaultBrowserId()Returns the Spring bean ID of this area's default browser.- Returns:
- bean ID of the default browser
-
getBrowserModel
Returns the browser with the code browserCode.- Parameters:
browserCode- code of the browser- Returns:
- browser with the specified code or null if no browser is found
-