TableElement

Inheritance: java.lang.Object, com.aspose.pdf.tagged.logicalstructure.elements.Element com.aspose.pdf.tagged.logicalstructure.elements.StructureElement com.aspose.pdf.tagged.logicalstructure.elements.bls.BLSElement com.aspose.pdf.tagged.logicalstructure.elements.bls.TableElement, com.aspose.pdf.tagged.logicalstructure.elements.Element, com.aspose.pdf.tagged.logicalstructure.elements.StructureElement com.aspose.pdf.tagged.logicalstructure.elements.bls.BLSElement com.aspose.pdf.tagged.logicalstructure.elements.bls.TableElement, com.aspose.pdf.tagged.logicalstructure.elements.StructureElement, com.aspose.pdf.tagged.logicalstructure.elements.bls.BLSElement com.aspose.pdf.tagged.logicalstructure.elements.bls.TableElement, com.aspose.pdf.tagged.logicalstructure.elements.bls.BLSElement, com.aspose.pdf.tagged.logicalstructure.elements.bls.TableElement

All Implemented Interfaces: IAdjustPosition

public final class TableElement extends BLSElement implements IAdjustPosition

Represents Table structure element in logical structure.

Constructors

ConstructorDescription
TableElementconstructor for internal usage only

Methods

MethodDescription
adjustPositionAdjust position.
createTBodyCreates {@link TableTHeadElement} and added it to current table.
createTFootCreates {@link TableTFootElement} and added it to current table.
createTHeadCreates {@link TableTHeadElement} and added it to current table.
getAlignmentGets or sets the table alignment.
getBackgroundColorGets or sets the table background color.
getBorderGets or sets the table border.
getBrokenGets or sets table vertical broken;
getColumnAdjustmentGets or sets the table column adjustment.
getColumnWidthsGets the column widths of the table.
getCornerStyleGets or sets the styles of the border corners
getDefaultCellBorderGets default cell border.
getDefaultCellPaddingGets or sets the default cell padding.
getDefaultCellTextStateGets or sets the default cell text state.
getDefaultColumnWidthGets or sets default column width.
getLeftGets or sets the table left coordinate.
getRepeatingColumnsCountGets or sets the maximum columns count for table.
getRepeatingRowsCountGets the first rows count repeated for several pages.
getRepeatingRowsStyleGets the style for repeating rows.
getTable
getTopGets or sets the table top coordinate.
isBordersIncludedGets or sets border included in column widhts.
isBrokenGets or sets the table is broken - will be truncated for next page.
preSave
setAlignmentGets or sets the table alignment.
setBackgroundColorGets or sets the table background color.
setBorderGets or sets the table border.
setBordersIncludedGets or sets border included in column widhts.
setBrokenGets or sets the table is broken - will be truncated for next page.
setBrokenGets or sets table vertical broken;
setColumnAdjustmentGets or sets the table column adjustment.
setColumnWidthsGets the column widths of the table.
setCornerStyleGets or sets the styles of the border corners
setDefaultCellBorderGets default cell border.
setDefaultCellPaddingGets or sets the default cell padding.
setDefaultCellTextStateGets or sets the default cell text state.
setDefaultColumnWidthGets or sets default column width.
setLeftGets or sets the table left coordinate.
setRepeatingColumnsCountGets or sets the maximum columns count for table.
setRepeatingRowsCountGets the first rows count repeated for several pages.
setRepeatingRowsStyleGets the style for repeating rows.
setTopGets or sets the table top coordinate.

TableElement

constructor for internal usage only

adjustPosition

Adjust position.

createTBody

public final TableTBodyElement createTBody()

Creates {@link TableTHeadElement} and added it to current table.

Returns: Created structure element.

createTFoot

public final TableTFootElement createTFoot()

Creates {@link TableTFootElement} and added it to current table.

Returns: Created structure element.

createTHead

public final TableTHeadElement createTHead()

Creates {@link TableTHeadElement} and added it to current table.

Returns: Created structure element.

