Package com.itextpdf.tool.xml.css
Class CssFileImpl
java.lang.Object
com.itextpdf.tool.xml.css.CssFileImpl
- All Implemented Interfaces:
CssFile
Implementation of CssFile, the CSS is stored in a map.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
rules
-
persistent
private boolean persistent
-
-
Constructor Details
-
CssFileImpl
public CssFileImpl()Constructs a new CssFileImpl.
-
-
Method Details
-
add
Description copied from interface:CssFile
Add CSS to this CssFile. -
get
Description copied from interface:CssFile
Return CSS declarations for the given tag. -
isPersistent
public boolean isPersistent()- Specified by:
isPersistent
in interfaceCssFile
- Returns:
- if this CSS file should never be thrown away. Used in CSSFilesImpl#clear
-
isPersistent
public void isPersistent(boolean isPeristent) Indicates that this file should be kept.- Specified by:
isPersistent
in interfaceCssFile
- Parameters:
isPeristent
- set to true if this file should be kept.
-