Class CSSFileWrapper
java.lang.Object
com.itextpdf.tool.xml.css.CSSFileWrapper
- All Implemented Interfaces:
CssFile
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCSSFileWrapper(CssFile css, boolean b) Constructs a CssFile that does not allow adding of new CSS (given you don't mess with the CssFile provided on construction). -
Method Summary
-
Field Details
-
persistent
private final boolean persistent -
css
-
-
Constructor Details
-
CSSFileWrapper
Constructs a CssFile that does not allow adding of new CSS (given you don't mess with the CssFile provided on construction).- Parameters:
css- the css fileb- true if this file should be kept forever.
-
-
Method Details
-
add
-
get
-
isPersistent
public boolean isPersistent()- Specified by:
isPersistentin interfaceCssFile- Returns:
- if this CSS file should never be thrown away. Used in CSSFilesImpl#clear
-
isPersistent
public void isPersistent(boolean b) Description copied from interface:CssFileIndicates that this file should be kept.- Specified by:
isPersistentin interfaceCssFile- Parameters:
b- true if this file should be kept.
-