Package com.itextpdf.tool.xml.css
Interface CssFile
- All Known Implementing Classes:
CssFileImpl
,CSSFileWrapper
public interface CssFile
Represents a CSS file.
-
Method Summary
-
Method Details
-
add
Add CSS to this CssFile.- Parameters:
selector
- the CSS selectorprops
- the properties for the given selector
-
get
Return CSS declarations for the given tag.- Parameters:
t
- the tag for searching rules- Returns:
- a list of maps with all CSS properties for this tag or an empty list if none found.
-
isPersistent
boolean isPersistent()- Returns:
- if this CSS file should never be thrown away. Used in CSSFilesImpl#clear
-
isPersistent
void isPersistent(boolean b) Indicates that this file should be kept.- Parameters:
b
- true if this file should be kept.
-