Interface ResponsiveLayoutStrategy

  • All Known Implementing Classes:
    FixedDimensionsResponsiveLayoutStrategy

    public interface ResponsiveLayoutStrategy
    Classes implementing this interface may be used to make decisions about the need of saving horizontal/vertical space. The decision should be based on current screen data (resolution) and current Desktop's size.
    See Also:
    Desktop
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean isSaveSpaceHorizontally​(org.zkoss.zk.ui.event.ClientInfoEvent info, java.util.Map<java.lang.String,​java.lang.Object> context)  
      boolean isSaveSpaceVertically​(org.zkoss.zk.ui.event.ClientInfoEvent info, java.util.Map<java.lang.String,​java.lang.Object> context)  
    • Method Detail

      • isSaveSpaceHorizontally

        boolean isSaveSpaceHorizontally​(org.zkoss.zk.ui.event.ClientInfoEvent info,
                                        java.util.Map<java.lang.String,​java.lang.Object> context)
        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

        boolean isSaveSpaceVertically​(org.zkoss.zk.ui.event.ClientInfoEvent info,
                                      java.util.Map<java.lang.String,​java.lang.Object> context)
        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