Package com.itextpdf.tool.xml.css
Interface CssFile
-
- All Known Implementing Classes:
CssFileImpl,CSSFileWrapper
public interface CssFileRepresents a CSS file.- Author:
- redlab_b
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadd(String selector, Map<String,String> props)Add CSS to this CssFile.List<CssRule>get(Tag t)Return CSS declarations for the given tag.booleanisPersistent()voidisPersistent(boolean b)Indicates that this file should be kept.
-
-
-
Method Detail
-
add
boolean add(String selector, Map<String,String> props)
Add CSS to this CssFile.- Parameters:
selector- the CSS selectorprops- the properties for the given selector
-
get
List<CssRule> get(Tag t)
Return CSS declarations for the given tag.- Parameters:
t- the tag for searching rules- Returns:
- a list of maps with all CSS properties for this tag or an empty list if none found.
-
isPersistent
boolean isPersistent()
- Returns:
- if this CSS file should never be thrown away. Used in CSSFilesImpl#clear
-
isPersistent
void isPersistent(boolean b)
Indicates that this file should be kept.- Parameters:
b- true if this file should be kept.
-
-