Class TableSupportBase

java.lang.Object
com.scroogexhtml.xmldom.table.TableSupportBase
All Implemented Interfaces:
TableWriter
Direct Known Subclasses:
TableSupport

public abstract class TableSupportBase extends Object implements TableWriter
Provides low level properties and methods for the TableSupport class.
  • Constructor Details

    • TableSupportBase

      public TableSupportBase(Document document, TablePropConfiguration tablePropConfiguration)
      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:
      setTrLeft in interface TableWriter
    • setRowAlignment

      public void setRowAlignment(Alignment alignment)
      Description copied from interface: TableWriter
      The alignment of the row on the page (\trql, \trqc, \trqr). The first row's aligns the table.
      Specified by:
      setRowAlignment in interface TableWriter
      Parameters:
      alignment - the row alignment
    • setMergeCellWithPreceding

      public void setMergeCellWithPreceding()
      Specified by:
      setMergeCellWithPreceding in interface TableWriter
    • setBGColor

      public void setBGColor(String paramValue)
      Specified by:
      setBGColor in interface TableWriter
    • setCellVertAl

      public void setCellVertAl(ClVertAl clVertAl)
      Specified by:
      setCellVertAl in interface TableWriter
    • isInTable

      public boolean isInTable()
      Specified by:
      isInTable in interface TableWriter
    • getCurrentTableCell

      public Element getCurrentTableCell()
      Specified by:
      getCurrentTableCell in interface TableWriter
    • getItap

      public int getItap()
      Specified by:
      getItap in interface TableWriter
    • setCellBorder

      public void setCellBorder(Border paramValue)
      Specified by:
      setCellBorder in interface TableWriter
    • setCellDiagonalBorder

      public void setCellDiagonalBorder()
      Description copied from interface: TableWriter
      A 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:
      setCellDiagonalBorder in interface TableWriter
    • setCellX

      public void setCellX(int twipsValue)
      Specified by:
      setCellX in interface TableWriter
    • setRowBorder

      public void setRowBorder(Border paramValue)
      Specified by:
      setRowBorder in interface TableWriter
    • setRowHeight

      public void setRowHeight(int rowHeightInTwips)
      Specified by:
      setRowHeight in interface TableWriter
    • setBorderStyle

      public void setBorderStyle(BorderStyle newValue)
      Specified by:
      setBorderStyle in interface TableWriter
    • setBorderColor

      public void setBorderColor(String newValue)
      Specified by:
      setBorderColor in interface TableWriter
    • setBorderWidth

      public void setBorderWidth(int newValue)
      Specified by:
      setBorderWidth in interface TableWriter
    • setCurrentPageWidth

      public void setCurrentPageWidth(int printablePageWidth)
      Sets the current page width.
      Specified by:
      setCurrentPageWidth in interface TableWriter
      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.