Class HSSFRowShifter
java.lang.Object
org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
org.apache.poi.ss.usermodel.helpers.RowShifter
org.apache.poi.hssf.usermodel.helpers.HSSFRowShifter
Helper for shifting rows up or down
-
Field Summary
Fields inherited from class org.apache.poi.ss.usermodel.helpers.RowShifter
sheet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidshiftDrawingAnchors(int startRow, int endRow, int n) Shift the anchors of the shapes (pictures, charts, ...) in the sheet's drawing along with the rows they are anchored to.voidupdateConditionalFormatting(FormulaShifter formulaShifter) Update conditional formattingvoidupdateFormulas(FormulaShifter formulaShifter) Update formulas.voidupdateHyperlinks(FormulaShifter formulaShifter) 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).voidupdateNamedRanges(FormulaShifter formulaShifter) Update named rangesvoidupdateRowFormulas(HSSFRow row, FormulaShifter formulaShifter) Update the formulas in specified row using the formula shifting policy specified by shifterMethods inherited from class org.apache.poi.ss.usermodel.helpers.RowShifter
shiftMergedRegions, validateShiftLeftParameters, validateShiftParametersMethods inherited from class org.apache.poi.ss.usermodel.helpers.BaseRowColShifter
shiftRange
-
Constructor Details
-
HSSFRowShifter
-
-
Method Details
-
updateNamedRanges
Description copied from class:BaseRowColShifterUpdate named ranges- Specified by:
updateNamedRangesin classBaseRowColShifter
-
updateFormulas
Description copied from class:BaseRowColShifterUpdate formulas.- Specified by:
updateFormulasin classBaseRowColShifter
-
updateConditionalFormatting
Description copied from class:BaseRowColShifterUpdate conditional formatting- Specified by:
updateConditionalFormattingin classBaseRowColShifter- Parameters:
formulaShifter- TheFormulaShifterto use
-
updateHyperlinks
Description copied from class:BaseRowColShifterShift 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:
updateHyperlinksin classBaseRowColShifter- Parameters:
formulaShifter- the formula shifting policy
-
updateRowFormulas
Update the formulas in specified row using the formula shifting policy specified by shifter- Parameters:
row- the row to update the formulas onformulaShifter- the formula shifting policy
-
shiftDrawingAnchors
public void shiftDrawingAnchors(int startRow, int endRow, int n) Shift the anchors of the shapes (pictures, charts, ...) 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. Comments are not moved by this method.- Parameters:
startRow- the row to start shiftingendRow- the row to end shiftingn- the number of rows to shift- Since:
- 6.0.0
-