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 booleanpersistentprivate 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 booleanadd(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.booleanisPersistent()voidisPersistent(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:CssFileAdd CSS to this CssFile.
-
get
public java.util.List<CssRule> get(Tag t)
Description copied from interface:CssFileReturn CSS declarations for the given tag.
-
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 isPeristent)
Indicates that this file should be kept.- Specified by:
isPersistentin interfaceCssFile- Parameters:
isPeristent- set to true if this file should be kept.
-
-