com.itextpdf.tool.xml.html.head
Class Style

java.lang.Object
  extended by com.itextpdf.tool.xml.html.AbstractTagProcessor
      extended by com.itextpdf.tool.xml.html.head.Style
All Implemented Interfaces:
CssAppliersAware, TagProcessor

public class Style
extends AbstractTagProcessor

The Style TagProcessor will try to add the content of a <style> to the CssResolverPipeline CSS. If the content cannot be parsed, an error is logged.

Author:
redlab_b

Constructor Summary
Style()
           
 
Method Summary
 List<Element> content(WorkerContext ctx, Tag tag, String content)
          This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.
 
Methods inherited from class com.itextpdf.tool.xml.html.AbstractTagProcessor
currentContentToParagraph, currentContentToParagraph, end, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, isStackOwner, setCssAppliers, start, startElement, textContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Style

public Style()
Method Detail

content

public List<Element> content(WorkerContext ctx,
                             Tag tag,
                             String content)
Description copied from interface: TagProcessor
This method is called if there is text content encountered between the opening and closing tags this TagProcessor is mapped to.

Specified by:
content in interface TagProcessor
Overrides:
content in class AbstractTagProcessor
Parameters:
ctx - the WorkerContext
tag - the tag encountered
content - the text content between the tags this TagProcessor is mapped to.
Returns:
the element to add to the currentContent list


Copyright © 2012. All Rights Reserved.