Class CssUtils


  • public final class CssUtils
    extends java.lang.Object
    Utility methods for CSS handling.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void addSclass​(java.lang.String sclass, org.zkoss.zk.ui.HtmlBasedComponent component)
      Adds the defined css-class to the component.
      static void removeSclass​(java.lang.String sclass, org.zkoss.zk.ui.HtmlBasedComponent component)
      Removes the defined css-class from the component.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addSclass

        public static void addSclass​(java.lang.String sclass,
                                     org.zkoss.zk.ui.HtmlBasedComponent component)
        Adds the defined css-class to the component.
        Parameters:
        sclass - class to add
        component - component to add class to
      • removeSclass

        public static void removeSclass​(java.lang.String sclass,
                                        org.zkoss.zk.ui.HtmlBasedComponent component)
        Removes the defined css-class from the component.
        Parameters:
        sclass - class to remove
        component - component to remove the class from