public class Table extends AbstractTagProcessor
Modifier and Type | Field and Description |
---|---|
static float |
DEFAULT_CELL_BORDER_WIDTH |
Constructor and Description |
---|
Table()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
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) .
|
static float |
getBorderOrCellSpacing(boolean getHor, Map<String,String> css, Map<String,String> attributes)
Extracts and parses the style border-spacing or the attribute cellspacing of a table tag, if present.
|
protected PdfPTable |
intPdfPTable(int numberOfColumn) |
boolean |
isStackOwner()
Defaults to false.
|
static TableStyleValues |
setBorderAttributeForCell(Tag tag) |
static TableStyleValues |
setStyleValues(Tag tag)
Set the table style values in a TableStyleValues object based on attributes and css of the given tag.
|
content, createParagraph, currentContentToParagraph, currentContentToParagraph, doRtlIndentCorrections, endElement, getCssAppliers, getCSSResolver, getHtmlPipelineContext, getRunDirection, invertTextAlignForParagraph, invertTextAlignForParagraph, setCssAppliers, start, startElement, textContent, updateParagraphFontIfNeeded
public static final float DEFAULT_CELL_BORDER_WIDTH
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.
protected PdfPTable intPdfPTable(int numberOfColumn)
public static TableStyleValues setStyleValues(Tag tag)
TableStyleValues
object based on attributes and css of the given tag.
tag
- containing attributes and css.
TableStyleValues
object containing the table's style values.
public static TableStyleValues setBorderAttributeForCell(Tag tag)
public static float getBorderOrCellSpacing(boolean getHor, Map<String,String> css, Map<String,String> attributes)
getHor
- true for horizontal spacing, false for vertical spacing.
css
- of the table tag.
attributes
- of the table tag.
public boolean isStackOwner()
AbstractTagProcessor
isStackOwner
in interface TagProcessor
isStackOwner
in class AbstractTagProcessor
TagProcessor.isStackOwner()
Copyright © 1998–2019. All rights reserved.