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

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

public class Link
extends AbstractTagProcessor

The Link TagProcessor will try to add the content of a <link> that has the attribute type set to "text/css" to the CssResolverPipeline CSS. If the content cannot be parsed, an error is logged.

Author:
redlab_b

Constructor Summary
Link()
           
 
Method Summary
 List<Element> start(WorkerContext ctx, Tag tag)
          Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.startElement(WorkerContext, Tag).
 
Methods inherited from class com.itextpdf.tool.xml.html.AbstractTagProcessor
content, currentContentToParagraph, currentContentToParagraph, end, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, isStackOwner, setCssAppliers, startElement, textContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Link

public Link()
Method Detail

start

public List<Element> start(WorkerContext ctx,
                           Tag tag)
Description copied from class: AbstractTagProcessor
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.startElement(WorkerContext, Tag). The AbstractTagProcessor.startElement(WorkerContext, Tag) calls this method after or before doing certain stuff, (see it's description).

Overrides:
start in class AbstractTagProcessor
Parameters:
ctx - the WorkerContext
tag - the tag
Returns:
an element to be added to current content, may be null


Copyright © 2012. All Rights Reserved.