Class FixedDimensionsResponsiveLayoutStrategy

    • Field Detail

      • RESPONSIVE_MINIMAL_WIDTH

        public static final java.lang.String RESPONSIVE_MINIMAL_WIDTH
        See Also:
        Constant Field Values
      • RESPONSIVE_MINIMAL_HEIGHT

        public static final java.lang.String RESPONSIVE_MINIMAL_HEIGHT
        See Also:
        Constant Field Values
    • Constructor Detail

      • FixedDimensionsResponsiveLayoutStrategy

        public FixedDimensionsResponsiveLayoutStrategy()
    • Method Detail

      • isSaveSpaceHorizontally

        public boolean isSaveSpaceHorizontally​(org.zkoss.zk.ui.event.ClientInfoEvent info,
                                               java.util.Map<java.lang.String,​java.lang.Object> context)
        Specified by:
        isSaveSpaceHorizontally in interface ResponsiveLayoutStrategy
        Parameters:
        info - current screen data
        context - evaluation context with optional data that may be used by the strategy to compute the answer. By design it may be the claaing widget's settings.
        Returns:
        true if the calling widget should consider saving some horizontal space
      • isSaveSpaceVertically

        public boolean isSaveSpaceVertically​(org.zkoss.zk.ui.event.ClientInfoEvent info,
                                             java.util.Map<java.lang.String,​java.lang.Object> context)
        Specified by:
        isSaveSpaceVertically in interface ResponsiveLayoutStrategy
        Parameters:
        info - current screen data
        context - evaluation context with optional data that may be used by the strategy to compute the answer. By design it may be the claaing widget's settings.
        Returns:
        true if the calling widget should consider saving some vertical space
      • getMinWidth

        public int getMinWidth()
      • setMinWidth

        public void setMinWidth​(int minWidth)
      • getMinHeight

        public int getMinHeight()
      • setMinHeight

        public void setMinHeight​(int minHeight)