CssAppliersAware
, TagProcessor
public class Table extends AbstractTagProcessor
Modifier and Type | Field | Description |
---|---|---|
static float |
DEFAULT_CELL_BORDER_WIDTH |
Constructor | Description |
---|---|
Table() |
Default constructor.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.List<Element> |
end(WorkerContext ctx,
Tag tag,
java.util.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,
java.util.Map<java.lang.String,java.lang.String> css,
java.util.Map<java.lang.String,java.lang.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 java.util.List<Element> end(WorkerContext ctx, Tag tag, java.util.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 WorkerContexttag
- the tagcurrentContent
- 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, java.util.Map<java.lang.String,java.lang.String> css, java.util.Map<java.lang.String,java.lang.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–2018. All rights reserved.