com.itextpdf.tool.xml.css
Interface CssFile

All Known Implementing Classes:
CssFileImpl, CSSFileWrapper

public interface CssFile

Represents a CSS file.

Author:
redlab_b

Method Summary
 boolean add(String selector, Map<String,String> props)
          Add CSS to this CssFile.
 List<CssRule> get(Tag t)
          Return CSS declarations for the given tag.
 boolean isPersistent()
           
 void isPersistent(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 selector
props - 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.


Copyright © 2015. All Rights Reserved.