Package org.compiere.print
Class ReportEngine.CSSInfo
- java.lang.Object
-
- org.compiere.print.ReportEngine.CSSInfo
-
- Enclosing class:
- ReportEngine
public class ReportEngine.CSSInfo extends Object
Store info for make css rule- Author:
- hieplq
-
-
Constructor Summary
Constructors Constructor Description CSSInfo(Font font, Color color)
CSSInfo(MPrintFormatItem item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addCssRule(StringBuilder cssBuild, String ruleName, String ruleValue)
append a css rule to css classprotected boolean
compareObj(Object obj1, Object obj2)
compare two object equal when both is null or result of equalboolean
equals(Object obj)
equal only when same color and fontString
getCssRule()
build css ruleint
hashCode()
sum hashCode of partial
-
-
-
Constructor Detail
-
CSSInfo
public CSSInfo(MPrintFormatItem item)
-
-
Method Detail
-
equals
public boolean equals(Object obj)
equal only when same color and font
-
compareObj
protected boolean compareObj(Object obj1, Object obj2)
compare two object equal when both is null or result of equal- Parameters:
obj1
-obj2
-- Returns:
-
addCssRule
protected void addCssRule(StringBuilder cssBuild, String ruleName, String ruleValue)
append a css rule to css class- Parameters:
cssBuild
-ruleName
-ruleValue
-
-
getCssRule
public String getCssRule()
build css rule- Returns:
-
-