-
Method Summary
boolean
boolean
void
Called after successful cut operation; currently selected cells should be
cleared
Get header of a column as HTML.
int
int
Width of a column in pixels including right border.
int
int[]
float
default row height in points (?)
int
Number of defined rows in the spreadsheet
int
The maximum amount of columns that are visible
int
The maximum amount of rows that are visible
Returns the merged region that this cell belongs to.
int
Get header of a row as HTML.
float
Height of a row in points (pt) including bottom border.
int[]
boolean
boolean
boolean
boolean
boolean
boolean
void
onCellClick(int column,
int row,
String value,
boolean shiftPressed,
boolean metaOrCtrlPressed,
boolean updateToActionHandler)
void
void
void
void
void
void
void
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
void
void
Called on right mouse button click on top of a column header
void
Map containing 1-based column indexes and new sizes as pt
void
void
void
void
void
void
Called on right mouse button click on top of a row header
void
Map containing 1-based row indexes and new sizes as pt
void
void
void
void
void
void
Called when user pastes something inside the sheet.
void
void
void
void
-
Method Details
-
onCellClick
void onCellClick(int column,
int row,
String value,
boolean shiftPressed,
boolean metaOrCtrlPressed,
boolean updateToActionHandler)
-
onLinkCellClick
void onLinkCellClick(int column,
int row)
-
onCellDoubleClick
void onCellDoubleClick(int column,
int row,
String value)
-
-
onColumnHeaderClick
void onColumnHeaderClick(int row,
boolean shiftPressed,
boolean metaOrCrtlPressed)
-
-
onSelectionIncreasePainted
void onSelectionIncreasePainted(int c1,
int c2,
int r1,
int r2)
-
onSelectionDecreasePainted
void onSelectionDecreasePainted(int colEdgeIndex,
int rowEdgeIndex)
-
onFinishedSelectingCellsWithDrag
void onFinishedSelectingCellsWithDrag(int col1,
int col2,
int row1,
int row2)
-
onSelectingCellsWithDrag
void onSelectingCellsWithDrag(int parsedCol,
int parsedRow)
-
-
-
-
-
-
-
onSheetKeyPress
void onSheetKeyPress(com.google.gwt.dom.client.NativeEvent nativeEvent,
String enteredCharacter)
-
getRowBufferSize
int getRowBufferSize()
-
getColumnBufferSize
int getColumnBufferSize()
-
getDefaultRowHeight
float getDefaultRowHeight()
default row height in points (?)
- Returns:
-
getDefinedRows
int getDefinedRows()
Number of defined rows in the spreadsheet
-
getColWidths
int[] getColWidths()
-
getRowHeight
float getRowHeight(int row)
Height of a row in points (pt) including bottom border. Rows are indexed
from 1 to getRows(). Returns 0 for hidden rows.
-
getColWidth
int getColWidth(int col)
Width of a column in pixels including right border. Columns are indexed
from 1 to getColumns(). Returns 0 for hidden columns.
-
getColWidthActual
int getColWidthActual(int col)
- Parameters:
col - 1-based
- Returns:
- width (px)
-
-
-
getMaxColumns
int getMaxColumns()
The maximum amount of columns that are visible
- Returns:
-
getMaxRows
int getMaxRows()
The maximum amount of rows that are visible
- Returns:
-
getRowHeightsPX
int[] getRowHeightsPX()
-
-
-
getColumnIndexToStyleIndex
-
-
isColumnHidden
boolean isColumnHidden(int i)
- Parameters:
i - 1-based
- Returns:
- true if the column is hidden
-
isRowHidden
boolean isRowHidden(int i)
- Parameters:
i - 1-based
- Returns:
- true if the row is hidden
-
onCellRightClick
void onCellRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int column,
int row)
Called on right mouse button click on top of some cell.
- Parameters:
nativeEvent -
column - 1-based
row - 1-based
-
-
onColumnHeaderRightClick
void onColumnHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int columnIndex)
Called on right mouse button click on top of a column header
- Parameters:
nativeEvent -
columnIndex - 1-based
-
-
canResizeColumn
boolean canResizeColumn()
-
canResizeRow
boolean canResizeRow()
-
onRowsResized
Map containing 1-based row indexes and new sizes as pt
-
onColumnsResized
Map containing 1-based column indexes and new sizes as pt
-
-
onColumnHeaderResizeDoubleClick
void onColumnHeaderResizeDoubleClick(int columnIndex)
- Parameters:
columnIndex - 1-based
-
getMergedRegion
Returns the merged region that this cell belongs to.
- Parameters:
col -
row -
- Returns:
-
getMergedRegionStartingFrom
Params 1-based
- Parameters:
col - starting column of merged cell
row - starting row of merged cell
- Returns:
-
onRedoPress
void onRedoPress()
-
onUndoPress
void onUndoPress()
-
-
onSheetPaste
void onSheetPaste(String text)
Called when user pastes something inside the sheet.
- Parameters:
text - the pasted content
-
clearSelectedCellsOnCut
void clearSelectedCellsOnCut()
Called after successful cut operation; currently selected cells should be
cleared
-
-
-
selectAll
void selectAll()
-
isSheetProtected
boolean isSheetProtected()
-
isColProtected
boolean isColProtected(int col)
-
isRowProtected
boolean isRowProtected(int row)