com.itextpdf.tool.xml.css
Interface CssInheritanceRules

All Known Implementing Classes:
DefaultCssInheritanceRules

public interface CssInheritanceRules

Implementations of this interface determine the inheritance rules of CSS properties on tag basis and on property level.

Author:
redlab_b

Method Summary
 boolean 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.
 

Method Detail

inheritCssTag

boolean inheritCssTag(String tag)
Validate inheritance of parent tag CSS.

Parameters:
tag - the tag
Returns:
true if the tag can inherit CSS from it's parent tag, false otherwise.

inheritCssSelector

boolean inheritCssSelector(Tag tag,
                           String key)
Validate inheritance of any CSS property for the given tag.

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.


Copyright © 2015. All Rights Reserved.