Package com.hybris.cockpitng.layout.impl
Class FixedDimensionsResponsiveLayoutStrategy
- java.lang.Object
-
- com.hybris.cockpitng.layout.impl.FixedDimensionsResponsiveLayoutStrategy
-
- All Implemented Interfaces:
ResponsiveLayoutStrategy
public class FixedDimensionsResponsiveLayoutStrategy extends java.lang.Object implements ResponsiveLayoutStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringRESPONSIVE_MINIMAL_HEIGHTstatic java.lang.StringRESPONSIVE_MINIMAL_WIDTH
-
Constructor Summary
Constructors Constructor Description FixedDimensionsResponsiveLayoutStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMinHeight()intgetMinWidth()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)voidsetMinHeight(int minHeight)voidsetMinWidth(int minWidth)
-
-
-
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
-
-
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:
isSaveSpaceHorizontallyin interfaceResponsiveLayoutStrategy- 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
public boolean isSaveSpaceVertically(org.zkoss.zk.ui.event.ClientInfoEvent info, java.util.Map<java.lang.String,java.lang.Object> context)- Specified by:
isSaveSpaceVerticallyin interfaceResponsiveLayoutStrategy- 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
-
getMinWidth
public int getMinWidth()
-
setMinWidth
public void setMinWidth(int minWidth)
-
getMinHeight
public int getMinHeight()
-
setMinHeight
public void setMinHeight(int minHeight)
-
-