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>
public class PortalWidgetContainer<T extends Widget> extends DefaultWidgetContainer<T>
-
-
Constructor Summary
Constructors Constructor Description PortalWidgetContainer(WidgetFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancedPortallayoutcreatePortalLayout(ContainerLayout style, PortalWidgetContainerListener listener)Creates a portallayout from the currently contained widgetsContainerLayoutgetContainerLayout()protected java.util.SortedMap<PortalWidgetCoordinate,java.lang.String>getSortedCoordinates(java.util.Collection<java.lang.String> allWidgetCodes)java.util.Map<java.lang.String,PortalWidgetCoordinate>getWidgetPositions()Get the widget positionsbooleanisPanelsClosable()booleanisPanelsMaximizable()booleanisPanelsMinimizable()voidsetContainerLayout(ContainerLayout containerLayout)voidsetPanelsClosable(boolean panelsClosable)voidsetPanelsMaximizable(boolean panelsMaximizable)voidsetPanelsMinimizable(boolean panelsMinimizable)voidsetWidgetPositions(java.util.Map<java.lang.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 Detail
-
PortalWidgetContainer
public PortalWidgetContainer(WidgetFactory factory)
-
-
Method Detail
-
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
protected org.zkoss.zul.Panel wrapIntoPanel(T widget)
-
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
public void setContainerLayout(ContainerLayout containerLayout)
-
getContainerLayout
public ContainerLayout getContainerLayout()
-
getSortedCoordinates
protected java.util.SortedMap<PortalWidgetCoordinate,java.lang.String> getSortedCoordinates(java.util.Collection<java.lang.String> allWidgetCodes)
-
setWidgetPositions
public void setWidgetPositions(java.util.Map<java.lang.String,PortalWidgetCoordinate> positions)
Sets the widget positions.- Parameters:
positions- A map with widget id as key and a coordinate as value
-
getWidgetPositions
public java.util.Map<java.lang.String,PortalWidgetCoordinate> getWidgetPositions()
Get the widget positions- Returns:
- A map with widget id as key and a coordinate as value
-
-