Class HTMLReportRenderer.CSSInfo

java.lang.Object
org.idempiere.print.renderer.HTMLReportRenderer.CSSInfo
Enclosing class:
HTMLReportRenderer

public static class HTMLReportRenderer.CSSInfo extends Object
Store info for css rule
Author:
hieplq
  • Constructor Details

  • Method Details

    • hashCode

      public int hashCode()
      Sum hashCode of color and font
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      equal when same color and font
      Overrides:
      equals in class Object
    • compareObj

      protected boolean compareObj(Object obj1, Object obj2)
      Compare two object equal when both is null or equal
      Parameters:
      obj1 -
      obj2 -
      Returns:
      true if both is null or equal
    • addCssRule

      protected void addCssRule(StringBuilder cssBuild, String ruleName, String ruleValue)
      Append a css rule to a css class
      Parameters:
      cssBuild - css class builder
      ruleName -
      ruleValue -
    • getCssRule

      public String getCssRule()
      Build css rule
      Returns:
      css rule