Package com.itextpdf.tool.xml.css
Class CssFileImpl
- java.lang.Object
-
- com.itextpdf.tool.xml.css.CssFileImpl
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
persistent
private java.util.List<CssRule>
rules
-
Constructor Summary
Constructors Constructor Description CssFileImpl()
Constructs a new CssFileImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.lang.String selector, java.util.Map<java.lang.String,java.lang.String> props)
Add CSS to this CssFile.java.util.List<CssRule>
get(Tag t)
Return CSS declarations for the given tag.boolean
isPersistent()
void
isPersistent(boolean isPeristent)
Indicates that this file should be kept.
-
-
-
Field Detail
-
rules
private final java.util.List<CssRule> rules
-
persistent
private boolean persistent
-
-
Method Detail
-
add
public boolean add(java.lang.String selector, java.util.Map<java.lang.String,java.lang.String> props)
Description copied from interface:CssFile
Add CSS to this CssFile.
-
get
public java.util.List<CssRule> get(Tag t)
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.
-
-