|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.ss.usermodel.helpers.RowShifter
public abstract class RowShifter
Helper for shifting rows up or down This abstract class exists to consolidate duplicated code between XSSFRowShifter and HSSFRowShifter (currently methods sprinkled throughout HSSFSheet)
Field Summary | |
---|---|
protected Sheet |
sheet
|
Constructor Summary | |
---|---|
RowShifter(Sheet sh)
|
Method Summary | |
---|---|
java.util.List<CellRangeAddress> |
shiftMergedRegions(int startRow,
int endRow,
int n)
Shifts, grows, or shrinks the merged regions due to a row shift. |
abstract void |
updateConditionalFormatting(FormulaShifter shifter)
|
abstract void |
updateFormulas(FormulaShifter shifter)
Update formulas. |
abstract void |
updateHyperlinks(FormulaShifter shifter)
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). |
abstract void |
updateNamedRanges(FormulaShifter shifter)
Updated named ranges |
abstract void |
updateRowFormulas(Row row,
FormulaShifter shifter)
Update the formulas in specified row using the formula shifting policy specified by shifter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Sheet sheet
Constructor Detail |
---|
public RowShifter(Sheet sh)
Method Detail |
---|
public java.util.List<CellRangeAddress> shiftMergedRegions(int startRow, int endRow, int n)
startRow
- the row to start shiftingendRow
- the row to end shiftingn
- the number of rows to shift
public abstract void updateNamedRanges(FormulaShifter shifter)
public abstract void updateFormulas(FormulaShifter shifter)
@Internal public abstract void updateRowFormulas(Row row, FormulaShifter shifter)
row
- the row to update the formulas onshifter
- the formula shifting policypublic abstract void updateConditionalFormatting(FormulaShifter shifter)
public abstract void updateHyperlinks(FormulaShifter shifter)
shifter
- the formula shifting policy
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |