public class SelectionHandler extends Object
| Constructor and Description |
|---|
SelectionHandler(SpreadsheetWidget spreadsheet,
SheetWidget widget) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNewSelectionInMergedRegion(int col,
int row)
Same as
checkSelectionInMergedRegion(int, int), but discards old
selection in favor of the given cell. |
protected void |
checkSelectionInMergedRegion(int col,
int row)
Same as
checkNewSelectionInMergedRegion(int, int), but retains
old selection in addition to the new cell. |
void |
clearBeforeMergeCells() |
protected MergedRegion |
findDecreasingSelection(int topRow,
int bottomRow,
int leftColumn,
int rightColumn)
Goes through the given selection and checks that the cells on the edges
of the selection are not in "the beginning / middle / end" of a merged
cell.
|
void |
increaseHorizontalSelection(boolean right) |
void |
increaseVerticalSelection(boolean down) |
void |
moveSelectionDown(boolean discardSelection) |
void |
moveSelectionLeft(boolean discardSelection) |
void |
moveSelectionRight(boolean discardSelection) |
void |
moveSelectionUp(boolean discardSelection) |
void |
newSelectedCellSet() |
protected void |
onCellSelectedWithKeyboard(int column,
int row,
String value,
MergedRegion region) |
void |
selectCell(String name,
int col,
int row,
String value,
boolean formula,
boolean locked,
boolean initialSelection) |
void |
selectCellRange(String name,
int selectedCellColumn,
int selectedCellRow,
int firstColumn,
int lastColumn,
int firstRow,
int lastRow,
boolean scroll) |
void |
setColBeforeMergedCell(int c) |
void |
setRowBeforeMergedCell(int r) |
public SelectionHandler(SpreadsheetWidget spreadsheet, SheetWidget widget)
public void moveSelectionDown(boolean discardSelection)
public void selectCellRange(String name, int selectedCellColumn, int selectedCellRow, int firstColumn, int lastColumn, int firstRow, int lastRow, boolean scroll)
public void selectCell(String name, int col, int row, String value, boolean formula, boolean locked, boolean initialSelection)
public void newSelectedCellSet()
public void moveSelectionUp(boolean discardSelection)
protected void onCellSelectedWithKeyboard(int column,
int row,
String value,
MergedRegion region)
public void increaseHorizontalSelection(boolean right)
protected MergedRegion findDecreasingSelection(int topRow, int bottomRow, int leftColumn, int rightColumn)
topRow - bottomRow - leftColumn - rightColumn - public void increaseVerticalSelection(boolean down)
public void moveSelectionRight(boolean discardSelection)
public void moveSelectionLeft(boolean discardSelection)
protected void checkNewSelectionInMergedRegion(int col,
int row)
checkSelectionInMergedRegion(int, int), but discards old
selection in favor of the given cell.col - row - protected void checkSelectionInMergedRegion(int col,
int row)
checkNewSelectionInMergedRegion(int, int), but retains
old selection in addition to the new cell.public void clearBeforeMergeCells()
public void setColBeforeMergedCell(int c)
public void setRowBeforeMergedCell(int r)
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.