Package com.scroogexhtml.configuration
Class TablePropConfiguration
java.lang.Object
com.scroogexhtml.configuration.TablePropConfiguration
- All Implemented Interfaces:
Serializable
Represents the configuration for table properties during conversion.
This class provides various settings that control how table elements
such as cell styles, nested tables, and dimensions are handled during
conversion. The object can be serialized for storage or transmission.
It includes experimental features for converting cell styles and
nested tables, which may not cover all possible styles or configurations.
The class also allows specifying the unit of measurement for table
and column widths and the maximum table width as a percentage.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Retrieves the unit used for table and column widths in the configuration.boolean
Determines whether the conversion of table cell styles is enabled.boolean
void
setConvertCellStyles
(boolean newValue) Sets the property to convert table cell styles.void
setConvertNestedTables
(boolean newValue) Sets the property to convert nested tables.void
setMaxTableWidthPercent
(int newValue) Sets the maximum table width percentage.void
setTableWidthUnit
(LengthUnit tableWidthUnit) Sets the unit for specifying the table and column widths in the configuration.
-
Constructor Details
-
TablePropConfiguration
public TablePropConfiguration()
-
-
Method Details
-
isConvertCellStyles
public boolean isConvertCellStyles()Determines whether the conversion of table cell styles is enabled.- Returns:
- true if table cell styles should be converted to CSS, false otherwise.
-
setConvertCellStyles
public void setConvertCellStyles(boolean newValue) Sets the property to convert table cell styles.This method sets the experimental property 'ConvertCellStyles' to the specified value. When this property is set to true, the converter will convert table cell styles to CSS.
- Parameters:
newValue
- the new value to set for the 'ConvertCellStyles' property
-
getMaxTableWidthPercent
public int getMaxTableWidthPercent()- Returns:
- the maximum table width percentage.
-
setMaxTableWidthPercent
public void setMaxTableWidthPercent(int newValue) Sets the maximum table width percentage.This method sets the property 'MaxTableWidthPercent' to the specified value. When this property is set, the converter limits the maximum width of the table to the specified percentage.
- Parameters:
newValue
- the new value to set for the 'MaxTableWidthPercent' property
-
isConvertNestedTables
public boolean isConvertNestedTables()- Returns:
- true if nested tables should be converted, false otherwise
-
setConvertNestedTables
public void setConvertNestedTables(boolean newValue) Sets the property to convert nested tables.This method sets the experimental property 'ConvertNestedTables' to the specified value. When this property is set to true, the converter will convert nested tables.
- Parameters:
newValue
- the new value to set for the 'ConvertNestedTables' property
-
getTableWidthUnit
Retrieves the unit used for table and column widths in the configuration.- Returns:
- the unit used for table and column widths.
-
setTableWidthUnit
Sets the unit for specifying the table and column widths in the configuration.- Parameters:
tableWidthUnit
- the new unit to set for table and column widths.
-