Package com.hybris.cockpitng.layout
Interface ResponsiveLayoutStrategy
-
- All Known Implementing Classes:
FixedDimensionsResponsiveLayoutStrategy
public interface ResponsiveLayoutStrategyClasses 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 booleanisSaveSpaceHorizontally(org.zkoss.zk.ui.event.ClientInfoEvent info, java.util.Map<java.lang.String,java.lang.Object> context)booleanisSaveSpaceVertically(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 datacontext- 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 datacontext- 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
-
-