Class XSSFRowShifter


public final class XSSFRowShifter extends RowShifter
Helper for shifting rows up or down
  • Constructor Details

    • XSSFRowShifter

      public XSSFRowShifter(XSSFSheet sh)
  • Method Details

    • updateNamedRanges

      public void updateNamedRanges(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Update named ranges
      Specified by:
      updateNamedRanges in class BaseRowColShifter
    • updateFormulas

      public void updateFormulas(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Update formulas.
      Specified by:
      updateFormulas in class BaseRowColShifter
    • updateRowFormulas

      @Internal(since="3.15 beta 2") public void updateRowFormulas(XSSFRow row, FormulaShifter formulaShifter)
      Update the formulas in specified row using the formula shifting policy specified by shifter
      Parameters:
      row - the row to update the formulas on
      formulaShifter - the formula shifting policy
    • updateConditionalFormatting

      public void updateConditionalFormatting(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Update conditional formatting
      Specified by:
      updateConditionalFormatting in class BaseRowColShifter
      Parameters:
      formulaShifter - The FormulaShifter to use
    • updateHyperlinks

      public void updateHyperlinks(FormulaShifter formulaShifter)
      Description copied from class: BaseRowColShifter
      Shift the Hyperlink anchors (not the hyperlink text, even if the hyperlink is of type LINK_DOCUMENT and refers to a cell that was shifted). Hyperlinks do not track the content they point to.
      Specified by:
      updateHyperlinks in class BaseRowColShifter
      Parameters:
      formulaShifter - the formula shifting policy
    • shiftDrawingAnchors

      public void shiftDrawingAnchors(int startRow, int endRow, int n)
      Shift the anchors of the shapes (charts, pictures, ...) in the sheet's drawing along with the rows they are anchored to. A shape is moved when its top-left anchor row is within [startRow, endRow]; the whole shape is moved so it keeps its size. Shapes with an absolute anchor are not moved.
      Parameters:
      startRow - the row to start shifting
      endRow - the row to end shifting
      n - the number of rows to shift
      Since:
      6.0.0