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
static void
static void
static void
setVflex
(org.zkoss.zul.Grid comp, boolean value) static void
setVflex
(org.zkoss.zul.Listbox comp, boolean value) static void
setVflex
(org.zkoss.zul.Tree comp, boolean value) static void
static 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
- Parameters:
comp
-value
-
-
setWidth
- Parameters:
comp
-value
-
-
setHflex
- Parameters:
comp
-value
-
-
setVflex
- 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) - Parameters:
comp
-value
-
-
setVflex
public static void setVflex(org.zkoss.zul.Tree comp, boolean value) - 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
-
-