Package com.scroogexhtml.xmldom.table
Class TableSupportBase
java.lang.Object
com.scroogexhtml.xmldom.table.TableSupportBase
- All Implemented Interfaces:
TableWriter
- Direct Known Subclasses:
TableSupport
Provides low level properties and methods for the TableSupport class.
-
Constructor Summary
ConstructorsConstructorDescriptionTableSupportBase(Document document, TablePropConfiguration tablePropConfiguration) Constructs a new TableSupportBase instance with the specified document and table property configuration.TableSupportBase(Document document, TablePropConfiguration tablePropConfiguration, StructureChecker checker) Constructs a new TableSupportBase instance.TableSupportBase(Document document, TablePropConfiguration tablePropConfiguration, StructureChecker checker, OutputBudget budget) Constructs a new TableSupportBase instance. -
Method Summary
Modifier and TypeMethodDescriptionintgetItap()booleanvoidsetBGColor(String paramValue) voidsetBorderColor(String newValue) voidsetBorderStyle(BorderStyle newValue) voidsetBorderWidth(int newValue) voidsetCellBorder(Border paramValue) voidA diagonal cell border (\cldglu,\cldgll) starts.voidsetCellVertAl(ClVertAl clVertAl) voidsetCellX(int twipsValue) voidsetCurrentPageWidth(int printablePageWidth) Sets the current page width.voidvoidsetRowAlignment(Alignment alignment) The alignment of the row on the page (\trql,\trqc,\trqr).voidsetRowBorder(Border paramValue) voidsetRowHeight(int rowHeightInTwips) voidsetTrLeft(int leftMarginTwips) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.scroogexhtml.table.TableWriter
closeNestedTable, closeTable, createAndConfigureTable, isInTableRowDefinition, nestedTableCellEnds, nestedTableRowEnds, setInNestedTableProperties, startTableIfNone, tableCellEnds, tableRowDefaults, tableRowEnds
-
Constructor Details
-
TableSupportBase
Constructs a new TableSupportBase instance with the specified document and table property configuration.- Parameters:
document- The Document object.tablePropConfiguration- The configuration settings for table properties, including details about cell style conversion, width unit, and maximum table width percentage.
-
TableSupportBase
public TableSupportBase(Document document, TablePropConfiguration tablePropConfiguration, StructureChecker checker) Constructs a new TableSupportBase instance.- Parameters:
document- The Document object.tablePropConfiguration- The configuration settings for table properties.checker- The structure checker of the conversion, or null for lenient handling.
-
TableSupportBase
public TableSupportBase(Document document, TablePropConfiguration tablePropConfiguration, StructureChecker checker, OutputBudget budget) Constructs a new TableSupportBase instance.- Parameters:
document- The Document object.tablePropConfiguration- The configuration settings for table properties.checker- The structure checker of the conversion, or null for lenient handling.budget- The output budget of the conversion, or null for no limits.
-
-
Method Details
-
setTrLeft
public void setTrLeft(int leftMarginTwips) - Specified by:
setTrLeftin interfaceTableWriter
-
setRowAlignment
Description copied from interface:TableWriterThe alignment of the row on the page (\trql,\trqc,\trqr). The first row's aligns the table.- Specified by:
setRowAlignmentin interfaceTableWriter- Parameters:
alignment- the row alignment
-
setMergeCellWithPreceding
public void setMergeCellWithPreceding()- Specified by:
setMergeCellWithPrecedingin interfaceTableWriter
-
setBGColor
- Specified by:
setBGColorin interfaceTableWriter
-
setCellVertAl
- Specified by:
setCellVertAlin interfaceTableWriter
-
isInTable
public boolean isInTable()- Specified by:
isInTablein interfaceTableWriter
-
getCurrentTableCell
- Specified by:
getCurrentTableCellin interfaceTableWriter
-
getItap
public int getItap()- Specified by:
getItapin interfaceTableWriter
-
setCellBorder
- Specified by:
setCellBorderin interfaceTableWriter
-
setCellDiagonalBorder
public void setCellDiagonalBorder()Description copied from interface:TableWriterA diagonal cell border (\cldglu,\cldgll) starts. It is not converted: the border properties after it must not change the cell side named before it.- Specified by:
setCellDiagonalBorderin interfaceTableWriter
-
setCellX
public void setCellX(int twipsValue) - Specified by:
setCellXin interfaceTableWriter
-
setRowBorder
- Specified by:
setRowBorderin interfaceTableWriter
-
setRowHeight
public void setRowHeight(int rowHeightInTwips) - Specified by:
setRowHeightin interfaceTableWriter
-
setBorderStyle
- Specified by:
setBorderStylein interfaceTableWriter
-
setBorderColor
- Specified by:
setBorderColorin interfaceTableWriter
-
setBorderWidth
public void setBorderWidth(int newValue) - Specified by:
setBorderWidthin interfaceTableWriter
-
setCurrentPageWidth
public void setCurrentPageWidth(int printablePageWidth) Sets the current page width.- Specified by:
setCurrentPageWidthin interfaceTableWriter- Parameters:
printablePageWidth- the width of the printable page in twips. If this value is less than or equal to zero, the default page width will be used.
-