Package com.itextpdf.tool.xml.css
Class CSSFileWrapper
java.lang.Object
com.itextpdf.tool.xml.css.CSSFileWrapper
- All Implemented Interfaces:
CssFile
This Wrapper disables the add and isPersistent(final boolean b) methods.
-
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
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 b) Description copied from interface:CssFile
Indicates that this file should be kept.- Specified by:
isPersistent
in interfaceCssFile
- Parameters:
b
- true if this file should be kept.
-