Package org.adempiere.webui.util
Class ZKUpdateUtil
java.lang.Object
org.adempiere.webui.util.ZKUpdateUtil
Helper method to set width and height of component.
- Author:
- hieplq
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
setCSSHeight
(org.zkoss.zk.ui.HtmlBasedComponent component) Use client side script to set height of component to the corresponding height define in css.static void
setCSSWidth
(org.zkoss.zk.ui.HtmlBasedComponent component) Use client side script to set width of component to the corresponding width define in css.static void
Ensure vflex is null and set height of compstatic void
Ensure width is null and set hflex of compstatic void
Ensure height is null and set vflex of compstatic void
setVflex
(org.zkoss.zul.Grid comp, boolean value) Ensure height is null and set vflex of compstatic void
setVflex
(org.zkoss.zul.Listbox comp, boolean value) static void
setVflex
(org.zkoss.zul.Tree comp, boolean value) Ensure height is null and set vflex of compstatic void
Ensure hflex is null and set width of compstatic void
setWindowHeightX
(org.zkoss.zk.ui.HtmlBasedComponent comp, int heightInPixel) Set height of popup, window or dialog to heightInPixel.static void
setWindowWidthX
(org.zkoss.zk.ui.HtmlBasedComponent comp, int widthInPixel) Set width of popup, window or dialog to widthInPixel.
-
Constructor Details
-
ZKUpdateUtil
public ZKUpdateUtil()
-
-
Method Details
-
setHeight
Ensure vflex is null and set height of comp- Parameters:
comp
-value
-
-
setWidth
Ensure hflex is null and set width of comp- Parameters:
comp
-value
-
-
setHflex
Ensure width is null and set hflex of comp- Parameters:
comp
-value
-
-
setVflex
Ensure height is null and set vflex of comp- Parameters:
comp
-value
-
-
setVflex
public static void setVflex(org.zkoss.zul.Listbox comp, boolean value) - Parameters:
comp
-value
-
-
setVflex
public static void setVflex(org.zkoss.zul.Grid comp, boolean value) Ensure height is null and set vflex of comp- Parameters:
comp
-value
-
-
setVflex
public static void setVflex(org.zkoss.zul.Tree comp, boolean value) Ensure height is null and set vflex of comp- Parameters:
comp
-value
-
-
setCSSHeight
public static void setCSSHeight(org.zkoss.zk.ui.HtmlBasedComponent component) Use client side script to set height of component to the corresponding height define in css.- Parameters:
component
-
-
setCSSWidth
public static void setCSSWidth(org.zkoss.zk.ui.HtmlBasedComponent component) Use client side script to set width of component to the corresponding width define in css.- Parameters:
component
-
-
setWindowHeightX
public static void setWindowHeightX(org.zkoss.zk.ui.HtmlBasedComponent comp, int heightInPixel) Set height of popup, window or dialog to heightInPixel. Set height to 100% if heightInPixel > desktopHeight- Parameters:
comp
-heightInPixel
- Height in Pixel
-
setWindowWidthX
public static void setWindowWidthX(org.zkoss.zk.ui.HtmlBasedComponent comp, int widthInPixel) Set width of popup, window or dialog to widthInPixel. Set width to 100% if widthInPixel > desktopWidth- Parameters:
comp
-widthInPixel
-
-