Class CollapsingBorderResolver.Resolver

    • Constructor Detail

      • Resolver

        private Resolver()
    • Method Detail

      • resolveBordersFirstRowInTable

        void resolveBordersFirstRowInTable​(java.util.List<GridUnit> row,
                                           boolean withNormal,
                                           boolean withLeadingTrailing,
                                           boolean withRest)
        Integrates border-before specified on the table and its column.
        Parameters:
        row - the first row of the table (in the header, or in the body if the table has no header)
        withNormal -
        withLeadingTrailing -
        withRest -
      • resolveBordersBetweenRows

        void resolveBordersBetweenRows​(java.util.List<GridUnit> rowBefore,
                                       java.util.List<GridUnit> rowAfter)
        Resolves border-after for the first row, border-before for the second one.
        Parameters:
        rowBefore -
        rowAfter -
      • resolveBordersLastRowInPart

        void resolveBordersLastRowInPart​(java.util.List<GridUnit> row,
                                         boolean withNormal,
                                         boolean withLeadingTrailing,
                                         boolean withRest)
        Integrates the border-after of the part.
      • resolveBordersLastRowInTable

        void resolveBordersLastRowInTable​(java.util.List<GridUnit> row,
                                          boolean withNormal,
                                          boolean withLeadingTrailing,
                                          boolean withRest)
        Integrates border-after specified on the table and its columns.
        Parameters:
        row - the last row of the footer, or of the last body if the table has no footer
        withNormal -
        withLeadingTrailing -
        withRest -
      • integrateLeadingBorders

        void integrateLeadingBorders​(java.util.List<GridUnit> row)
        Integrates either border-before specified on the table and its columns if the table has no header, or border-after specified on the cells of the header's last row. For the case the grid unit are at the top of a page.
        Parameters:
        row -
      • integrateTrailingBorders

        void integrateTrailingBorders​(java.util.List<GridUnit> row)
        Integrates either border-after specified on the table and its columns if the table has no footer, or border-before specified on the cells of the footer's first row. For the case the grid unit are at the bottom of a page.
        Parameters:
        row -
      • startPart

        void startPart​(TablePart part)
      • endRow

        void endRow​(java.util.List<GridUnit> row,
                    TableCellContainer container)
        Resolves the applicable borders for the given row.
        • Integrates the border-before/after of the containing table-row if any;
        • Integrates the border-before of the containing part, if first row;
        • Resolves border-start/end between grid units.
        Parameters:
        row - the row being finished
        container - the containing element
      • endPart

        void endPart()
      • endTable

        abstract void endTable()