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
| Constructor | Description |
|---|---|
| TableElement | constructor for internal usage only |
Methods
| Method | Description |
|---|---|
| adjustPosition | Adjust position. |
| createTBody | Creates {@link TableTHeadElement} and added it to current table. |
| createTFoot | Creates {@link TableTFootElement} and added it to current table. |
| createTHead | Creates {@link TableTHeadElement} and added it to current table. |
| getAlignment | Gets or sets the table alignment. |
| getBackgroundColor | Gets or sets the table background color. |
| getBorder | Gets or sets the table border. |
| getBroken | Gets or sets table vertical broken; |
| getColumnAdjustment | Gets or sets the table column adjustment. |
| getColumnWidths | Gets the column widths of the table. |
| getCornerStyle | Gets or sets the styles of the border corners |
| getDefaultCellBorder | Gets default cell border. |
| getDefaultCellPadding | Gets or sets the default cell padding. |
| getDefaultCellTextState | Gets or sets the default cell text state. |
| getDefaultColumnWidth | Gets or sets default column width. |
| getLeft | Gets or sets the table left coordinate. |
| getRepeatingColumnsCount | Gets or sets the maximum columns count for table. |
| getRepeatingRowsCount | Gets the first rows count repeated for several pages. |
| getRepeatingRowsStyle | Gets the style for repeating rows. |
| getTable | |
| getTop | Gets or sets the table top coordinate. |
| isBordersIncluded | Gets or sets border included in column widhts. |
| isBroken | Gets or sets the table is broken - will be truncated for next page. |
| preSave | |
| setAlignment | Gets or sets the table alignment. |
| setBackgroundColor | Gets or sets the table background color. |
| setBorder | Gets or sets the table border. |
| setBordersIncluded | Gets or sets border included in column widhts. |
| setBroken | Gets or sets the table is broken - will be truncated for next page. |
| setBroken | Gets or sets table vertical broken; |
| 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 | Gets or sets the table left coordinate. |
| setRepeatingColumnsCount | Gets or sets the maximum columns count for table. |
| setRepeatingRowsCount | Gets the first rows count repeated for several pages. |
| setRepeatingRowsStyle | Gets the style for repeating rows. |
| setTop | Gets 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:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setBroken
public final void setBroken(boolean value)
Gets or sets the table is broken - will be truncated for next page.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean value |
setBroken
public final void setBroken(int value)
Gets or sets table vertical broken;
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | TableBroken 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:
| Parameter | Type | Description |
|---|---|---|
| value | float value |
setRepeatingColumnsCount
public final void setRepeatingColumnsCount(int value)
Gets or sets the maximum columns count for table.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |
setRepeatingRowsCount
public final void setRepeatingRowsCount(int value)
Gets the first rows count repeated for several pages.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int value |
setRepeatingRowsStyle
Gets the style for repeating rows.
setTop
public final void setTop(float value)
Gets or sets the table top coordinate.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | float value |