Package com.scroogexhtml.xmldom.table
Class TableSupport
java.lang.Object
com.scroogexhtml.xmldom.table.TableSupportBase
com.scroogexhtml.xmldom.table.TableSupport
- All Implemented Interfaces:
TableWriter
TableSupport is used to build the DOM which represents an RTF table.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTableSupport
(Document document, TablePropConfiguration tablePropConfiguration) Constructs an instance of TableSupport with the specified document and table property configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
createAndConfigureTable
(Element parentForNestedTable) Creates and configures a new table within the current document context.boolean
void
void
void
void
Called when \trowd was detected.void
Methods inherited from class com.scroogexhtml.xmldom.table.TableSupportBase
getCurrentTableCell, getItap, isInTable, setBGColor, setBorderColor, setBorderStyle, setBorderWidth, setCellBorder, setCellVertAl, setCellX, setCurrentPageWidth, setMergeCellWithPreceding, setRowBorder, setRowHeight, setTrLeft
-
Field Details
-
DEFAULT_PAGE_WIDTH
public static final int DEFAULT_PAGE_WIDTH- See Also:
-
-
Constructor Details
-
TableSupport
Constructs an instance of TableSupport with the specified document and table property configuration.- Parameters:
document
- the document to be used for table support operations.tablePropConfiguration
- the configuration for table properties, determining how the table will be rendered and converted.
-
-
Method Details
-
isInTableRowDefinition
public boolean isInTableRowDefinition() -
tableRowDefaults
public void tableRowDefaults()Called when \trowd was detected. "A table row is a contiguous series of paragraphs partitioned into cells. The table row begins with the \trowd control word and ends with the \row control word."Note that for nested cells, Word 2002, Word 2003, and Word 2007 write the properties at the end only.
-
createAndConfigureTable
Creates and configures a new table within the current document context. If a parent element for a nested table is provided, the table will be nested accordingly, adjusting its parent cell and ensuring the hierarchical structure is maintained. This method initializes the table with default settings, allowing for further customization.- Parameters:
parentForNestedTable
- the parent element to nest this table under, allowing for hierarchical table structures, or null if the table is not nested.
-
tableRowEnds
public void tableRowEnds() -
closeTable
-
closeNestedTable
public void closeNestedTable() -
tableCellEnds
public void tableCellEnds() -
nestedTableCellEnds
public void nestedTableCellEnds() -
nestedTableRowEnds
public void nestedTableRowEnds()
-