public class SpreadsheetHandlerImpl extends Object implements SpreadsheetServerRpc
| Constructor and Description |
|---|
SpreadsheetHandlerImpl(Spreadsheet spreadsheet) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionOnColumnHeader(String actionKey)
The action was selected from context menu for the column header.
|
void |
actionOnCurrentSelection(String actionKey)
The action was selected from context menu for the current selection.
|
void |
actionOnRowHeader(String actionKey)
The action was selected from context menu for the row header.
|
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 discardOldRangeSelection)
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 |
columnHeaderContextMenuOpen(int columnIndex)
Context menu should be created for the column.
|
void |
columnResized(Map<Integer,Integer> newColumnSizes,
int row1,
int col1,
int row2,
int col2)
Columns resized with drag and drop.
|
void |
columnSelected(int col,
int firstRowIndex)
Complete column selected.
|
void |
contextMenuOpenOnSelection(int row,
int column)
Context menu should be created for the appropriate selection.
|
void |
deleteSelectedCells()
Delete the contents of the selected cells, do not remove
style/formatting.
|
void |
levelHeaderClicked(boolean isCols,
int level) |
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 |
onConnectorInit()
Called when the client side connector has been initialized.
|
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 |
rowHeaderContextMenuOpen(int rowIndex)
Context menu should be created for the row.
|
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 r,
int c)
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 |
setGroupingCollapsed(boolean isCols,
int colIndex,
boolean collapsed) |
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 sheetName) |
void |
sheetSelected(int tabIndex,
int scrollLeft,
int scrollTop) |
void |
updateCellComment(String text,
int col,
int row) |
public SpreadsheetHandlerImpl(Spreadsheet spreadsheet)
public void onSheetScroll(int firstRow,
int firstColumn,
int lastRow,
int lastColumn)
SpreadsheetHandleronSheetScroll in interface SpreadsheetHandlerpublic void cellSelected(int row,
int column,
boolean discardOldRangeSelection)
SpreadsheetHandlercellSelected in interface SpreadsheetHandlerpublic void sheetAddressChanged(String value)
SpreadsheetHandlersheetAddressChanged in interface SpreadsheetHandlerpublic void cellRangeSelected(int row1,
int col1,
int row2,
int col2)
SpreadsheetHandlercellRangeSelected in interface SpreadsheetHandlerpublic void cellRangePainted(int selectedCellRow,
int selectedCellColumn,
int row1,
int col1,
int row2,
int col2)
SpreadsheetHandlercellRangePainted in interface SpreadsheetHandlerpublic void cellAddedToSelectionAndSelected(int row,
int column)
SpreadsheetHandlercellAddedToSelectionAndSelected in interface SpreadsheetHandlerpublic void cellsAddedToRangeSelection(int row1,
int col1,
int row2,
int col2)
SpreadsheetHandlercellsAddedToRangeSelection in interface SpreadsheetHandlerpublic void rowSelected(int row,
int firstColumnIndex)
SpreadsheetHandlerrowSelected in interface SpreadsheetHandlerrow - the row that was selectedfirstColumnIndex - column index for the selected cell (left most visible)public void rowAddedToRangeSelection(int row,
int firstColumnIndex)
SpreadsheetHandlerrowAddedToRangeSelection in interface SpreadsheetHandlerrow - the row that was selectedfirstColumnIndex - column index for the selected cell (left most visible)public void columnSelected(int col,
int firstRowIndex)
SpreadsheetHandlercolumnSelected in interface SpreadsheetHandlercol - the column that was selectedfirstRowIndex - row index for the selected cell (top most visible)public void columnAddedToSelection(int firstRowIndex,
int column)
SpreadsheetHandlercolumnAddedToSelection in interface SpreadsheetHandlerfirstRowIndex - row index for the selected cell (top most)column - the column that was selectedpublic void selectionIncreasePainted(int r1,
int c1,
int r2,
int c2)
SpreadsheetHandlerselectionIncreasePainted in interface SpreadsheetHandlerr1 - new selection top, 1-basedc1 - new selection left, 1-basedr2 - new selection bottom, 1-basedc2 - new selection right, 1-basedpublic void selectionDecreasePainted(int r,
int c)
SpreadsheetHandlerselectionDecreasePainted in interface SpreadsheetHandlerr - topmost cell index where the clearing starts, 1-basedc - leftmost cell index where the clearing starts, 1-basedpublic void cellValueEdited(int row,
int col,
String value)
cellValueEdited in interface SpreadsheetHandlerpublic void sheetSelected(int tabIndex,
int scrollLeft,
int scrollTop)
sheetSelected in interface SpreadsheetHandlertabIndex - 0-basedpublic void sheetRenamed(int sheetIndex,
String sheetName)
sheetRenamed in interface SpreadsheetHandlersheetIndex - 0-basedpublic void sheetCreated(int scrollLeft,
int scrollTop)
SpreadsheetHandlersheetCreated in interface SpreadsheetHandlerpublic void deleteSelectedCells()
SpreadsheetHandlerdeleteSelectedCells in interface SpreadsheetHandlerpublic void linkCellClicked(int row,
int column)
SpreadsheetHandlerlinkCellClicked in interface SpreadsheetHandlerrow - 1-basedcolumn - 1-basedpublic void contextMenuOpenOnSelection(int row,
int column)
SpreadsheetServerRpcSelection can change if the cell at the given indexes isn't included in the previous selection.
contextMenuOpenOnSelection in interface SpreadsheetServerRpcrow - 1-basedcolumn - 1-basedpublic void rowHeaderContextMenuOpen(int rowIndex)
SpreadsheetServerRpcrowHeaderContextMenuOpen in interface SpreadsheetServerRpcrowIndex - 1-basedpublic void columnHeaderContextMenuOpen(int columnIndex)
SpreadsheetServerRpccolumnHeaderContextMenuOpen in interface SpreadsheetServerRpccolumnIndex - 1-basedpublic void actionOnCurrentSelection(String actionKey)
SpreadsheetServerRpcactionOnCurrentSelection in interface SpreadsheetServerRpcpublic void actionOnRowHeader(String actionKey)
SpreadsheetServerRpcactionOnRowHeader in interface SpreadsheetServerRpcpublic void actionOnColumnHeader(String actionKey)
SpreadsheetServerRpcactionOnColumnHeader in interface SpreadsheetServerRpcpublic void rowsResized(Map<Integer,Float> newRowSizes, int row1, int col1, int row2, int col2)
SpreadsheetHandlerrowsResized in interface SpreadsheetHandlernewRowSizes - row index and new size (converted pt)public void columnResized(Map<Integer,Integer> newColumnSizes, int row1, int col1, int row2, int col2)
SpreadsheetHandlercolumnResized in interface SpreadsheetHandlernewColumnSizes - column index and new size (px)public void onRowAutofit(int rowIndex)
SpreadsheetHandleronRowAutofit in interface SpreadsheetHandlerrowIndex - 1-basedpublic void onColumnAutofit(int columnIndex)
SpreadsheetHandleronColumnAutofit in interface SpreadsheetHandlercolumnIndex - 1-basedpublic void onUndo()
SpreadsheetHandleronUndo in interface SpreadsheetHandlerpublic void onRedo()
SpreadsheetHandleronRedo in interface SpreadsheetHandlerpublic void setCellStyleWidthRatios(HashMap<Integer,Float> cellStyleWidthRatioMap)
setCellStyleWidthRatios in interface SpreadsheetHandlerpublic void onConnectorInit()
SpreadsheetServerRpconConnectorInit in interface SpreadsheetServerRpcpublic void protectedCellWriteAttempted()
SpreadsheetHandlerprotectedCellWriteAttempted in interface SpreadsheetHandlerpublic void onPaste(String text)
SpreadsheetHandleronPaste in interface SpreadsheetHandlerpublic void clearSelectedCellsOnCut()
SpreadsheetHandlerclearSelectedCellsOnCut in interface SpreadsheetHandlerpublic void updateCellComment(String text, int col, int row)
updateCellComment in interface SpreadsheetHandlerpublic void setGroupingCollapsed(boolean isCols,
int colIndex,
boolean collapsed)
setGroupingCollapsed in interface GroupingWidget.GroupingHandlerpublic void levelHeaderClicked(boolean isCols,
int level)
levelHeaderClicked in interface GroupingWidget.GroupingHandlerCopyright © 2013–2026 Vaadin Ltd. All rights reserved.