Class ZKUpdateUtil

java.lang.Object
org.adempiere.webui.util.ZKUpdateUtil

public class ZKUpdateUtil extends Object
Helper method to set width and height of component.
Author:
hieplq
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    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
    setHeight(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
    Ensure vflex is null and set height of comp
    static void
    setHflex(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
    Ensure width is null and set hflex of comp
    static void
    setVflex(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
    Ensure height is null and set vflex of comp
    static void
    setVflex(org.zkoss.zul.Grid comp, boolean value)
    Ensure height is null and set vflex of comp
    static 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 comp
    static void
    setWidth(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
    Ensure hflex is null and set width of comp
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZKUpdateUtil

      public ZKUpdateUtil()
  • Method Details

    • setHeight

      public static void setHeight(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
      Ensure vflex is null and set height of comp
      Parameters:
      comp -
      value -
    • setWidth

      public static void setWidth(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
      Ensure hflex is null and set width of comp
      Parameters:
      comp -
      value -
    • setHflex

      public static void setHflex(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
      Ensure width is null and set hflex of comp
      Parameters:
      comp -
      value -
    • setVflex

      public static void setVflex(org.zkoss.zk.ui.HtmlBasedComponent comp, String value)
      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 -