Class DefaultCssInheritanceRules

java.lang.Object
com.itextpdf.tool.xml.css.DefaultCssInheritanceRules
All Implemented Interfaces:
CssInheritanceRules

public class DefaultCssInheritanceRules extends Object implements CssInheritanceRules
  • Field Details

    • GLOBAL

      private static final List<String> GLOBAL
    • PARENT_TO_TABLE

      private static final List<String> PARENT_TO_TABLE
    • TABLE_IN_ROW

      private static final List<String> TABLE_IN_ROW
    • DIV_TO_CONTENT

      private static final List<String> DIV_TO_CONTENT
    • TD_TO_CONTENT

      private static final List<String> TD_TO_CONTENT
  • Constructor Details

    • DefaultCssInheritanceRules

      public DefaultCssInheritanceRules()
  • Method Details

    • inheritCssTag

      public boolean inheritCssTag(String tag)
      Description copied from interface: CssInheritanceRules
      Validate inheritance of parent tag CSS.
      Specified by:
      inheritCssTag in interface CssInheritanceRules
      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, String key)
      Description copied from interface: CssInheritanceRules
      Validate inheritance of any CSS property for the given tag.
      Specified by:
      inheritCssSelector in interface CssInheritanceRules
      Parameters:
      tag - the tag
      key - the css property
      Returns:
      true if this property can be inherited from the parent tag for the given tag, false otherwise.