public interface SpreadsheetHandler extends GroupingWidget.GroupingHandler
| Modifier and Type | Method and Description |
|---|---|
void |
cellAddedToSelectionAndSelected(int row,
int column)
Single cell added to selection.
|
void |
cellRangePainted(int selectedCellRow,
int selectedCellColumn,
int row1,
int col1,
int row2,
int col2)
Cell range selected by painting
|
void |
cellRangeSelected(int row1,
int col1,
int row2,
int col2)
Cell range selected from scratch.
|
void |
cellsAddedToRangeSelection(int row1,
int col1,
int row2,
int col2)
Multiple cells added to previous range selection.
|
void |
cellSelected(int row,
int column,
boolean oldSelectionRangeDiscarded)
Single cell selected inside sheet.
|
void |
cellValueEdited(int row,
int col,
String value) |
void |
clearSelectedCellsOnCut()
Called after successful cut operation; currently selected cells should be
cleared
|
void |
columnAddedToSelection(int firstRowIndex,
int column)
Complete column added to previous range selection.
|
void |
columnResized(Map<Integer,Integer> newColumnSizes,
int row1,
int col1,
int row2,
int col2)
Columns resized with drag and drop.
|
void |
columnSelected(int column,
int firstRowIndex)
Complete column selected.
|
void |
deleteSelectedCells()
Delete the contents of the selected cells, do not remove
style/formatting.
|
void |
linkCellClicked(int row,
int column)
A cell containing a hyperlink has been clicked.
|
void |
onColumnAutofit(int columnIndex)
Column autofit with double click on the column header resizing area.
|
void |
onPaste(String text)
Client pasted text at current selection.
|
void |
onRedo()
Client pressed redo ctrl/meta+y
|
void |
onRowAutofit(int rowIndex)
Row autofit with double click on the row header resizing area.
|
void |
onSheetScroll(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
These cells have become visible and possibly need the content, if has not
been given previously or has not changed.
|
void |
onUndo()
Client pressed undo ctrl/meta+z
|
void |
protectedCellWriteAttempted()
Client tried to modify protected cell
|
void |
rowAddedToRangeSelection(int row,
int firstColumnIndex)
Complete row added to previous range selection.
|
void |
rowSelected(int row,
int firstColumnIndex)
Complete row selected.
|
void |
rowsResized(Map<Integer,Float> newRowSizes,
int row1,
int col1,
int row2,
int col2)
Rows resized with header drag and drop.
|
void |
selectionDecreasePainted(int row,
int col)
The existing selection has been painted inwards meaning that the painted
selection cells should be cleared.
|
void |
selectionIncreasePainted(int r1,
int c1,
int r2,
int c2)
The new selection that was painted from the old.
|
void |
setCellStyleWidthRatios(HashMap<Integer,Float> cellStyleWidthRatioMap) |
void |
sheetAddressChanged(String value)
Address field value changed.
|
void |
sheetCreated(int scrollLeft,
int scrollTop)
Sheet is created as the last sheet
|
void |
sheetRenamed(int sheetIndex,
String newName) |
void |
sheetSelected(int sheetIndex,
int scrollLeft,
int scrollTop) |
void |
updateCellComment(String text,
int col,
int row) |
levelHeaderClicked, setGroupingCollapsed@Delayed(lastOnly=true)
void onSheetScroll(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
void sheetAddressChanged(String value)
@Delayed
void cellSelected(int row,
int column,
boolean oldSelectionRangeDiscarded)
@Delayed
void cellRangeSelected(int row1,
int col1,
int row2,
int col2)
@Delayed
void cellAddedToSelectionAndSelected(int row,
int column)
@Delayed
void cellsAddedToRangeSelection(int row1,
int col1,
int row2,
int col2)
@Delayed
void rowSelected(int row,
int firstColumnIndex)
row - the row that was selectedfirstColumnIndex - column index for the selected cell (left most visible)@Delayed
void rowAddedToRangeSelection(int row,
int firstColumnIndex)
row - the row that was selectedfirstColumnIndex - column index for the selected cell (left most visible)@Delayed
void columnSelected(int column,
int firstRowIndex)
column - the column that was selectedfirstRowIndex - row index for the selected cell (top most visible)@Delayed
void columnAddedToSelection(int firstRowIndex,
int column)
firstRowIndex - row index for the selected cell (top most)column - the column that was selected@Delayed
void selectionIncreasePainted(int r1,
int c1,
int r2,
int c2)
r1 - new selection top, 1-basedc1 - new selection left, 1-basedr2 - new selection bottom, 1-basedc2 - new selection right, 1-based@Delayed
void selectionDecreasePainted(int row,
int col)
row - topmost cell index where the clearing starts, 1-basedcol - leftmost cell index where the clearing starts, 1-basedvoid cellValueEdited(int row,
int col,
String value)
void sheetSelected(int sheetIndex,
int scrollLeft,
int scrollTop)
sheetIndex - 0-basedscrollTop - scrollLeft - void sheetRenamed(int sheetIndex,
String newName)
sheetIndex - 0-basednewName - void sheetCreated(int scrollLeft,
int scrollTop)
scrollTop - scrollLeft - @Delayed(lastOnly=true)
void cellRangePainted(int selectedCellRow,
int selectedCellColumn,
int row1,
int col1,
int row2,
int col2)
selectedCellRow - selectedCellColumn - row1 - col1 - row2 - col2 - void deleteSelectedCells()
void linkCellClicked(int row,
int column)
row - 1-basedcolumn - 1-basedvoid rowsResized(Map<Integer,Float> newRowSizes, int row1, int col1, int row2, int col2)
newRowSizes - row index and new size (converted pt)row1 - col1 - row2 - col2 - void columnResized(Map<Integer,Integer> newColumnSizes, int row1, int col1, int row2, int col2)
row1 - col1 - row2 - col2 - newColumnSizes - column index and new size (px)void onRowAutofit(int rowIndex)
rowIndex - 1-basedvoid onColumnAutofit(int columnIndex)
columnIndex - 1-basedvoid onUndo()
void onRedo()
void protectedCellWriteAttempted()
void onPaste(String text)
text - void clearSelectedCellsOnCut()
void updateCellComment(String text, int col, int row)
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.