public class Header extends AbstractTagProcessor
Constructor and Description |
---|
Header() |
Modifier and Type | Method and Description |
---|---|
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.
|
List<Element> |
end(WorkerContext ctx, Tag tag, List<Element> currentContent)
Classes extending AbstractTagProcessor should override this method for actions that should be done in TagProcessor.endElement(WorkerContext, Tag, List) .
|
boolean |
isStackOwner()
Defaults to false.
|
createParagraph, currentContentToParagraph, currentContentToParagraph, doRtlIndentCorrections, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, getRunDirection, invertTextAlignForParagraph, invertTextAlignForParagraph, setCssAppliers, start, startElement, textContent, updateParagraphFontIfNeeded
public List<Element> content(WorkerContext ctx, Tag tag, String content)
TagProcessor
content
in interface TagProcessor
content
in class AbstractTagProcessor
ctx
- the WorkerContext
tag
- the tag encountered
content
- the text content between the tags this TagProcessor is mapped to.
public List<Element> end(WorkerContext ctx, Tag tag, List<Element> currentContent)
AbstractTagProcessor
TagProcessor.endElement(WorkerContext, Tag, List)
. The AbstractTagProcessor.endElement(WorkerContext, Tag, List)
calls this method after or before doing certain stuff, (see it's description).
end
in class AbstractTagProcessor
ctx
- the WorkerContext
tag
- the tag
currentContent
- the content created from e.g. inner tags, inner content and not yet added to document.
public boolean isStackOwner()
AbstractTagProcessor
isStackOwner
in interface TagProcessor
isStackOwner
in class AbstractTagProcessor
TagProcessor.isStackOwner()
Copyright © 1998–2024. All rights reserved.