Class TableSectionBox

All Implemented Interfaces:
InlinePaintable, Styleable, DisplayListItem

public class TableSectionBox extends BlockBox
  • Field Details

    • _grid

      private final List<RowData> _grid
    • _needCellWidthCalc

      private boolean _needCellWidthCalc
    • _needCellRecalc

      private boolean _needCellRecalc
    • _header

      private boolean _header
    • _capturedOriginalAbsY

      private boolean _capturedOriginalAbsY
    • _originalAbsY

      private int _originalAbsY
  • Constructor Details

    • TableSectionBox

      public TableSectionBox()
  • Method Details

    • copyOf

      public BlockBox copyOf()
      Overrides:
      copyOf in class BlockBox
    • getGrid

      public List<RowData> getGrid()
    • extendGridToColumnCount

      public void extendGridToColumnCount(int columnCount)
    • splitColumn

      public void splitColumn(int pos)
    • recalcCells

      public void recalcCells(LayoutContext c)
    • calcBorders

      public void calcBorders(LayoutContext c)
    • cellAt

      public TableCellBox cellAt(int row, int col)
    • setCellAt

      private void setCellAt(int row, int col, TableCellBox cell)
    • ensureRows

      private void ensureRows(int numRows)
    • getTable

      public TableBox getTable()
    • layoutChildren

      protected void layoutChildren(LayoutContext c, int contentStart)
      Overrides:
      layoutChildren in class BlockBox
    • addCell

      private void addCell(TableRowBox row, TableCellBox cell, int cRow)
    • reset

      public void reset(LayoutContext c)
      Description copied from class: Box
      Responsible for resetting the state of the box before a repeat call to BlockBox.layout(LayoutContext) or other layout methods.

      Any layout operation that is not idempotent MUST be reset in this method. Layout may be called several times on the one box.
      Overrides:
      reset in class BlockBox
    • setCellWidths

      void setCellWidths(LayoutContext c)
    • isAutoHeight

      public boolean isAutoHeight()
      Overrides:
      isAutoHeight in class BlockBox
    • numRows

      public int numRows()
    • isSkipWhenCollapsingMargins

      protected boolean isSkipWhenCollapsingMargins()
      Overrides:
      isSkipWhenCollapsingMargins in class BlockBox
    • paintBorder

      public void paintBorder(RenderingContext c)
      Overrides:
      paintBorder in class Box
    • paintBackground

      public void paintBackground(RenderingContext c)
      Overrides:
      paintBackground in class Box
    • getLastRow

      public TableRowBox getLastRow()
    • isNeedCellWidthCalc

      boolean isNeedCellWidthCalc()
    • setNeedCellWidthCalc

      void setNeedCellWidthCalc(boolean needCellWidthCalc)
    • isNeedCellRecalc

      private boolean isNeedCellRecalc()
    • setNeedCellRecalc

      private void setNeedCellRecalc(boolean needCellRecalc)
    • layout

      public void layout(LayoutContext c, int contentStart)
      Overrides:
      layout in class BlockBox
    • isFooter

      public boolean isFooter()
    • setFooter

      public void setFooter(boolean footer)
    • isHeader

      public boolean isHeader()
    • setHeader

      public void setHeader(boolean header)
    • isCapturedOriginalAbsY

      public boolean isCapturedOriginalAbsY()
    • setCapturedOriginalAbsY

      public void setCapturedOriginalAbsY(boolean capturedOriginalAbsY)
    • getOriginalAbsY

      public int getOriginalAbsY()
    • setOriginalAbsY

      public void setOriginalAbsY(int originalAbsY)