org.apache.poi.ss.formula
Class FormulaShifter
- java.lang.Object
-
- org.apache.poi.ss.formula.FormulaShifter
-
public final class FormulaShifter extends java.lang.ObjectUpdates Formulas as rows or sheets are shifted
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanadjustFormula(Ptg[] ptgs, int currentExternSheetIx)static FormulaShiftercreateForRowShift(int externSheetIndex, java.lang.String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove)static FormulaShiftercreateForSheetShift(int srcSheetIndex, int dstSheetIndex)java.lang.StringtoString()
-
-
-
Method Detail
-
createForRowShift
public static FormulaShifter createForRowShift(int externSheetIndex, java.lang.String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove)
-
createForSheetShift
public static FormulaShifter createForSheetShift(int srcSheetIndex, int dstSheetIndex)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
adjustFormula
public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx)
- Parameters:
ptgs- - if necessary, will get modified by this methodcurrentExternSheetIx- - the extern sheet index of the sheet that contains the formula being adjusted- Returns:
trueif a change was made to the formula tokens
-
-
DataMelt 3.0 © DataMelt by jWork.ORG