Class TableCellContainer

All Implemented Interfaces:
Cloneable, Constants, ColumnNumberManagerHolder, CommonAccessibilityHolder
Direct Known Subclasses:
TablePart, TableRow

public abstract class TableCellContainer extends TableFObj implements ColumnNumberManagerHolder, CommonAccessibilityHolder
A common class for fo:table-body and fo:table-row which both can contain fo:table-cell.
  • Field Details

    • commonAccessibility

      private CommonAccessibility commonAccessibility
    • pendingSpans

      protected List pendingSpans
      list of pending spans
    • columnNumberManager

      protected ColumnNumberManager columnNumberManager
      column number manager
  • Constructor Details

    • TableCellContainer

      public TableCellContainer(FONode parent)
      Construct table cell container.
      Parameters:
      parent - the parent node of the cell container
  • Method Details

    • bind

      public void bind(PropertyList pList) throws FOPException
      Description copied from class: TableFObj
      Bind property values from the property list to the FO node. Must be overridden in all FObj subclasses that have properties applying to it.
      Overrides:
      bind in class TableFObj
      Parameters:
      pList - the PropertyList where the properties can be found.
      Throws:
      FOPException - if there is a problem binding the values
    • addTableCellChild

      protected void addTableCellChild(TableCell cell, boolean firstRow) throws FOPException
      Add cell to current row.
      Parameters:
      cell - a table cell to add
      firstRow - true is first row
      Throws:
      FOPException - if exception occurs
    • handleCellWidth

      private void handleCellWidth(TableCell cell, int colNumber, int colSpan) throws FOPException
      Throws:
      FOPException
    • getTablePart

      abstract TablePart getTablePart()
      Returns the enclosing table-header/footer/body of this container.
      Returns:
      this for TablePart, or the parent element for TableRow
    • getColumnNumberManager

      public ColumnNumberManager getColumnNumberManager()
      Returns the encapsulated ColumnNumberManage instance.
      Specified by:
      getColumnNumberManager in interface ColumnNumberManagerHolder
      Returns:
      a ColumnNumberManager instance
    • getCommonAccessibility

      public CommonAccessibility getCommonAccessibility()
      Returns the accessibility properties.
      Specified by:
      getCommonAccessibility in interface CommonAccessibilityHolder
      Returns:
      the accessibility properties