getAlignment

public final HorizontalAlignment getAlignment()

Gets or sets the table alignment.

Returns: HorizontalAlignment element

getBackgroundColor

public final Color getBackgroundColor()

Gets or sets the table background color.

Returns: Color instance

getBorder

public final BorderInfo getBorder()

Gets or sets the table border.

Returns: BorderInfo instance

getBroken

public final int getBroken()

Gets or sets table vertical broken;

Returns: TableBroken element

getColumnAdjustment

public final ColumnAdjustment getColumnAdjustment()

Gets or sets the table column adjustment.

Returns: ColumnAdjustment element

getColumnWidths

public final String getColumnWidths()

Gets the column widths of the table.

Returns: String value

getCornerStyle

public final BorderCornerStyle getCornerStyle()

Gets or sets the styles of the border corners

Returns: BorderCornerStyle element

getDefaultCellBorder

public final BorderInfo getDefaultCellBorder()

Gets default cell border.

Returns: BorderInfo instance

getDefaultCellPadding

public final MarginInfo getDefaultCellPadding()

Gets or sets the default cell padding.

Returns: MarginInfo instance

getDefaultCellTextState

public final TextState getDefaultCellTextState()

Gets or sets the default cell text state.

Returns: TextState instance

getDefaultColumnWidth

public final String getDefaultColumnWidth()

Gets or sets default column width.

Returns: String value

getLeft

public final float getLeft()

Gets or sets the table left coordinate.

Returns: float value

getRepeatingColumnsCount

public final int getRepeatingColumnsCount()

Gets or sets the maximum columns count for table.

Returns: int value

getRepeatingRowsCount

public final int getRepeatingRowsCount()

Gets the first rows count repeated for several pages.

Returns: int value

getRepeatingRowsStyle

public final TextState getRepeatingRowsStyle()

Gets the style for repeating rows.

Returns: TextState instance

getTable

public final Table getTable()

getTop

public final float getTop()

Gets or sets the table top coordinate.

Returns: float value

isBordersIncluded

public final boolean isBordersIncluded()

Gets or sets border included in column widhts.

Returns: boolean value

isBroken

public final boolean isBroken()

Gets or sets the table is broken - will be truncated for next page.

Returns: boolean value

preSave

public void preSave()

setAlignment

Gets or sets the table alignment.

setBackgroundColor

Gets or sets the table background color.

setBorder

Gets or sets the table border.

setBordersIncluded

public final void setBordersIncluded(boolean value)

Gets or sets border included in column widhts.

Parameters:

ParameterTypeDescription
valueboolean value

setBroken

public final void setBroken(boolean value)

Gets or sets the table is broken - will be truncated for next page.

Parameters:

ParameterTypeDescription
valueboolean value

setBroken

public final void setBroken(int value)

Gets or sets table vertical broken;

Parameters:

ParameterTypeDescription
valueTableBroken element

setColumnAdjustment

Gets or sets the table column adjustment.

setColumnWidths

Gets the column widths of the table.

setCornerStyle

Gets or sets the styles of the border corners

setDefaultCellBorder

Gets default cell border.

setDefaultCellPadding

Gets or sets the default cell padding.

setDefaultCellTextState

Gets or sets the default cell text state.

setDefaultColumnWidth

Gets or sets default column width.

setLeft

public final void setLeft(float value)

Gets or sets the table left coordinate.

Parameters:

ParameterTypeDescription
valuefloat value

setRepeatingColumnsCount

public final void setRepeatingColumnsCount(int value)

Gets or sets the maximum columns count for table.

Parameters:

ParameterTypeDescription
valueint value

setRepeatingRowsCount

public final void setRepeatingRowsCount(int value)

Gets the first rows count repeated for several pages.

Parameters:

ParameterTypeDescription
valueint value

setRepeatingRowsStyle

Gets the style for repeating rows.

setTop

public final void setTop(float value)

Gets or sets the table top coordinate.

Parameters:

ParameterTypeDescription
valuefloat value