Class SpreadsheetWidget
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
com.vaadin.addon.spreadsheet.client.SpreadsheetWidget
- All Implemented Interfaces:
com.google.gwt.event.logical.shared.HasAttachHandlers,com.google.gwt.event.shared.HasHandlers,com.google.gwt.user.client.EventListener,com.google.gwt.user.client.ui.HasVisibility,com.google.gwt.user.client.ui.IsRenderable,com.google.gwt.user.client.ui.IsWidget,FormulaBarHandler,GroupingWidget.GroupingHandler,SheetHandler,SheetTabSheet.SheetTabSheetHandler,com.vaadin.client.Focusable
public class SpreadsheetWidget
extends com.google.gwt.user.client.ui.Composite
implements SheetHandler, FormulaBarHandler, SheetTabSheet.SheetTabSheetHandler, com.vaadin.client.Focusable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled -
Field Summary
FieldsModifier and TypeFieldDescriptionFields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPopupButton(PopupButtonWidget widget) voidbooleanbooleanvoidcellValuesUpdated(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.voidCalled after successful cut operation; currently selected cells should be clearedvoidclearSpreadsheet(boolean removed) Clear all current sheet related datacreateCellAddress(int column, int row) protected StringcreateRangeSelectionString(int col1, int col2, int row1, int row2) voideditCellComment(int col, int row) voidfocus()voidfinal StringgetColHeader(int col) Get column header for column indexed 1..intintgetColWidth(int col) Width of a column in pixels including right border.intgetColWidthActual(int col) Returns 0 for hidden columns, otherwise same asSheetHandler.getColWidth(int).int[]floatdefault row height in points (?)intNumber of defined rows in the spreadsheetintThe maximum amount of columns that are visibleintThe maximum amount of rows that are visiblegetMergedRegion(int column, int row) Returns the merged region that this cell belongs to.getMergedRegionStartingFrom(int column, int row) Params 1-basedintgetRowHeader(int row) Get row header for rows indexed 1..floatgetRowHeight(int row) Height of a row in points (pt) including bottom border.int[]String[]booleanvoidbooleanisColProtected(int col) booleanisColumnHidden(int columnIndex) booleanisRowHidden(int rowIndex) booleanisRowProtected(int row) booleanbooleanReturns whether the custom editor is shown when the cell gets focus.booleanvoidlevelHeaderClicked(boolean cols, int level) voidload()voidCalled when thecustomEditorFactorymight have a new editor for the currently selected cell.protected voidloadSheet(int sheetIndex) voidonAddressEntered(String value) voidvoidonCellClick(int column, int row, String value, boolean shiftKey, boolean metaOrCtrlKey, boolean updateToActionHandler) voidonCellDoubleClick(int column, int row, String value) voidonCellInputBlur(String inputValue) voidvoidonCellInputEnter(String value, boolean shift) voidvoidonCellInputTab(String value, boolean shift) voidonCellInputValueChange(String value) voidonCellRightClick(com.google.gwt.dom.client.NativeEvent event, int column, int row) Called on right mouse button click on top of some cell.voidonColumnHeaderClick(int column, boolean shiftPressed, boolean metaOrCrtlPressed) voidonColumnHeaderResizeDoubleClick(int columnIndex) voidonColumnHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent, int columnIndex) Called on right mouse button click on top of a column headervoidonColumnsResized(Map<Integer, Integer> newSizes) Map containing 1-based column indexes and new sizes as ptvoidonFinishedSelectingCellsWithDrag(int col1, int col2, int row1, int row2) voidonFirstTabIndexChange(int firstVisibleTab) voidonFormulaEnter(String value) voidvoidonFormulaFieldBlur(String value) voidonFormulaFieldFocus(String value) Swap the cell data to the value if it is a formula.voidonFormulaTab(String value, boolean focusSheet) voidonFormulaValueChange(String value) voidonLinkCellClick(int column, int row) voidvoidvoidonRowHeaderClick(int row, boolean shiftPressed, boolean metaOrCrtlPressed) voidonRowHeaderDoubleClick(int rowIndex) voidonRowHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent, int rowIndex) Called on right mouse button click on top of a row headervoidonRowsResized(Map<Integer, Float> newSizes) Map containing 1-based row indexes and new sizes as ptvoidonScrollViewChanged(int firstRowIndex, int lastRowIndex, int firstColumnIndex, int lastColumnIndex) voidonSelectingCellsWithDrag(int col, int row) voidonSelectionDecreasePainted(int colEdgeIndex, int rowEdgeIndex) voidonSelectionIncreasePainted(int c1, int c2, int r1, int r2) voidonSheetKeyPress(com.google.gwt.dom.client.NativeEvent event, String enteredCharacter) voidonSheetPaste(String text) Called when user pastes something inside the sheet.voidCalled after the sheet has been relayouted (e.g., after scroll).voidonSheetRename(int sheetIndex, String newName) voidvoidonSheetTabSelected(int sheetIndex) voidvoidvoidvoidvoidvoidremoveCellCustomEditors(HashMap<String, Slot> customEditors) Remove custom editors for the cells with the given keys.voidremovePopupButton(PopupButtonWidget popupButton) voidvoidvoidselectCell(String name, int col, int row, String value, boolean formula, boolean locked, boolean initialSelection) voidselectCellRange(String name, int selectedCellColumn, int selectedCellRow, int firstColumn, int lastColumn, int firstRow, int lastRow, boolean scroll) voidvoidsetCellStyleToCSSStyle(HashMap<Integer, String> cellStyleToCSSStyle) voidsetCellStyleWidthRatios(HashMap<Integer, Float> cellStyleWidthRatioMap) voidsetColGroupingData(List<GroupingData> data) voidsetColGroupingInversed(boolean inversed) voidsetColGroupingMax(int max) voidsetCols(int cols) voidsetColumnBufferSize(int columnBufferSize) voidsetColumnIndexToStyleIndex(HashMap<Integer, Integer> columnIndexToStyleIndex) voidsetColW(int[] colW) voidsetCommsTrigger(SpreadsheetConnector.CommsTrigger commsTrigger) voidvoidsetCustomEditorFactory(SpreadsheetCustomEditorFactory customEditorFactory) voidsetDefColW(int defColW) voidsetDefRowH(float defRowH) voidsetDisplayGridlines(boolean displayGridlines) voidsetDisplayRowColHeadings(boolean displayRowColHeadings) voidsetGroupingCollapsed(boolean isCols, int colIndex, boolean collapsed) voidvoidsetHiddenColumnIndexes(ArrayList<Integer> hiddenColumnIndexes) voidsetHiddenRowIndexes(ArrayList<Integer> hiddenRowIndexes) voidsetHorizontalScrollPositions(int[] horizontalScrollPositions) voidsetHorizontalSplitPosition(int horizontalSplitPosition) voidsetHost(com.google.gwt.dom.client.Element host, com.google.gwt.dom.client.Node renderRoot) voidsetHyperlinksTooltips(HashMap<String, String> cellLinksMap) voidvoidsetInfoLabelValue(String value) Sets the content of the info label.voidsetInvalidFormulaCells(Set<String> invalidFormulaCells) voidsetInvalidFormulaErrorMessage(String invalidFormulaMessage) voidsetLockedColumnIndexes(Set<Integer> lockedColumnIndexes) voidsetLockedRowIndexes(Set<Integer> lockedRowIndexes) voidsetLockFormatColumns(boolean enabled) Enable or disable Formatting columns locking.voidsetLockFormatRows(boolean enabled) Enable or disable Formatting rows locking.voidsetNamedRanges(List<String> namedRanges) voidsetRowBufferSize(int rowBufferSize) voidsetRowGroupingData(List<GroupingData> data) voidsetRowGroupingInversed(boolean inversed) voidsetRowGroupingMax(int max) voidsetRowH(float[] rowH) voidsetRowIndexToStyleIndex(HashMap<Integer, Integer> rowIndexToStyleIndex) voidsetRows(int rows) voidsetSheetContextMenuHandler(SpreadsheetWidget.SheetContextMenuHandler sheetContextMenuHandler) voidsetSheetFocused(boolean focused) voidsetSheetProtected(boolean sheetProtected) voidsetShiftedCellBorderStyles(ArrayList<String> shiftedCellBorderStyles) voidsetShowCustomEditorOnFocus(boolean showCustomEditorOnFocus) Sets whether the custom editor should be shown when the cell gets focus.voidsetSpreadsheetHandler(SpreadsheetHandler spreadsheetHandler) voidsetTouchMode(boolean touchMode) voidsetVerticalScrollPositions(int[] verticalScrollPositions) voidsetVerticalSplitPosition(int verticalSplitPosition) voidvoidsetWorkbookProtected(boolean workbookProtected) voidsheetUpdated(String[] sheetNames, int sheetIndex, boolean clearScrollPosition) voidshowCellCustomComponents(HashMap<String, com.google.gwt.user.client.ui.Widget> customWidgetMap) voidshowCellCustomEditors(HashMap<String, String> cellKeysToEditorIdMap) Show custom editors for the cells with the given keys.voidupdateBottomLeftCellValues(ArrayList<CellData> cellData) voidupdateBottomRightCellValues(ArrayList<CellData> cellData) voidupdateCellComment(String text, int col, int row) voidupdateFormulaBar(String possibleName, int col, int row) voidupdateMergedRegions(ArrayList<MergedRegion> mergedRegions) voidupdateSelectedCellValues(int column, int row) voidupdateSelectedCellValues(int column, int row, String name) voidupdateTopLeftCellValues(ArrayList<CellData> cellData) voidupdateTopRightCellValues(ArrayList<CellData> cellData) voidMethods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetMethods inherited from class com.google.gwt.user.client.ui.Widget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsMethods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, 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, toString
-
Field Details
-
rowIndexToStyleIndex
-
columnIndexToStyleIndex
-
-
Constructor Details
-
SpreadsheetWidget
public SpreadsheetWidget()
-
-
Method Details
-
setHeight
- Overrides:
setHeightin classcom.google.gwt.user.client.ui.UIObject
-
setWidth
- Overrides:
setWidthin classcom.google.gwt.user.client.ui.UIObject
-
setLockFormatColumns
public void setLockFormatColumns(boolean enabled) Enable or disable Formatting columns locking.- Parameters:
enabled- the new content. Can not be HTML.
-
setLockFormatRows
public void setLockFormatRows(boolean enabled) Enable or disable Formatting rows locking.- Parameters:
enabled- the new content. Can not be HTML.
-
setInfoLabelValue
Sets the content of the info label.- Parameters:
value- the new content. Can not be HTML.
-
getInfoLabelValue
- Returns:
- current content of the info label.
-
getSheetWidget
-
load
public void load() -
sheetUpdated
-
widgetSizeChanged
public void widgetSizeChanged() -
clearSpreadsheet
public void clearSpreadsheet(boolean removed) Clear all current sheet related data -
loadSheet
protected void loadSheet(int sheetIndex) - Parameters:
sheetIndex- 0-based index of the sheet to load
-
relayoutSheet
public void relayoutSheet() -
setSpreadsheetHandler
-
getSpreadsheetHandler
-
setSheetContextMenuHandler
public void setSheetContextMenuHandler(SpreadsheetWidget.SheetContextMenuHandler sheetContextMenuHandler) -
hasCustomContextMenu
public boolean hasCustomContextMenu()- Specified by:
hasCustomContextMenuin interfaceSheetHandler
-
showCellCustomComponents
-
addPopupButton
-
removePopupButton
-
updateFormulaBar
-
invalidCellAddress
public void invalidCellAddress() -
focusSheet
public void focusSheet() -
getCustomEditorFactory
- Specified by:
getCustomEditorFactoryin interfaceSheetHandler- Returns:
- the customEditorFactory
-
onSheetRelayoutComplete
public void onSheetRelayoutComplete()Description copied from interface:SheetHandlerCalled after the sheet has been relayouted (e.g., after scroll).- Specified by:
onSheetRelayoutCompletein interfaceSheetHandler
-
setCustomEditorFactory
- Parameters:
customEditorFactory- the customEditorFactory to set
-
showCellCustomEditors
Show custom editors for the cells with the given keys.- Parameters:
cellKeysToEditorIdMap- a map of cell keys to editor IDs
-
removeCellCustomEditors
Remove custom editors for the cells with the given keys.- Parameters:
customEditors- a map of cell keys to custom editor widgets
-
loadSelectedCellEditor
public void loadSelectedCellEditor()Called when thecustomEditorFactorymight have a new editor for the currently selected cell. -
addVisibleCellComment
-
removeVisibleCellComment
-
updateMergedRegions
-
onScrollViewChanged
public void onScrollViewChanged(int firstRowIndex, int lastRowIndex, int firstColumnIndex, int lastColumnIndex) - Specified by:
onScrollViewChangedin interfaceSheetHandler
-
onLinkCellClick
public void onLinkCellClick(int column, int row) - Specified by:
onLinkCellClickin interfaceSheetHandler
-
onCellRightClick
public void onCellRightClick(com.google.gwt.dom.client.NativeEvent event, int column, int row) Description copied from interface:SheetHandlerCalled on right mouse button click on top of some cell.- Specified by:
onCellRightClickin interfaceSheetHandlercolumn- 1-basedrow- 1-based
-
onRowHeaderRightClick
public void onRowHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent, int rowIndex) Description copied from interface:SheetHandlerCalled on right mouse button click on top of a row header- Specified by:
onRowHeaderRightClickin interfaceSheetHandlerrowIndex- 1-based
-
onColumnHeaderRightClick
public void onColumnHeaderRightClick(com.google.gwt.dom.client.NativeEvent nativeEvent, int columnIndex) Description copied from interface:SheetHandlerCalled on right mouse button click on top of a column header- Specified by:
onColumnHeaderRightClickin interfaceSheetHandlercolumnIndex- 1-based
-
onCellClick
public void onCellClick(int column, int row, String value, boolean shiftKey, boolean metaOrCtrlKey, boolean updateToActionHandler) - Specified by:
onCellClickin interfaceSheetHandler
-
updateSelectedCellValues
public void updateSelectedCellValues(int column, int row) -
updateSelectedCellValues
-
onRowHeaderClick
public void onRowHeaderClick(int row, boolean shiftPressed, boolean metaOrCrtlPressed) - Specified by:
onRowHeaderClickin interfaceSheetHandler
-
onColumnHeaderClick
public void onColumnHeaderClick(int column, boolean shiftPressed, boolean metaOrCrtlPressed) - Specified by:
onColumnHeaderClickin interfaceSheetHandler
-
onRowHeaderDoubleClick
public void onRowHeaderDoubleClick(int rowIndex) - Specified by:
onRowHeaderDoubleClickin interfaceSheetHandler- Parameters:
rowIndex- 1-based
-
onColumnHeaderResizeDoubleClick
public void onColumnHeaderResizeDoubleClick(int columnIndex) - Specified by:
onColumnHeaderResizeDoubleClickin interfaceSheetHandler- Parameters:
columnIndex- 1-based
-
onSelectingCellsWithDrag
public void onSelectingCellsWithDrag(int col, int row) - Specified by:
onSelectingCellsWithDragin interfaceSheetHandler
-
onFinishedSelectingCellsWithDrag
public void onFinishedSelectingCellsWithDrag(int col1, int col2, int row1, int row2) - Specified by:
onFinishedSelectingCellsWithDragin interfaceSheetHandler
-
onCellDoubleClick
- Specified by:
onCellDoubleClickin interfaceSheetHandler
-
onCellInputBlur
- Specified by:
onCellInputBlurin interfaceSheetHandler
-
onCellInputFocus
public void onCellInputFocus()- Specified by:
onCellInputFocusin interfaceSheetHandler
-
onCellInputCancel
public void onCellInputCancel()- Specified by:
onCellInputCancelin interfaceSheetHandler
-
onCellInputEnter
- Specified by:
onCellInputEnterin interfaceSheetHandler
-
onCellInputTab
- Specified by:
onCellInputTabin interfaceSheetHandler
-
onCellInputValueChange
- Specified by:
onCellInputValueChangein interfaceSheetHandler
-
onSheetKeyPress
- Specified by:
onSheetKeyPressin interfaceSheetHandler
-
onAddressEntered
- Specified by:
onAddressEnteredin interfaceFormulaBarHandler
-
onAddressFieldEsc
public void onAddressFieldEsc()- Specified by:
onAddressFieldEscin interfaceFormulaBarHandler
-
onSheetTabSelected
public void onSheetTabSelected(int sheetIndex) - Specified by:
onSheetTabSelectedin interfaceSheetTabSheet.SheetTabSheetHandler
-
onFirstTabIndexChange
public void onFirstTabIndexChange(int firstVisibleTab) - Specified by:
onFirstTabIndexChangein interfaceSheetTabSheet.SheetTabSheetHandler
-
onSheetRename
- Specified by:
onSheetRenamein interfaceSheetTabSheet.SheetTabSheetHandler
-
onNewSheetCreated
public void onNewSheetCreated()- Specified by:
onNewSheetCreatedin interfaceSheetTabSheet.SheetTabSheetHandler
-
onSheetRenameCancel
public void onSheetRenameCancel()- Specified by:
onSheetRenameCancelin interfaceSheetTabSheet.SheetTabSheetHandler
-
onSheetTabSheetFocus
public void onSheetTabSheetFocus()- Specified by:
onSheetTabSheetFocusin interfaceSheetTabSheet.SheetTabSheetHandler
-
getRowHeightsPX
public int[] getRowHeightsPX()- Specified by:
getRowHeightsPXin interfaceSheetHandler
-
getMergedRegion
Description copied from interface:SheetHandlerReturns the merged region that this cell belongs to.- Specified by:
getMergedRegionin interfaceSheetHandler- Returns:
-
getMergedRegionStartingFrom
Description copied from interface:SheetHandlerParams 1-based- Specified by:
getMergedRegionStartingFromin interfaceSheetHandler- Parameters:
column- starting column of merged cellrow- starting row of merged cell- Returns:
-
onSelectionIncreasePainted
public void onSelectionIncreasePainted(int c1, int c2, int r1, int r2) - Specified by:
onSelectionIncreasePaintedin interfaceSheetHandler
-
onSelectionDecreasePainted
public void onSelectionDecreasePainted(int colEdgeIndex, int rowEdgeIndex) - Specified by:
onSelectionDecreasePaintedin interfaceSheetHandler
-
onFormulaFieldFocus
Description copied from interface:FormulaBarHandlerSwap the cell data to the value if it is a formula.- Specified by:
onFormulaFieldFocusin interfaceFormulaBarHandler
-
onFormulaFieldBlur
- Specified by:
onFormulaFieldBlurin interfaceFormulaBarHandler
-
onFormulaEnter
- Specified by:
onFormulaEnterin interfaceFormulaBarHandler
-
onFormulaTab
- Specified by:
onFormulaTabin interfaceFormulaBarHandler
-
onFormulaEsc
public void onFormulaEsc()- Specified by:
onFormulaEscin interfaceFormulaBarHandler
-
onFormulaValueChange
- Specified by:
onFormulaValueChangein interfaceFormulaBarHandler
-
onRowsResized
Description copied from interface:SheetHandlerMap containing 1-based row indexes and new sizes as pt- Specified by:
onRowsResizedin interfaceSheetHandler
-
onColumnsResized
Description copied from interface:SheetHandlerMap containing 1-based column indexes and new sizes as pt- Specified by:
onColumnsResizedin interfaceSheetHandler
-
onRedoPress
public void onRedoPress()- Specified by:
onRedoPressin interfaceSheetHandler
-
onUndoPress
public void onUndoPress()- Specified by:
onUndoPressin interfaceSheetHandler
-
createRangeSelectionString
-
createCellAddress
- Specified by:
createCellAddressin interfaceFormulaBarHandler
-
setRowBufferSize
public void setRowBufferSize(int rowBufferSize) -
setColumnBufferSize
public void setColumnBufferSize(int columnBufferSize) -
setRows
public void setRows(int rows) -
setCols
public void setCols(int cols) -
setColGroupingData
-
setRowGroupingData
-
setRowH
public void setRowH(float[] rowH) -
setColW
public void setColW(int[] colW) -
setDefRowH
public void setDefRowH(float defRowH) -
setDefColW
public void setDefColW(int defColW) -
setVerticalScrollPositions
public void setVerticalScrollPositions(int[] verticalScrollPositions) -
setHorizontalScrollPositions
public void setHorizontalScrollPositions(int[] horizontalScrollPositions) -
setVerticalSplitPosition
public void setVerticalSplitPosition(int verticalSplitPosition) -
setHorizontalSplitPosition
public void setHorizontalSplitPosition(int horizontalSplitPosition) -
setCellStyleToCSSStyle
-
setRowIndexToStyleIndex
-
setColumnIndexToStyleIndex
-
setLockedColumnIndexes
-
setLockedRowIndexes
-
setShiftedCellBorderStyles
-
setHyperlinksTooltips
-
setSheetProtected
public void setSheetProtected(boolean sheetProtected) -
isSheetProtected
public boolean isSheetProtected()- Specified by:
isSheetProtectedin interfaceSheetHandler
-
isColProtected
public boolean isColProtected(int col) - Specified by:
isColProtectedin interfaceSheetHandler
-
isRowProtected
public boolean isRowProtected(int row) - Specified by:
isRowProtectedin interfaceSheetHandler
-
setWorkbookProtected
public void setWorkbookProtected(boolean workbookProtected) -
setHiddenColumnIndexes
-
setHiddenRowIndexes
-
setCellComments
-
setInvalidFormulaCells
-
setInvalidFormulaErrorMessage
-
getCellStyleToCSSStyle
- Specified by:
getCellStyleToCSSStylein interfaceSheetHandler
-
getRowIndexToStyleIndex
- Specified by:
getRowIndexToStyleIndexin interfaceSheetHandler
-
getColumnIndexToStyleIndex
- Specified by:
getColumnIndexToStyleIndexin interfaceSheetHandler
-
getRowHeight
public float getRowHeight(int row) Description copied from interface:SheetHandlerHeight of a row in points (pt) including bottom border. Rows are indexed from 1 to getRows(). Returns 0 for hidden rows.- Specified by:
getRowHeightin interfaceSheetHandler
-
getColWidth
public int getColWidth(int col) Description copied from interface:SheetHandlerWidth of a column in pixels including right border. Columns are indexed from 1 to getColumns(). Returns 0 for hidden columns.- Specified by:
getColWidthin interfaceSheetHandler
-
getColWidthActual
public int getColWidthActual(int col) Description copied from interface:SheetHandlerReturns 0 for hidden columns, otherwise same asSheetHandler.getColWidth(int).- Specified by:
getColWidthActualin interfaceSheetHandler- Parameters:
col- 1-based- Returns:
- width (px)
-
getColHeader
Get column header for column indexed 1..- Specified by:
getColHeaderin interfaceSheetHandler
-
getRowHeader
Get row header for rows indexed 1..- Specified by:
getRowHeaderin interfaceSheetHandler
-
getDefinedRows
public int getDefinedRows()Description copied from interface:SheetHandlerNumber of defined rows in the spreadsheet- Specified by:
getDefinedRowsin interfaceSheetHandler
-
getColWidths
public int[] getColWidths()- Specified by:
getColWidthsin interfaceSheetHandler
-
getDefaultRowHeight
public float getDefaultRowHeight()Description copied from interface:SheetHandlerdefault row height in points (?)- Specified by:
getDefaultRowHeightin interfaceSheetHandler- Returns:
-
getRowBufferSize
public int getRowBufferSize()- Specified by:
getRowBufferSizein interfaceSheetHandler
-
getColumnBufferSize
public int getColumnBufferSize()- Specified by:
getColumnBufferSizein interfaceSheetHandler
-
getMaxColumns
public int getMaxColumns()Description copied from interface:SheetHandlerThe maximum amount of columns that are visible- Specified by:
getMaxColumnsin interfaceSheetHandler- Returns:
-
getMaxRows
public int getMaxRows()Description copied from interface:SheetHandlerThe maximum amount of rows that are visible- Specified by:
getMaxRowsin interfaceSheetHandler- Returns:
-
isColumnHidden
public boolean isColumnHidden(int columnIndex) - Specified by:
isColumnHiddenin interfaceSheetHandler- Parameters:
columnIndex- 1-based- Returns:
- true if the column is hidden
-
isRowHidden
public boolean isRowHidden(int rowIndex) - Specified by:
isRowHiddenin interfaceSheetHandler- Parameters:
rowIndex- 1-based- Returns:
- true if the row is hidden
-
canResizeColumn
public boolean canResizeColumn()- Specified by:
canResizeColumnin interfaceSheetHandler
-
canResizeRow
public boolean canResizeRow()- Specified by:
canResizeRowin interfaceSheetHandler
-
setDisplayGridlines
public void setDisplayGridlines(boolean displayGridlines) -
setDisplayRowColHeadings
public void setDisplayRowColHeadings(boolean displayRowColHeadings) -
refreshOverlayPositions
public void refreshOverlayPositions() -
updateBottomRightCellValues
-
updateTopLeftCellValues
-
updateTopRightCellValues
-
updateBottomLeftCellValues
-
cellValuesUpdated
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.- Parameters:
updatedCellData-
-
setCellStyleWidthRatios
- Specified by:
setCellStyleWidthRatiosin interfaceSheetHandler
-
onSheetPaste
Description copied from interface:SheetHandlerCalled when user pastes something inside the sheet.- Specified by:
onSheetPastein interfaceSheetHandler- Parameters:
text- the pasted content
-
clearSelectedCellsOnCut
public void clearSelectedCellsOnCut()Description copied from interface:SheetHandlerCalled after successful cut operation; currently selected cells should be cleared- Specified by:
clearSelectedCellsOnCutin interfaceSheetHandler
-
getConditionalFormattingStyles
- Specified by:
getConditionalFormattingStylesin interfaceSheetHandler
-
setConditionalFormattingStyles
-
selectCell
-
selectCellRange
public void selectCellRange(String name, int selectedCellColumn, int selectedCellRow, int firstColumn, int lastColumn, int firstRow, int lastRow, boolean scroll) -
refreshCellStyles
public void refreshCellStyles() -
isTouchMode
public boolean isTouchMode()- Specified by:
isTouchModein interfaceFormulaBarHandler
-
setTouchMode
public void setTouchMode(boolean touchMode) -
getFormulaBarWidget
- Specified by:
getFormulaBarWidgetin interfaceSheetHandler
-
editCellComment
public void editCellComment(int col, int row) -
updateCellComment
- Specified by:
updateCellCommentin interfaceSheetHandler
-
selectAll
public void selectAll()- Specified by:
selectAllin interfaceSheetHandler
-
focus
public void focus()- Specified by:
focusin interfacecom.vaadin.client.Focusable
-
setCommsTrigger
-
setSheetFocused
public void setSheetFocused(boolean focused) - Specified by:
setSheetFocusedin interfaceFormulaBarHandler
-
setId
-
getSheetNames
- Specified by:
getSheetNamesin interfaceFormulaBarHandler
-
getActiveSheetName
- Specified by:
getActiveSheetNamein interfaceFormulaBarHandler
-
setGroupingCollapsed
public void setGroupingCollapsed(boolean isCols, int colIndex, boolean collapsed) - Specified by:
setGroupingCollapsedin interfaceGroupingWidget.GroupingHandler
-
levelHeaderClicked
public void levelHeaderClicked(boolean cols, int level) - Specified by:
levelHeaderClickedin interfaceGroupingWidget.GroupingHandler
-
setColGroupingMax
public void setColGroupingMax(int max) -
setRowGroupingMax
public void setRowGroupingMax(int max) -
setColGroupingInversed
public void setColGroupingInversed(boolean inversed) -
setRowGroupingInversed
public void setRowGroupingInversed(boolean inversed) -
setNamedRanges
-
setHost
public void setHost(com.google.gwt.dom.client.Element host, com.google.gwt.dom.client.Node renderRoot) -
isShowCustomEditorOnFocus
public boolean isShowCustomEditorOnFocus()Returns whether the custom editor is shown when the cell gets focus.- Returns:
- true if the custom editor is shown on focus, false otherwise
-
setShowCustomEditorOnFocus
public void setShowCustomEditorOnFocus(boolean showCustomEditorOnFocus) Sets whether the custom editor should be shown when the cell gets focus.- Parameters:
showCustomEditorOnFocus- true to show the custom editor on focus, false to not show it
-