Package com.scroogexhtml.xmldom.table
Class TableCssBuilder
java.lang.Object
com.scroogexhtml.xmldom.table.TableCssBuilder
CSS builder for table cell style.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetCellStyle(Element td, CellDef cd) Sets the style properties of a table cell based on the provided cell definition.static voidsetCellStyle(Element td, CellDef cd, boolean convertCellStyles) Sets the style properties of a table cell based on the provided cell definition.
-
Method Details
-
setCellStyle
Sets the style properties of a table cell based on the provided cell definition. The style includes the background color and vertical alignment as specified in the CellDef object.- Parameters:
td- the Element representing the table cell to which styles are appliedcd- the CellDef object containing the style properties for the table cell- See Also:
-
setCellStyle
Sets the style properties of a table cell based on the provided cell definition.With
convertCellStyles, a top-aligned cell (\clvertalt, or no\clvertal*, the RTF default) also getsvertical-align:top, because the HTML default ismiddle.- Parameters:
td- the Element representing the table cell to which styles are appliedcd- the CellDef object containing the style properties for the table cellconvertCellStyles- true if cell styles are converted
-