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 Details

    • PortalWidgetContainer

      public PortalWidgetContainer(WidgetFactory factory)
  • Method Details

    • createPortalLayout

      public AdvancedPortallayout createPortalLayout(ContainerLayout style, PortalWidgetContainerListener listener)
      Creates a portallayout from the currently contained widgets
      Parameters:
      style - The ContainerLayout
      listener - 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 SortedMap<PortalWidgetCoordinate,String> getSortedCoordinates(Collection<String> allWidgetCodes)
    • setWidgetPositions

      public void setWidgetPositions(Map<String,PortalWidgetCoordinate> positions)
      Sets the widget positions.
      Parameters:
      positions - A map with widget id as key and a coordinate as value
    • getWidgetPositions

      public Map<String,PortalWidgetCoordinate> getWidgetPositions()
      Get the widget positions
      Returns:
      A map with widget id as key and a coordinate as value