Class EmptyGridUnit


  • public class EmptyGridUnit
    extends GridUnit
    GridUnit subclass for empty grid units.
    • Constructor Detail

      • EmptyGridUnit

        EmptyGridUnit​(Table table,
                      TableRow row,
                      int colIndex)
        Parameters:
        table - the containing table
        row - the table-row element this grid unit belongs to (if any)
        colIndex - column index, 0-based
    • Method Detail

      • setBordersFromCell

        protected void setBordersFromCell()
        Prepares the borders of this grid unit for upcoming resolution, in the collapsing model.
        Overrides:
        setBordersFromCell in class GridUnit
      • getPrimary

        public PrimaryGridUnit getPrimary()
        Returns the before-start grid unit of the cell containing this grid unit.
        Overrides:
        getPrimary in class GridUnit
        Returns:
        the before-start grid unit of the cell containing this grid unit.
      • isPrimary

        public boolean isPrimary()
        Is this grid unit the before-start grid unit of the cell?
        Overrides:
        isPrimary in class GridUnit
        Returns:
        true if this grid unit is the before-start grid unit of the cell
      • isLastGridUnitColSpan

        public boolean isLastGridUnitColSpan()
        Overrides:
        isLastGridUnitColSpan in class GridUnit
        Returns:
        true if the grid unit is the last in column spanning direction
      • isLastGridUnitRowSpan

        public boolean isLastGridUnitRowSpan()
        Overrides:
        isLastGridUnitRowSpan in class GridUnit
        Returns:
        true if the grid unit is the last in row spanning direction