public interface SheetHandler extends GroupingWidget.GroupingHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResizeColumn() |
boolean |
canResizeRow() |
void |
clearSelectedCellsOnCut()
Called after successful cut operation; currently selected cells should be
cleared
|
Map<Integer,String> |
getCellStyleToCSSStyle() |
String |
getColHeader(int col)
Get header of a column as HTML.
|
int |
getColumnBufferSize() |
Map<Integer,Integer> |
getColumnIndexToStyleIndex() |
int |
getColWidth(int col)
Width of a column in pixels including right border.
|
int |
getColWidthActual(int col)
Returns 0 for hidden columns, otherwise same as
getColWidth(int). |
int[] |
getColWidths()
Returns the widths of the columns.
|
Map<Integer,String> |
getConditionalFormattingStyles() |
float |
getDefaultRowHeight()
Returns the default row height in points (pt).
|
int |
getDefinedRows()
Returns the number of defined rows in the spreadsheet.
|
FormulaBarWidget |
getFormulaBarWidget() |
int |
getMaxColumns()
The maximum amount of columns that are visible.
|
int |
getMaxRows()
The maximum amount of rows that are visible.
|
MergedRegion |
getMergedRegion(int col,
int row)
Returns the merged region that this cell belongs to.
|
MergedRegion |
getMergedRegionStartingFrom(int col,
int row)
Returns the merged region starting at the given coordinates.
|
int |
getRowBufferSize() |
String |
getRowHeader(int row)
Get header of a row as HTML.
|
float |
getRowHeight(int row)
Height of a row in points (pt) including bottom border.
|
int[] |
getRowHeightsPX() |
Map<Integer,Integer> |
getRowIndexToStyleIndex() |
boolean |
hasCustomContextMenu() |
boolean |
isColProtected(int col) |
boolean |
isColumnHidden(int col)
Returns whether the given column is hidden.
|
boolean |
isRowHidden(int row)
Returns whether the given row is hidden.
|
boolean |
isRowProtected(int row) |
boolean |
isSheetProtected() |
void |
onCellClick(int column,
int row,
String value,
boolean shiftPressed,
boolean metaOrCtrlPressed,
boolean updateToActionHandler) |
void |
onCellDoubleClick(int column,
int row,
String value) |
void |
onCellInputBlur(String value) |
void |
onCellInputCancel() |
void |
onCellInputEnter(String value,
boolean shift) |
void |
onCellInputFocus() |
void |
onCellInputTab(String value,
boolean shift) |
void |
onCellInputValueChange(String value) |
void |
onCellRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int column,
int row)
Called on right mouse button click on top of some cell.
|
void |
onColumnHeaderClick(int row,
boolean shiftPressed,
boolean metaOrCrtlPressed) |
void |
onColumnHeaderResizeDoubleClick(int columnIndex)
Triggered when a column header receives a double-click.
|
void |
onColumnHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int columnIndex)
Called on right mouse button click on top of a column header.
|
void |
onColumnsResized(Map<Integer,Integer> newSizes)
Triggered after column resize.
|
void |
onFinishedSelectingCellsWithDrag(int col1,
int col2,
int row1,
int row2) |
void |
onLinkCellClick(int column,
int row) |
void |
onRedoPress() |
void |
onRowHeaderClick(int row,
boolean shiftPressed,
boolean metaOrCrtlPressed) |
void |
onRowHeaderDoubleClick(int rowIndex)
Triggered when a row header receives a double-click.
|
void |
onRowHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int rowIndex)
Called on right mouse button click on top of a row header.
|
void |
onRowsResized(Map<Integer,Float> newSizes)
Triggered after row resize.
|
void |
onScrollViewChanged(int firstRow,
int lastRow,
int firstColumn,
int lastColumn) |
void |
onSelectingCellsWithDrag(int parsedCol,
int parsedRow) |
void |
onSelectionDecreasePainted(int colEdgeIndex,
int rowEdgeIndex) |
void |
onSelectionIncreasePainted(int c1,
int c2,
int r1,
int r2) |
void |
onSheetKeyPress(com.google.gwt.dom.client.NativeEvent nativeEvent,
String enteredCharacter) |
void |
onSheetPaste(String text)
Called when user pastes something inside the sheet.
|
void |
onUndoPress() |
void |
selectAll() |
void |
setCellStyleWidthRatios(HashMap<Integer,Float> cellStyleWidthRatioMap) |
void |
updateCellComment(String text,
int col,
int row) |
levelHeaderClicked, setGroupingCollapsedvoid onCellClick(int column,
int row,
String value,
boolean shiftPressed,
boolean metaOrCtrlPressed,
boolean updateToActionHandler)
void onLinkCellClick(int column,
int row)
void onCellDoubleClick(int column,
int row,
String value)
void onRowHeaderClick(int row,
boolean shiftPressed,
boolean metaOrCrtlPressed)
void onColumnHeaderClick(int row,
boolean shiftPressed,
boolean metaOrCrtlPressed)
void onScrollViewChanged(int firstRow,
int lastRow,
int firstColumn,
int lastColumn)
void onSelectionIncreasePainted(int c1,
int c2,
int r1,
int r2)
void onSelectionDecreasePainted(int colEdgeIndex,
int rowEdgeIndex)
void onFinishedSelectingCellsWithDrag(int col1,
int col2,
int row1,
int row2)
void onSelectingCellsWithDrag(int parsedCol,
int parsedRow)
void onCellInputBlur(String value)
void onCellInputFocus()
void onCellInputCancel()
void onCellInputEnter(String value, boolean shift)
void onCellInputTab(String value, boolean shift)
void onCellInputValueChange(String value)
void onSheetKeyPress(com.google.gwt.dom.client.NativeEvent nativeEvent,
String enteredCharacter)
int getRowBufferSize()
int getColumnBufferSize()
float getDefaultRowHeight()
int getDefinedRows()
int[] getColWidths()
float getRowHeight(int row)
row - row index, 1-basedint getColWidth(int col)
col - column index, 1-basedint getColWidthActual(int col)
getColWidth(int).col - column index, 1-basedString getColHeader(int col)
col - column index, 1-basedString getRowHeader(int row)
row - row index, 1-basedint getMaxColumns()
int getMaxRows()
int[] getRowHeightsPX()
boolean isColumnHidden(int col)
col - column index, 1-basedtrue if the column is hidden, false otherwiseboolean isRowHidden(int row)
row - row index, 1-basedtrue if the row is hidden, false otherwisevoid onCellRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int column,
int row)
nativeEvent - triggered eventcolumn - index, 1-basedrow - index, 1-basedvoid onRowHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int rowIndex)
nativeEvent - triggered eventrowIndex - 1-basedvoid onColumnHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int columnIndex)
nativeEvent - triggered eventcolumnIndex - 1-basedboolean hasCustomContextMenu()
boolean canResizeColumn()
boolean canResizeRow()
void onRowsResized(Map<Integer,Float> newSizes)
newSizes - map containing 1-based row indexes and new sizes as ptvoid onColumnsResized(Map<Integer,Integer> newSizes)
newSizes - map containing 1-based column indexes and new sizes as ptvoid onRowHeaderDoubleClick(int rowIndex)
rowIndex - 1-basedvoid onColumnHeaderResizeDoubleClick(int columnIndex)
columnIndex - 1-basedMergedRegion getMergedRegion(int col, int row)
col - column index, 1-basedrow - row index, 1-basednull if not foundMergedRegion getMergedRegionStartingFrom(int col, int row)
col - starting column index of merged cell, 1-basedrow - starting row index of merged cell, 1-basednull if not foundvoid onRedoPress()
void onUndoPress()
void onSheetPaste(String text)
text - the pasted contentvoid clearSelectedCellsOnCut()
FormulaBarWidget getFormulaBarWidget()
void updateCellComment(String text, int col, int row)
void selectAll()
boolean isSheetProtected()
boolean isColProtected(int col)
boolean isRowProtected(int row)
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.