| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | _externSheetIndex
Extern sheet index of sheet where moving is occurring, used for updating HSSF style 3D references |
| private final int | |
| private final int | |
| private final FormulaShifter. | |
| private final String | _sheetName
Sheet name of the sheet where moving is occurring, used for updating XSSF style 3D references on row shifts. |
| private final int | |
| private final SpreadsheetVersion |
| Access | Constructor and Description |
|---|---|
| private | FormulaShifter(int externSheetIndex, String sheetName, int firstMovedIndex, int lastMovedIndex, int amountToMove, FormulaShifter.
Create an instance for shifting row. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if a change was made to the formula tokens- if necessary, will get modified by this method ptgs, int - the extern sheet index of the sheet that contains the formula being adjusted currentExternSheetIx)
|
| private Ptg | |
| private Ptg | Returns: deleted ref ptg, in-place modified ptg, or null If Ptg would be shifted off the first or last column of a sheet, return deleted ref If Ptg needs to be changed, modifies Ptg in-place If Ptg doesn't need to be changed, returnsnullthe ptg to shift ptg)Call this on any ptg reference contained in a column of cells that was copied. |
| private Ptg | Returns: in-place modified ptg (if column move would cause Ptg to change), deleted ref ptg (if column move causes an error), or null (if no Ptg change is needed)
|
| private Ptg | Returns: deleted ref ptg, in-place modified ptg, or null If Ptg would be shifted off the first or last row or columns of a sheet, return deleted ref If Ptg needs to be changed, modifies Ptg in-place If Ptg doesn't need to be changed, returnsnullthe ptg to shift ptg, boolean isRowCopy)Call this on any ptg reference contained in a row or column of cells that was copied. |
| private Ptg | Returns: in-place modified ptg (if column move would cause Ptg to change), deleted ref ptg (if column move causes an error), or null (if no Ptg change is needed)
|
| private Ptg | Returns: deleted ref ptg, in-place modified ptg, or null If Ptg would be shifted off the first or last row of a sheet, return deleted ref If Ptg needs to be changed, modifies Ptg in-place If Ptg doesn't need to be changed, returnsnullthe ptg to shift ptg)Call this on any ptg reference contained in a row of cells that was copied. |
| private Ptg | Returns: in-place modified ptg (if row move would cause Ptg to change), deleted ref ptg (if row move causes an error), or null (if no Ptg change is needed)
|
| private Ptg | |
| private Ptg | Returns: null, AreaErrPtg, or modified aptgThe Area that is copied aptg)Modifies aptg in-place and return a reference to aptg if the first or last column of
of the Area reference would move due to a column copy operation
Returns |
| private Ptg | Returns: The Ptg reference if the cell would move due to copy, otherwise nullThe REF that is copied rptg)Modifies rptg in-place and return a reference to rptg if the cell reference
would move due to a column copy operation
Returns |
| private Ptg | |
| private Ptg | |
| private static Ptg | |
| public static FormulaShifter | createForColumnCopy(int externSheetIndex, String sheetName, int firstMovedColumnIndex, int lastMovedColumnIndex, int numberOfColumnsToMove, SpreadsheetVersion version)
|
| public static FormulaShifter | createForColumnShift(int externSheetIndex, String sheetName, int firstMovedColumnIndex, int lastMovedColumnIndex, int numberOfColumnsToMove, SpreadsheetVersion version)
|
| public static FormulaShifter | createForRowCopy(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove, SpreadsheetVersion version)
|
| public static FormulaShifter | createForRowShift(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove, SpreadsheetVersion version)
|
| public static FormulaShifter | |
| private Ptg | Returns: null, AreaErrPtg, or modified aptgThe Area that is copied aptg)Modifies aptg in-place and return a reference to aptg if the first or last row of
of the Area reference would move due to a row copy operation
Returns |
| private Ptg | Returns: The Ptg reference if the cell would move due to copy, otherwise nullThe REF that is copied rptg)Modifies rptg in-place and return a reference to rptg if the cell reference
would move due to a row copy operation
Returns |
| private Ptg | |
| private Ptg | |
| public String |
| _amountToMove | back to summary |
|---|---|
| private final int _amountToMove | |
| _dstSheetIndex | back to summary |
|---|---|
| private final int _dstSheetIndex | |
| _externSheetIndex | back to summary |
|---|---|
| private final int _externSheetIndex Extern sheet index of sheet where moving is occurring, used for updating HSSF style 3D references | |
| _firstMovedIndex | back to summary |
|---|---|
| private final int _firstMovedIndex | |
| _lastMovedIndex | back to summary |
|---|---|
| private final int _lastMovedIndex | |
| _mode | back to summary |
|---|---|
| private final FormulaShifter. | |
| _sheetName | back to summary |
|---|---|
| private final String _sheetName Sheet name of the sheet where moving is occurring, used for updating XSSF style 3D references on row shifts. | |
| _srcSheetIndex | back to summary |
|---|---|
| private final int _srcSheetIndex | |
| _version | back to summary |
|---|---|
| private final SpreadsheetVersion _version | |
| FormulaShifter | back to summary |
|---|---|
| private FormulaShifter(int externSheetIndex, String sheetName, int firstMovedIndex, int lastMovedIndex, int amountToMove, FormulaShifter. Create an instance for shifting row.
For example, this will be called on | |
| FormulaShifter | back to summary |
|---|---|
| private FormulaShifter(int srcSheetIndex, int dstSheetIndex) Create an instance for shifting sheets.
For example, this will be called on | |
| adjustFormula | back to summary |
|---|---|
public boolean adjustFormula(Ptg[] ptgs, int currentExternSheetIx)
| |
| adjustPtg | back to summary |
|---|---|
| private Ptg adjustPtg(Ptg ptg, int currentExternSheetIx) | |
| adjustPtgDueToColumnCopy | back to summary |
|---|---|
| private Ptg adjustPtgDueToColumnCopy(Ptg ptg) Call this on any ptg reference contained in a column of cells that was copied. If the ptg reference is relative, the references will be shifted by the distance that the columns were copied. | |
| adjustPtgDueToColumnMove | back to summary |
|---|---|
private Ptg adjustPtgDueToColumnMove(Ptg ptg, int currentExternSheetIx)
| |
| adjustPtgDueToCopy | back to summary |
|---|---|
| private Ptg adjustPtgDueToCopy(Ptg ptg, boolean isRowCopy) Call this on any ptg reference contained in a row or column of cells that was copied. If the ptg reference is relative, the references will be shifted by the distance that the rows or columns were copied. | |
| adjustPtgDueToMove | back to summary |
|---|---|
private Ptg adjustPtgDueToMove(Ptg ptg, int currentExternSheetIx, boolean isRowMove)
| |
| adjustPtgDueToRowCopy | back to summary |
|---|---|
| private Ptg adjustPtgDueToRowCopy(Ptg ptg) Call this on any ptg reference contained in a row of cells that was copied. If the ptg reference is relative, the references will be shifted by the distance that the rows were copied. | |
| adjustPtgDueToRowMove | back to summary |
|---|---|
private Ptg adjustPtgDueToRowMove(Ptg ptg, int currentExternSheetIx)
| |
| adjustPtgDueToSheetMove | back to summary |
|---|---|
| private Ptg adjustPtgDueToSheetMove(Ptg ptg) | |
| columnCopyAreaPtg | back to summary |
|---|---|
| private Ptg columnCopyAreaPtg(AreaPtgBase aptg) Modifies aptg in-place and return a reference to aptg if the first or last column of
of the Area reference would move due to a column copy operation
Returns
| |
| columnCopyRefPtg | back to summary |
|---|---|
| private Ptg columnCopyRefPtg(RefPtgBase rptg) Modifies rptg in-place and return a reference to rptg if the cell reference
would move due to a column copy operation
Returns
| |
| columnMoveAreaPtg | back to summary |
|---|---|
| private Ptg columnMoveAreaPtg(AreaPtgBase aptg) | |
| columnMoveRefPtg | back to summary |
|---|---|
| private Ptg columnMoveRefPtg(RefPtgBase rptg) | |
| createDeletedRef | back to summary |
|---|---|
| private static Ptg createDeletedRef(Ptg ptg) | |
| createForColumnCopy | back to summary |
|---|---|
public static FormulaShifter createForColumnCopy(int externSheetIndex, String sheetName, int firstMovedColumnIndex, int lastMovedColumnIndex, int numberOfColumnsToMove, SpreadsheetVersion version)
| |
| createForColumnShift | back to summary |
|---|---|
public static FormulaShifter createForColumnShift(int externSheetIndex, String sheetName, int firstMovedColumnIndex, int lastMovedColumnIndex, int numberOfColumnsToMove, SpreadsheetVersion version)
| |
| createForRowCopy | back to summary |
|---|---|
| public static FormulaShifter createForRowCopy(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove, SpreadsheetVersion version) | |
| createForRowShift | back to summary |
|---|---|
| public static FormulaShifter createForRowShift(int externSheetIndex, String sheetName, int firstMovedRowIndex, int lastMovedRowIndex, int numberOfRowsToMove, SpreadsheetVersion version) | |
| createForSheetShift | back to summary |
|---|---|
| public static FormulaShifter createForSheetShift(int srcSheetIndex, int dstSheetIndex) | |
| rowCopyAreaPtg | back to summary |
|---|---|
| private Ptg rowCopyAreaPtg(AreaPtgBase aptg) Modifies aptg in-place and return a reference to aptg if the first or last row of
of the Area reference would move due to a row copy operation
Returns
| |
| rowCopyRefPtg | back to summary |
|---|---|
| private Ptg rowCopyRefPtg(RefPtgBase rptg) Modifies rptg in-place and return a reference to rptg if the cell reference
would move due to a row copy operation
Returns
| |
| rowMoveAreaPtg | back to summary |
|---|---|
| private Ptg rowMoveAreaPtg(AreaPtgBase aptg) | |
| rowMoveRefPtg | back to summary |
|---|---|
| private Ptg rowMoveRefPtg(RefPtgBase rptg) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final FormulaShifter. | |
| public static final FormulaShifter. | |
| public static final FormulaShifter. | |
| public static final FormulaShifter. | |
| public static final FormulaShifter. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FormulaShifter. | |
| public static FormulaShifter. |
| ColumnCopy | back to summary |
|---|---|
public static final FormulaShifter.
| |
| ColumnMove | back to summary |
|---|---|
public static final FormulaShifter.
| |
| RowCopy | back to summary |
|---|---|
| public static final FormulaShifter. | |
| RowMove | back to summary |
|---|---|
| public static final FormulaShifter. | |
| SheetMove | back to summary |
|---|---|
| public static final FormulaShifter. | |
| ShiftMode | back to summary |
|---|---|
| private ShiftMode() | |
| valueOf | back to summary |
|---|---|
| public static FormulaShifter. | |
| values | back to summary |
|---|---|
| public static FormulaShifter. | |