Class TableSectionBox

All Implemented Interfaces:
InlinePaintable, Styleable

public class TableSectionBox extends BlockBox
  • Field Details

    • _grid

      private 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()
    • setGrid

      public void setGrid(List<RowData> grid)
    • 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

      private TableBox getTable()
    • layoutChildren

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

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

      public void reset(LayoutContext c)
      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)