Class PortalWidgetContainer<T extends Widget>
java.lang.Object
de.hybris.platform.cockpit.widgets.impl.DefaultWidgetContainer<T>
de.hybris.platform.cockpit.widgets.portal.PortalWidgetContainer<T>
- All Implemented Interfaces:
WidgetContainer<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePortalLayout(ContainerLayout style, PortalWidgetContainerListener listener) Creates a portallayout from the currently contained widgetsprotected SortedMap<PortalWidgetCoordinate,String> getSortedCoordinates(Collection<String> allWidgetCodes) Get the widget positionsbooleanbooleanbooleanvoidsetContainerLayout(ContainerLayout containerLayout) voidsetPanelsClosable(boolean panelsClosable) voidsetPanelsMaximizable(boolean panelsMaximizable) voidsetPanelsMinimizable(boolean panelsMinimizable) voidsetWidgetPositions(Map<String, PortalWidgetCoordinate> positions) Sets the widget positions.protected org.zkoss.zul.PanelwrapIntoPanel(T widget) Methods inherited from class de.hybris.platform.cockpit.widgets.impl.DefaultWidgetContainer
addCockpitEventAcceptor, cleanup, createWidget, focusWidget, getCockpitEventAcceptors, getFocusedWidgetCode, getWidget, getWidgetFactory, getWidgetMap, initialize, notifyListeners, removeCockpitEventAcceptor, setWidgetFactory
-
Constructor Details
-
PortalWidgetContainer
-
-
Method Details
-
createPortalLayout
public AdvancedPortallayout createPortalLayout(ContainerLayout style, PortalWidgetContainerListener listener) Creates a portallayout from the currently contained widgets- Parameters:
style- TheContainerLayoutlistener- the callback listener for changes done by the user, can be null- Returns:
- an instance of AdvancedPortallayout
-
wrapIntoPanel
-
setPanelsMaximizable
public void setPanelsMaximizable(boolean panelsMaximizable) -
isPanelsMaximizable
public boolean isPanelsMaximizable() -
setPanelsMinimizable
public void setPanelsMinimizable(boolean panelsMinimizable) -
isPanelsMinimizable
public boolean isPanelsMinimizable() -
setPanelsClosable
public void setPanelsClosable(boolean panelsClosable) -
isPanelsClosable
public boolean isPanelsClosable() -
setContainerLayout
-
getContainerLayout
-
getSortedCoordinates
protected SortedMap<PortalWidgetCoordinate,String> getSortedCoordinates(Collection<String> allWidgetCodes) -
setWidgetPositions
Sets the widget positions.- Parameters:
positions- A map with widget id as key and a coordinate as value
-
getWidgetPositions
Get the widget positions- Returns:
- A map with widget id as key and a coordinate as value
-