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
 void add(String selector, Map<String,String> props)
          Add CSS to this CssFile.
 Map<String,String> get(String selector)
          Return CSS for the given selector.
 boolean isPersistent()
           
 void isPersistent(boolean b)
          Indicates that this file should be kept.
 

Method Detail

add

void 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

Map<String,String> get(String selector)
Return CSS for the given selector.

Parameters:
selector - the selector to look for
Returns:
a map with all CSS properties for this selector or an empty map 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 © 2012. All Rights Reserved.