public class CellSelectionShifter extends Object implements Serializable
| Constructor and Description |
|---|
CellSelectionShifter(Spreadsheet spreadsheet)
Creates a new CellShifter and ties it to the given Spreadsheet
|
| Modifier and Type | Method and Description |
|---|---|
void |
onSelectionDecreasePainted(int r,
int c)
This method will be called when the user does a "shift" that decreases
the amount of selected cells.
|
void |
onSelectionIncreasePainted(int r1,
int c1,
int r2,
int c2)
This method will be called when the user does a "shift" that increases
the amount of selected cells.
|
protected void |
shiftCellValue(org.apache.poi.ss.usermodel.Cell shiftedCell,
org.apache.poi.ss.usermodel.Cell newCell,
boolean removeShifted,
Double sequenceIncrement)
"Shifts" cell value.
|
public CellSelectionShifter(Spreadsheet spreadsheet)
spreadsheet - Target Spreadsheetpublic void onSelectionIncreasePainted(int r1,
int c1,
int r2,
int c2)
r1 - Index of the starting row, 1-basedc1 - Index of the starting column, 1-basedr2 - Index of the ending row, 1-basedc2 - Index of the ending column, 1-basedprotected void shiftCellValue(org.apache.poi.ss.usermodel.Cell shiftedCell,
org.apache.poi.ss.usermodel.Cell newCell,
boolean removeShifted,
Double sequenceIncrement)
shiftedCell - Source cellnewCell - Resulting new cellremoveShifted - true to remove the source cell at the endsequenceIncrement - increment added to shifted cell valuepublic void onSelectionDecreasePainted(int r,
int c)
r - Row index of the new last selected row, 1-basedc - Column index of the new last selected column, 1-basedCopyright © 2013–2026 Vaadin Ltd. All rights reserved.