Package com.itextpdf.tool.xml.css
Class DefaultCssInheritanceRules
java.lang.Object
com.itextpdf.tool.xml.css.DefaultCssInheritanceRules
- All Implemented Interfaces:
CssInheritanceRules
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
inheritCssSelector
(Tag tag, String key) Validate inheritance of any CSS property for the given tag.boolean
inheritCssTag
(String tag) Validate inheritance of parent tag CSS.
-
Field Details
-
GLOBAL
-
PARENT_TO_TABLE
-
TABLE_IN_ROW
-
DIV_TO_CONTENT
-
TD_TO_CONTENT
-
-
Constructor Details
-
DefaultCssInheritanceRules
public DefaultCssInheritanceRules()
-
-
Method Details
-
inheritCssTag
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
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.
-