Package com.itextpdf.tool.xml.css
Class DefaultCssInheritanceRules
- java.lang.Object
-
- com.itextpdf.tool.xml.css.DefaultCssInheritanceRules
-
- All Implemented Interfaces:
CssInheritanceRules
public class DefaultCssInheritanceRules extends java.lang.Object implements CssInheritanceRules
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.List<java.lang.String>
DIV_TO_CONTENT
private static java.util.List<java.lang.String>
GLOBAL
private static java.util.List<java.lang.String>
PARENT_TO_TABLE
private static java.util.List<java.lang.String>
TABLE_IN_ROW
private static java.util.List<java.lang.String>
TD_TO_CONTENT
-
Constructor Summary
Constructors Constructor Description DefaultCssInheritanceRules()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
inheritCssSelector(Tag tag, java.lang.String key)
Validate inheritance of any CSS property for the given tag.boolean
inheritCssTag(java.lang.String tag)
Validate inheritance of parent tag CSS.
-
-
-
Field Detail
-
GLOBAL
private static final java.util.List<java.lang.String> GLOBAL
-
PARENT_TO_TABLE
private static final java.util.List<java.lang.String> PARENT_TO_TABLE
-
TABLE_IN_ROW
private static final java.util.List<java.lang.String> TABLE_IN_ROW
-
DIV_TO_CONTENT
private static final java.util.List<java.lang.String> DIV_TO_CONTENT
-
TD_TO_CONTENT
private static final java.util.List<java.lang.String> TD_TO_CONTENT
-
-
Method Detail
-
inheritCssTag
public boolean inheritCssTag(java.lang.String tag)
Description copied from interface:CssInheritanceRules
Validate inheritance of parent tag CSS.- Specified by:
inheritCssTag
in interfaceCssInheritanceRules
- Parameters:
tag
- the tag- Returns:
- true if the tag can inherit CSS from it's parent tag, false otherwise.
-
inheritCssSelector
public boolean inheritCssSelector(Tag tag, java.lang.String key)
Description copied from interface:CssInheritanceRules
Validate inheritance of any CSS property for the given tag.- Specified by:
inheritCssSelector
in interfaceCssInheritanceRules
- Parameters:
tag
- the tagkey
- the css property- Returns:
- true if this property can be inherited from the parent tag for the given tag, false otherwise.
-
-