com.itextpdf.tool.xml.css
Class CssFilesImpl

java.lang.Object
  extended by com.itextpdf.tool.xml.css.CssFilesImpl
All Implemented Interfaces:
CssFiles

public class CssFilesImpl
extends Object
implements CssFiles

Author:
itextpdf.com

Constructor Summary
CssFilesImpl()
          Constructs a new CssFilesImpl.
CssFilesImpl(CssFile css)
          Construct a new CssFilesImpl with the given css file.
 
Method Summary
 void add(CssFile css)
          Adds css to this CssFiles.
 void clear()
           
 Map<String,String> getCSS(Tag t)
          Processes a tag and retrieves CSS.
 boolean hasFiles()
          Check for files with rules.
 void populateCss(Map<String,String> aggregatedProps, String selector)
           
 void populateOneCss(CssFile cssFile, Map<String,String> aggregatedProps, String selector)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CssFilesImpl

public CssFilesImpl()
Constructs a new CssFilesImpl.


CssFilesImpl

public CssFilesImpl(CssFile css)
Construct a new CssFilesImpl with the given css file.

Parameters:
css - the css file
Method Detail

hasFiles

public boolean hasFiles()
Description copied from interface: CssFiles
Check for files with rules.

Specified by:
hasFiles in interface CssFiles
Returns:
true if there are files with rules in this CssFiles collector

getCSS

public Map<String,String> getCSS(Tag t)
Processes a tag and retrieves CSS. Selectors created:

Specified by:
getCSS in interface CssFiles
Parameters:
t - the tag to check for.
Returns:
a map with property as key and the value as value of the property

populateCss

public void populateCss(Map<String,String> aggregatedProps,
                        String selector)
Parameters:
aggregatedProps - the map to put the properties in.
selector - the selector to search for.

populateOneCss

public void populateOneCss(CssFile cssFile,
                           Map<String,String> aggregatedProps,
                           String selector)

add

public void add(CssFile css)
Description copied from interface: CssFiles
Adds css to this CssFiles.

Specified by:
add in interface CssFiles
Parameters:
css - the CssFile to add.

clear

public void clear()
Specified by:
clear in interface CssFiles


Copyright © 2012. All Rights Reserved.