public class SpreadsheetWidget extends com.google.gwt.user.client.ui.Composite implements SheetHandler, FormulaBarHandler, SheetTabSheet.SheetTabSheetHandler, com.vaadin.client.Focusable
| Modifier and Type | Class and Description |
|---|---|
static interface |
SpreadsheetWidget.SheetContextMenuHandler |
| Modifier and Type | Field and Description |
|---|---|
Map<Integer,Integer> |
columnIndexToStyleIndex |
Map<Integer,Integer> |
rowIndexToStyleIndex |
| Constructor and Description |
|---|
SpreadsheetWidget() |
| Modifier and Type | Method and Description |
|---|---|
void |
addPopupButton(PopupButtonWidget widget) |
void |
addVisibleCellComment(String key) |
boolean |
canResizeColumn() |
boolean |
canResizeRow() |
void |
cellValuesUpdated(ArrayList<CellData> updatedCellData)
This can contain values for any of the panes or values that are just in
the client side cache, but the cell is not actually visible.
|
void |
clearSelectedCellsOnCut()
Called after successful cut operation; currently selected cells should be
cleared
|
void |
clearSpreadsheet(boolean removed)
Clear all current sheet related data
|
String |
createCellAddress(int column,
int row) |
protected String |
createRangeSelectionString(int col1,
int col2,
int row1,
int row2) |
void |
editCellComment(int col,
int row) |
void |
focus() |
void |
focusSheet() |
String |
getActiveSheetName() |
Map<Integer,String> |
getCellStyleToCSSStyle() |
String |
getColHeader(int col)
Get column header for column indexed 1..
|
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
SheetHandler.getColWidth(int). |
int[] |
getColWidths()
Returns the widths of the columns.
|
Map<Integer,String> |
getConditionalFormattingStyles() |
SpreadsheetCustomEditorFactory |
getCustomEditorFactory() |
float |
getDefaultRowHeight()
Returns the default row height in points (pt).
|
int |
getDefinedRows()
Returns the number of defined rows in the spreadsheet.
|
FormulaBarWidget |
getFormulaBarWidget() |
String |
getInfoLabelValue() |
int |
getMaxColumns()
The maximum amount of columns that are visible.
|
int |
getMaxRows()
The maximum amount of rows that are visible.
|
MergedRegion |
getMergedRegion(int column,
int row)
Returns the merged region that this cell belongs to.
|
MergedRegion |
getMergedRegionStartingFrom(int column,
int row)
Returns the merged region starting at the given coordinates.
|
int |
getRowBufferSize() |
String |
getRowHeader(int row)
Get row header for rows indexed 1..
|
float |
getRowHeight(int row)
Height of a row in points (pt) including bottom border.
|
int[] |
getRowHeightsPX() |
Map<Integer,Integer> |
getRowIndexToStyleIndex() |
String[] |
getSheetNames() |
SheetWidget |
getSheetWidget() |
boolean |
hasCustomContextMenu() |
void |
invalidCellAddress() |
boolean |
isColProtected(int col) |
boolean |
isColumnHidden(int columnIndex)
Returns whether the given column is hidden.
|
boolean |
isRowHidden(int rowIndex)
Returns whether the given row is hidden.
|
boolean |
isRowProtected(int row) |
boolean |
isSheetProtected() |
boolean |
isTouchMode() |
void |
levelHeaderClicked(boolean cols,
int level) |
void |
load() |
void |
loadSelectedCellEditor()
Called when the
customEditorFactory might have a new editor for
the currently selected cell. |
protected void |
loadSheet(int sheetIndex) |
void |
onAddressEntered(String value) |
void |
onAddressFieldEsc() |
void |
onCellClick(int column,
int row,
String value,
boolean shiftKey,
boolean metaOrCtrlKey,
boolean updateToActionHandler) |
void |
onCellDoubleClick(int column,
int row,
String value) |
void |
onCellInputBlur(String inputValue) |
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 event,
int column,
int row)
Called on right mouse button click on top of some cell.
|
void |
onColumnHeaderClick(int column,
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 |
onFirstTabIndexChange(int firstVisibleTab) |
void |
onFormulaEnter(String value) |
void |
onFormulaEsc() |
void |
onFormulaFieldBlur(String value) |
void |
onFormulaFieldFocus(String value)
Swap the cell data to the value if it is a formula.
|
void |
onFormulaTab(String value,
boolean focusSheet) |
void |
onFormulaValueChange(String value) |
void |
onLinkCellClick(int column,
int row) |
void |
onNewSheetCreated() |
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 firstRowIndex,
int lastRowIndex,
int firstColumnIndex,
int lastColumnIndex) |
void |
onSelectingCellsWithDrag(int col,
int row) |
void |
onSelectionDecreasePainted(int colEdgeIndex,
int rowEdgeIndex) |
void |
onSelectionIncreasePainted(int c1,
int c2,
int r1,
int r2) |
void |
onSheetKeyPress(com.google.gwt.dom.client.NativeEvent event,
String enteredCharacter) |
void |
onSheetPaste(String text)
Called when user pastes something inside the sheet.
|
void |
onSheetRename(int sheetIndex,
String newName) |
void |
onSheetRenameCancel() |
void |
onSheetTabSelected(int sheetIndex) |
void |
onSheetTabSheetFocus() |
void |
onUndoPress() |
void |
refreshCellStyles() |
void |
refreshOverlayPositions() |
void |
relayoutSheet() |
void |
removePopupButton(PopupButtonWidget popupButton) |
void |
removeVisibleCellComment(String key) |
void |
selectAll() |
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 |
setCellComments(HashMap<String,String> cellComments,
HashMap<String,String> cellCommentAuthors) |
void |
setCellStyleToCSSStyle(HashMap<Integer,String> cellStyleToCSSStyle) |
void |
setCellStyleWidthRatios(HashMap<Integer,Float> cellStyleWidthRatioMap) |
void |
setColGroupingData(List<GroupingData> data) |
void |
setColGroupingInversed(boolean inversed) |
void |
setColGroupingMax(int max) |
void |
setCols(int cols) |
void |
setColumnBufferSize(int columnBufferSize) |
void |
setColumnIndexToStyleIndex(HashMap<Integer,Integer> columnIndexToStyleIndex) |
void |
setColW(int[] colW) |
void |
setCommsTrigger(SpreadsheetConnector.CommsTrigger commsTrigger) |
void |
setConditionalFormattingStyles(HashMap<Integer,String> map) |
void |
setCustomEditorFactory(SpreadsheetCustomEditorFactory customEditorFactory) |
void |
setDefColW(int defColW) |
void |
setDefRowH(float defRowH) |
void |
setDisplayGridlines(boolean displayGridlines) |
void |
setDisplayRowColHeadings(boolean displayRowColHeadings) |
void |
setGroupingCollapsed(boolean isCols,
int colIndex,
boolean collapsed) |
void |
setHeight(String height) |
void |
setHiddenColumnIndexes(ArrayList<Integer> hiddenColumnIndexes) |
void |
setHiddenRowIndexes(ArrayList<Integer> hiddenRowIndexes) |
void |
setHorizontalScrollPositions(int[] horizontalScrollPositions) |
void |
setHorizontalSplitPosition(int horizontalSplitPosition) |
void |
setHyperlinksTooltips(HashMap<String,String> cellLinksMap) |
void |
setId(String connectorId) |
void |
setInfoLabelValue(String value)
Sets the content of the info label.
|
void |
setInvalidFormulaCells(Set<String> invalidFormulaCells) |
void |
setInvalidFormulaErrorMessage(String invalidFormulaMessage) |
void |
setLockedColumnIndexes(Set<Integer> lockedColumnIndexes) |
void |
setLockedRowIndexes(Set<Integer> lockedRowIndexes) |
void |
setLockFormatColumns(boolean enabled)
Enable or disable Formatting columns locking.
|
void |
setLockFormatRows(boolean enabled)
Enable or disable Formatting rows locking.
|
void |
setNamedRanges(List<String> namedRanges) |
void |
setRowBufferSize(int rowBufferSize) |
void |
setRowGroupingData(List<GroupingData> data) |
void |
setRowGroupingInversed(boolean inversed) |
void |
setRowGroupingMax(int max) |
void |
setRowH(float[] rowH) |
void |
setRowIndexToStyleIndex(HashMap<Integer,Integer> rowIndexToStyleIndex) |
void |
setRows(int rows) |
void |
setSheetContextMenuHandler(SpreadsheetWidget.SheetContextMenuHandler sheetContextMenuHandler) |
void |
setSheetFocused(boolean focused) |
void |
setSheetProtected(boolean sheetProtected) |
void |
setShiftedCellBorderStyles(ArrayList<String> shiftedCellBorderStyles) |
void |
setSpreadsheetHandler(SpreadsheetHandler spreadsheetHandler) |
void |
setTouchMode(boolean touchMode) |
void |
setVerticalScrollPositions(int[] verticalScrollPositions) |
void |
setVerticalSplitPosition(int verticalSplitPosition) |
void |
setWidth(String width) |
void |
setWorkbookProtected(boolean workbookProtected) |
void |
sheetUpdated(String[] sheetNames,
int sheetIndex,
boolean clearScrollPosition) |
void |
showCellCustomComponents(HashMap<String,com.google.gwt.user.client.ui.Widget> customWidgetMap) |
void |
updateBottomLeftCellValues(ArrayList<CellData> cellData) |
void |
updateBottomRightCellValues(ArrayList<CellData> cellData) |
void |
updateCellComment(String text,
int col,
int row) |
void |
updateFormulaBar(String possibleName,
int col,
int row) |
void |
updateMergedRegions(ArrayList<MergedRegion> mergedRegions) |
void |
updateSelectedCellValues(int column,
int row) |
void |
updateSelectedCellValues(int column,
int row,
String name) |
void |
updateTopLeftCellValues(ArrayList<CellData> cellData) |
void |
updateTopRightCellValues(ArrayList<CellData> cellData) |
void |
widgetSizeChanged() |
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toStringpublic void setHeight(String height)
setHeight in class com.google.gwt.user.client.ui.UIObjectpublic void setWidth(String width)
setWidth in class com.google.gwt.user.client.ui.UIObjectpublic void setLockFormatColumns(boolean enabled)
enabled - the new content. Can not be HTML.public void setLockFormatRows(boolean enabled)
enabled - the new content. Can not be HTML.public void setInfoLabelValue(String value)
value - the new content. Can not be HTML.public String getInfoLabelValue()
public SheetWidget getSheetWidget()
public void load()
public void sheetUpdated(String[] sheetNames, int sheetIndex, boolean clearScrollPosition)
public void widgetSizeChanged()
public void clearSpreadsheet(boolean removed)
protected void loadSheet(int sheetIndex)
sheetIndex - 0-based index of the sheet to loadpublic void relayoutSheet()
public void setSpreadsheetHandler(SpreadsheetHandler spreadsheetHandler)
public void setSheetContextMenuHandler(SpreadsheetWidget.SheetContextMenuHandler sheetContextMenuHandler)
public boolean hasCustomContextMenu()
hasCustomContextMenu in interface SheetHandlerpublic void showCellCustomComponents(HashMap<String,com.google.gwt.user.client.ui.Widget> customWidgetMap)
public void addPopupButton(PopupButtonWidget widget)
public void removePopupButton(PopupButtonWidget popupButton)
public void updateFormulaBar(String possibleName, int col, int row)
public void invalidCellAddress()
public void focusSheet()
public SpreadsheetCustomEditorFactory getCustomEditorFactory()
public void setCustomEditorFactory(SpreadsheetCustomEditorFactory customEditorFactory)
customEditorFactory - the customEditorFactory to setpublic void loadSelectedCellEditor()
customEditorFactory might have a new editor for
the currently selected cell.public void addVisibleCellComment(String key)
public void removeVisibleCellComment(String key)
public void updateMergedRegions(ArrayList<MergedRegion> mergedRegions)
public void onScrollViewChanged(int firstRowIndex,
int lastRowIndex,
int firstColumnIndex,
int lastColumnIndex)
onScrollViewChanged in interface SheetHandlerpublic void onLinkCellClick(int column,
int row)
onLinkCellClick in interface SheetHandlerpublic void onCellRightClick(com.google.gwt.dom.client.NativeEvent event,
int column,
int row)
SheetHandleronCellRightClick in interface SheetHandlerevent - triggered eventcolumn - index, 1-basedrow - index, 1-basedpublic void onRowHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int rowIndex)
SheetHandleronRowHeaderRightClick in interface SheetHandlernativeEvent - triggered eventrowIndex - 1-basedpublic void onColumnHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent,
int columnIndex)
SheetHandleronColumnHeaderRightClick in interface SheetHandlernativeEvent - triggered eventcolumnIndex - 1-basedpublic void onCellClick(int column,
int row,
String value,
boolean shiftKey,
boolean metaOrCtrlKey,
boolean updateToActionHandler)
onCellClick in interface SheetHandlerpublic void updateSelectedCellValues(int column,
int row)
public void updateSelectedCellValues(int column,
int row,
String name)
public void onRowHeaderClick(int row,
boolean shiftPressed,
boolean metaOrCrtlPressed)
onRowHeaderClick in interface SheetHandlerpublic void onColumnHeaderClick(int column,
boolean shiftPressed,
boolean metaOrCrtlPressed)
onColumnHeaderClick in interface SheetHandlerpublic void onRowHeaderDoubleClick(int rowIndex)
SheetHandleronRowHeaderDoubleClick in interface SheetHandlerrowIndex - 1-basedpublic void onColumnHeaderResizeDoubleClick(int columnIndex)
SheetHandleronColumnHeaderResizeDoubleClick in interface SheetHandlercolumnIndex - 1-basedpublic void onSelectingCellsWithDrag(int col,
int row)
onSelectingCellsWithDrag in interface SheetHandlerpublic void onFinishedSelectingCellsWithDrag(int col1,
int col2,
int row1,
int row2)
onFinishedSelectingCellsWithDrag in interface SheetHandlerpublic void onCellDoubleClick(int column,
int row,
String value)
onCellDoubleClick in interface SheetHandlerpublic void onCellInputBlur(String inputValue)
onCellInputBlur in interface SheetHandlerpublic void onCellInputFocus()
onCellInputFocus in interface SheetHandlerpublic void onCellInputCancel()
onCellInputCancel in interface SheetHandlerpublic void onCellInputEnter(String value, boolean shift)
onCellInputEnter in interface SheetHandlerpublic void onCellInputTab(String value, boolean shift)
onCellInputTab in interface SheetHandlerpublic void onCellInputValueChange(String value)
onCellInputValueChange in interface SheetHandlerpublic void onSheetKeyPress(com.google.gwt.dom.client.NativeEvent event,
String enteredCharacter)
onSheetKeyPress in interface SheetHandlerpublic void onAddressEntered(String value)
onAddressEntered in interface FormulaBarHandlerpublic void onAddressFieldEsc()
onAddressFieldEsc in interface FormulaBarHandlerpublic void onSheetTabSelected(int sheetIndex)
onSheetTabSelected in interface SheetTabSheet.SheetTabSheetHandlerpublic void onFirstTabIndexChange(int firstVisibleTab)
onFirstTabIndexChange in interface SheetTabSheet.SheetTabSheetHandlerpublic void onSheetRename(int sheetIndex,
String newName)
onSheetRename in interface SheetTabSheet.SheetTabSheetHandlerpublic void onNewSheetCreated()
onNewSheetCreated in interface SheetTabSheet.SheetTabSheetHandlerpublic void onSheetRenameCancel()
onSheetRenameCancel in interface SheetTabSheet.SheetTabSheetHandlerpublic void onSheetTabSheetFocus()
onSheetTabSheetFocus in interface SheetTabSheet.SheetTabSheetHandlerpublic int[] getRowHeightsPX()
getRowHeightsPX in interface SheetHandlerpublic MergedRegion getMergedRegion(int column, int row)
SheetHandlergetMergedRegion in interface SheetHandlercolumn - column index, 1-basedrow - row index, 1-basednull if not foundpublic MergedRegion getMergedRegionStartingFrom(int column, int row)
SheetHandlergetMergedRegionStartingFrom in interface SheetHandlercolumn - starting column index of merged cell, 1-basedrow - starting row index of merged cell, 1-basednull if not foundpublic void onSelectionIncreasePainted(int c1,
int c2,
int r1,
int r2)
onSelectionIncreasePainted in interface SheetHandlerpublic void onSelectionDecreasePainted(int colEdgeIndex,
int rowEdgeIndex)
onSelectionDecreasePainted in interface SheetHandlerpublic void onFormulaFieldFocus(String value)
FormulaBarHandleronFormulaFieldFocus in interface FormulaBarHandlerpublic void onFormulaFieldBlur(String value)
onFormulaFieldBlur in interface FormulaBarHandlerpublic void onFormulaEnter(String value)
onFormulaEnter in interface FormulaBarHandlerpublic void onFormulaTab(String value, boolean focusSheet)
onFormulaTab in interface FormulaBarHandlerpublic void onFormulaEsc()
onFormulaEsc in interface FormulaBarHandlerpublic void onFormulaValueChange(String value)
onFormulaValueChange in interface FormulaBarHandlerpublic void onRowsResized(Map<Integer,Float> newSizes)
SheetHandleronRowsResized in interface SheetHandlernewSizes - map containing 1-based row indexes and new sizes as ptpublic void onColumnsResized(Map<Integer,Integer> newSizes)
SheetHandleronColumnsResized in interface SheetHandlernewSizes - map containing 1-based column indexes and new sizes as ptpublic void onRedoPress()
onRedoPress in interface SheetHandlerpublic void onUndoPress()
onUndoPress in interface SheetHandlerprotected String createRangeSelectionString(int col1, int col2, int row1, int row2)
public String createCellAddress(int column, int row)
createCellAddress in interface FormulaBarHandlerpublic void setRowBufferSize(int rowBufferSize)
public void setColumnBufferSize(int columnBufferSize)
public void setRows(int rows)
public void setCols(int cols)
public void setColGroupingData(List<GroupingData> data)
public void setRowGroupingData(List<GroupingData> data)
public void setRowH(float[] rowH)
public void setColW(int[] colW)
public void setDefRowH(float defRowH)
public void setDefColW(int defColW)
public void setVerticalScrollPositions(int[] verticalScrollPositions)
public void setHorizontalScrollPositions(int[] horizontalScrollPositions)
public void setVerticalSplitPosition(int verticalSplitPosition)
public void setHorizontalSplitPosition(int horizontalSplitPosition)
public void setCellStyleToCSSStyle(HashMap<Integer,String> cellStyleToCSSStyle)
public void setRowIndexToStyleIndex(HashMap<Integer,Integer> rowIndexToStyleIndex)
public void setColumnIndexToStyleIndex(HashMap<Integer,Integer> columnIndexToStyleIndex)
public void setShiftedCellBorderStyles(ArrayList<String> shiftedCellBorderStyles)
public void setSheetProtected(boolean sheetProtected)
public boolean isSheetProtected()
isSheetProtected in interface SheetHandlerpublic boolean isColProtected(int col)
isColProtected in interface SheetHandlerpublic boolean isRowProtected(int row)
isRowProtected in interface SheetHandlerpublic void setWorkbookProtected(boolean workbookProtected)
public void setCellComments(HashMap<String,String> cellComments, HashMap<String,String> cellCommentAuthors)
public void setInvalidFormulaErrorMessage(String invalidFormulaMessage)
public Map<Integer,String> getCellStyleToCSSStyle()
getCellStyleToCSSStyle in interface SheetHandlerpublic Map<Integer,Integer> getRowIndexToStyleIndex()
getRowIndexToStyleIndex in interface SheetHandlerpublic Map<Integer,Integer> getColumnIndexToStyleIndex()
getColumnIndexToStyleIndex in interface SheetHandlerpublic float getRowHeight(int row)
SheetHandlergetRowHeight in interface SheetHandlerrow - row index, 1-basedpublic int getColWidth(int col)
SheetHandlergetColWidth in interface SheetHandlercol - column index, 1-basedpublic int getColWidthActual(int col)
SheetHandlerSheetHandler.getColWidth(int).getColWidthActual in interface SheetHandlercol - column index, 1-basedpublic final String getColHeader(int col)
getColHeader in interface SheetHandlercol - column index, 1-basedpublic String getRowHeader(int row)
getRowHeader in interface SheetHandlerrow - row index, 1-basedpublic int getDefinedRows()
SheetHandlergetDefinedRows in interface SheetHandlerpublic int[] getColWidths()
SheetHandlergetColWidths in interface SheetHandlerpublic float getDefaultRowHeight()
SheetHandlergetDefaultRowHeight in interface SheetHandlerpublic int getRowBufferSize()
getRowBufferSize in interface SheetHandlerpublic int getColumnBufferSize()
getColumnBufferSize in interface SheetHandlerpublic int getMaxColumns()
SheetHandlergetMaxColumns in interface SheetHandlerpublic int getMaxRows()
SheetHandlergetMaxRows in interface SheetHandlerpublic boolean isColumnHidden(int columnIndex)
SheetHandlerisColumnHidden in interface SheetHandlercolumnIndex - column index, 1-basedtrue if the column is hidden, false otherwisepublic boolean isRowHidden(int rowIndex)
SheetHandlerisRowHidden in interface SheetHandlerrowIndex - row index, 1-basedtrue if the row is hidden, false otherwisepublic boolean canResizeColumn()
canResizeColumn in interface SheetHandlerpublic boolean canResizeRow()
canResizeRow in interface SheetHandlerpublic void setDisplayGridlines(boolean displayGridlines)
public void setDisplayRowColHeadings(boolean displayRowColHeadings)
public void refreshOverlayPositions()
public void cellValuesUpdated(ArrayList<CellData> updatedCellData)
updatedCellData - public void setCellStyleWidthRatios(HashMap<Integer,Float> cellStyleWidthRatioMap)
setCellStyleWidthRatios in interface SheetHandlerpublic void onSheetPaste(String text)
SheetHandleronSheetPaste in interface SheetHandlertext - the pasted contentpublic void clearSelectedCellsOnCut()
SheetHandlerclearSelectedCellsOnCut in interface SheetHandlerpublic Map<Integer,String> getConditionalFormattingStyles()
getConditionalFormattingStyles in interface SheetHandlerpublic void setConditionalFormattingStyles(HashMap<Integer,String> map)
public void selectCell(String name, int col, int row, String value, boolean formula, boolean locked, boolean initialSelection)
public void selectCellRange(String name, int selectedCellColumn, int selectedCellRow, int firstColumn, int lastColumn, int firstRow, int lastRow, boolean scroll)
public void refreshCellStyles()
public boolean isTouchMode()
isTouchMode in interface FormulaBarHandlerpublic void setTouchMode(boolean touchMode)
public FormulaBarWidget getFormulaBarWidget()
getFormulaBarWidget in interface SheetHandlerpublic void editCellComment(int col,
int row)
public void updateCellComment(String text, int col, int row)
updateCellComment in interface SheetHandlerpublic void selectAll()
selectAll in interface SheetHandlerpublic void focus()
focus in interface com.vaadin.client.Focusablepublic void setCommsTrigger(SpreadsheetConnector.CommsTrigger commsTrigger)
public void setSheetFocused(boolean focused)
setSheetFocused in interface FormulaBarHandlerpublic void setId(String connectorId)
public String[] getSheetNames()
getSheetNames in interface FormulaBarHandlerpublic String getActiveSheetName()
getActiveSheetName in interface FormulaBarHandlerpublic void setGroupingCollapsed(boolean isCols,
int colIndex,
boolean collapsed)
setGroupingCollapsed in interface GroupingWidget.GroupingHandlerpublic void levelHeaderClicked(boolean cols,
int level)
levelHeaderClicked in interface GroupingWidget.GroupingHandlerpublic void setColGroupingMax(int max)
public void setRowGroupingMax(int max)
public void setColGroupingInversed(boolean inversed)
public void setRowGroupingInversed(boolean inversed)
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.