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 Classes Modifier and Type Class Description static interfaceSpreadsheetWidget.SheetContextMenuHandler
-
Field Summary
Fields Modifier and Type Field Description Map<Integer,Integer>columnIndexToStyleIndexMap<Integer,Integer>rowIndexToStyleIndex
-
Constructor Summary
Constructors Constructor Description SpreadsheetWidget()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPopupButton(PopupButtonWidget widget)voidaddVisibleCellComment(String key)booleancanResizeColumn()booleancanResizeRow()voidcellValuesUpdated(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.voidclearSelectedCellsOnCut()Called after successful cut operation; currently selected cells should be clearedvoidclearSpreadsheet(boolean removed)Clear all current sheet related dataStringcreateCellAddress(int column, int row)protected StringcreateRangeSelectionString(int col1, int col2, int row1, int row2)voideditCellComment(int col, int row)voidfocus()voidfocusSheet()StringgetActiveSheetName()Map<Integer,String>getCellStyleToCSSStyle()StringgetColHeader(int col)Get column header for column indexed 1..intgetColumnBufferSize()Map<Integer,Integer>getColumnIndexToStyleIndex()intgetColWidth(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[]getColWidths()Map<Integer,String>getConditionalFormattingStyles()SpreadsheetCustomEditorFactorygetCustomEditorFactory()floatgetDefaultRowHeight()default row height in points (?)intgetDefinedRows()Number of defined rows in the spreadsheetFormulaBarWidgetgetFormulaBarWidget()StringgetInfoLabelValue()intgetMaxColumns()The maximum amount of columns that are visibleintgetMaxRows()The maximum amount of rows that are visibleMergedRegiongetMergedRegion(int column, int row)Returns the merged region that this cell belongs to.MergedRegiongetMergedRegionStartingFrom(int column, int row)Params 1-basedintgetRowBufferSize()StringgetRowHeader(int row)Get row header for rows indexed 1..floatgetRowHeight(int row)Height of a row in points (pt) including bottom border.int[]getRowHeightsPX()Map<Integer,Integer>getRowIndexToStyleIndex()String[]getSheetNames()SheetWidgetgetSheetWidget()SpreadsheetHandlergetSpreadsheetHandler()booleanhasCustomContextMenu()voidinvalidCellAddress()booleanisColProtected(int col)booleanisColumnHidden(int columnIndex)booleanisRowHidden(int rowIndex)booleanisRowProtected(int row)booleanisSheetProtected()booleanisTouchMode()voidlevelHeaderClicked(boolean cols, int level)voidload()voidloadSelectedCellEditor()Called when thecustomEditorFactorymight have a new editor for the currently selected cell.protected voidloadSheet(int sheetIndex)voidonAddressEntered(String value)voidonAddressFieldEsc()voidonCellClick(int column, int row, String value, boolean shiftKey, boolean metaOrCtrlKey, boolean updateToActionHandler)voidonCellDoubleClick(int column, int row, String value)voidonCellInputBlur(String inputValue)voidonCellInputCancel()voidonCellInputEnter(String value, boolean shift)voidonCellInputFocus()voidonCellInputTab(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)voidonFormulaEsc()voidonFormulaFieldBlur(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)voidonNewSheetCreated()voidonRedoPress()voidonRowHeaderClick(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.voidonSheetRename(int sheetIndex, String newName)voidonSheetRenameCancel()voidonSheetTabSelected(int sheetIndex)voidonSheetTabSheetFocus()voidonUndoPress()voidrefreshCellStyles()voidrefreshOverlayPositions()voidrelayoutSheet()voidremovePopupButton(PopupButtonWidget popupButton)voidremoveVisibleCellComment(String key)voidselectAll()voidselectCell(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)voidsetCellComments(HashMap<String,String> cellComments, HashMap<String,String> cellCommentAuthors)voidsetCellStyleToCSSStyle(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)voidsetConditionalFormattingStyles(HashMap<Integer,String> map)voidsetCustomEditorFactory(SpreadsheetCustomEditorFactory customEditorFactory)voidsetDefColW(int defColW)voidsetDefRowH(float defRowH)voidsetDisplayGridlines(boolean displayGridlines)voidsetDisplayRowColHeadings(boolean displayRowColHeadings)voidsetGroupingCollapsed(boolean isCols, int colIndex, boolean collapsed)voidsetHeight(String height)voidsetHiddenColumnIndexes(ArrayList<Integer> hiddenColumnIndexes)voidsetHiddenRowIndexes(ArrayList<Integer> hiddenRowIndexes)voidsetHorizontalScrollPositions(int[] horizontalScrollPositions)voidsetHorizontalSplitPosition(int horizontalSplitPosition)voidsetHost(com.google.gwt.dom.client.Element element)voidsetHyperlinksTooltips(HashMap<String,String> cellLinksMap)voidsetId(String connectorId)voidsetInfoLabelValue(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)voidsetSpreadsheetHandler(SpreadsheetHandler spreadsheetHandler)voidsetTouchMode(boolean touchMode)voidsetVerticalScrollPositions(int[] verticalScrollPositions)voidsetVerticalSplitPosition(int verticalSplitPosition)voidsetWidth(String width)voidsetWorkbookProtected(boolean workbookProtected)voidsheetUpdated(String[] sheetNames, int sheetIndex, boolean clearScrollPosition)voidshowCellCustomComponents(HashMap<String,com.google.gwt.user.client.ui.Widget> customWidgetMap)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)voidwidgetSizeChanged()-
Methods inherited from class com.google.gwt.user.client.ui.Composite
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
-
Methods 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, unsinkEvents
-
Methods 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
-
-
-
-
Method Detail
-
setHeight
public void setHeight(String height)
- Overrides:
setHeightin classcom.google.gwt.user.client.ui.UIObject
-
setWidth
public void setWidth(String width)
- 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
public void setInfoLabelValue(String value)
Sets the content of the info label.- Parameters:
value- the new content. Can not be HTML.
-
getInfoLabelValue
public String getInfoLabelValue()
- Returns:
- current content of the info label.
-
getSheetWidget
public SheetWidget getSheetWidget()
-
load
public void load()
-
sheetUpdated
public void sheetUpdated(String[] sheetNames, int sheetIndex, boolean clearScrollPosition)
-
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
public void setSpreadsheetHandler(SpreadsheetHandler spreadsheetHandler)
-
getSpreadsheetHandler
public SpreadsheetHandler getSpreadsheetHandler()
-
setSheetContextMenuHandler
public void setSheetContextMenuHandler(SpreadsheetWidget.SheetContextMenuHandler sheetContextMenuHandler)
-
hasCustomContextMenu
public boolean hasCustomContextMenu()
- Specified by:
hasCustomContextMenuin interfaceSheetHandler
-
showCellCustomComponents
public void showCellCustomComponents(HashMap<String,com.google.gwt.user.client.ui.Widget> customWidgetMap)
-
addPopupButton
public void addPopupButton(PopupButtonWidget widget)
-
removePopupButton
public void removePopupButton(PopupButtonWidget popupButton)
-
updateFormulaBar
public void updateFormulaBar(String possibleName, int col, int row)
-
invalidCellAddress
public void invalidCellAddress()
-
focusSheet
public void focusSheet()
-
getCustomEditorFactory
public SpreadsheetCustomEditorFactory getCustomEditorFactory()
- Returns:
- the customEditorFactory
-
setCustomEditorFactory
public void setCustomEditorFactory(SpreadsheetCustomEditorFactory customEditorFactory)
- Parameters:
customEditorFactory- the customEditorFactory to set
-
loadSelectedCellEditor
public void loadSelectedCellEditor()
Called when thecustomEditorFactorymight have a new editor for the currently selected cell.
-
addVisibleCellComment
public void addVisibleCellComment(String key)
-
removeVisibleCellComment
public void removeVisibleCellComment(String key)
-
updateMergedRegions
public void updateMergedRegions(ArrayList<MergedRegion> mergedRegions)
-
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
public void updateSelectedCellValues(int column, int row, String name)
-
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
public void onCellDoubleClick(int column, int row, String value)- Specified by:
onCellDoubleClickin interfaceSheetHandler
-
onCellInputBlur
public void onCellInputBlur(String inputValue)
- Specified by:
onCellInputBlurin interfaceSheetHandler
-
onCellInputFocus
public void onCellInputFocus()
- Specified by:
onCellInputFocusin interfaceSheetHandler
-
onCellInputCancel
public void onCellInputCancel()
- Specified by:
onCellInputCancelin interfaceSheetHandler
-
onCellInputEnter
public void onCellInputEnter(String value, boolean shift)
- Specified by:
onCellInputEnterin interfaceSheetHandler
-
onCellInputTab
public void onCellInputTab(String value, boolean shift)
- Specified by:
onCellInputTabin interfaceSheetHandler
-
onCellInputValueChange
public void onCellInputValueChange(String value)
- Specified by:
onCellInputValueChangein interfaceSheetHandler
-
onSheetKeyPress
public void onSheetKeyPress(com.google.gwt.dom.client.NativeEvent event, String enteredCharacter)- Specified by:
onSheetKeyPressin interfaceSheetHandler
-
onAddressEntered
public void onAddressEntered(String value)
- 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
public void onSheetRename(int sheetIndex, String newName)- 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
public MergedRegion getMergedRegion(int column, int row)
Description copied from interface:SheetHandlerReturns the merged region that this cell belongs to.- Specified by:
getMergedRegionin interfaceSheetHandler- Returns:
-
getMergedRegionStartingFrom
public MergedRegion getMergedRegionStartingFrom(int column, int row)
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
public void onFormulaFieldFocus(String value)
Description copied from interface:FormulaBarHandlerSwap the cell data to the value if it is a formula.- Specified by:
onFormulaFieldFocusin interfaceFormulaBarHandler
-
onFormulaFieldBlur
public void onFormulaFieldBlur(String value)
- Specified by:
onFormulaFieldBlurin interfaceFormulaBarHandler
-
onFormulaEnter
public void onFormulaEnter(String value)
- Specified by:
onFormulaEnterin interfaceFormulaBarHandler
-
onFormulaTab
public void onFormulaTab(String value, boolean focusSheet)
- Specified by:
onFormulaTabin interfaceFormulaBarHandler
-
onFormulaEsc
public void onFormulaEsc()
- Specified by:
onFormulaEscin interfaceFormulaBarHandler
-
onFormulaValueChange
public void onFormulaValueChange(String value)
- Specified by:
onFormulaValueChangein interfaceFormulaBarHandler
-
onRowsResized
public void onRowsResized(Map<Integer,Float> newSizes)
Description copied from interface:SheetHandlerMap containing 1-based row indexes and new sizes as pt- Specified by:
onRowsResizedin interfaceSheetHandler
-
onColumnsResized
public void onColumnsResized(Map<Integer,Integer> newSizes)
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
protected String createRangeSelectionString(int col1, int col2, int row1, int row2)
-
createCellAddress
public String createCellAddress(int column, int row)
- 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
public void setColGroupingData(List<GroupingData> data)
-
setRowGroupingData
public void setRowGroupingData(List<GroupingData> data)
-
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
public void setCellStyleToCSSStyle(HashMap<Integer,String> cellStyleToCSSStyle)
-
setRowIndexToStyleIndex
public void setRowIndexToStyleIndex(HashMap<Integer,Integer> rowIndexToStyleIndex)
-
setColumnIndexToStyleIndex
public void setColumnIndexToStyleIndex(HashMap<Integer,Integer> columnIndexToStyleIndex)
-
setShiftedCellBorderStyles
public void setShiftedCellBorderStyles(ArrayList<String> shiftedCellBorderStyles)
-
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)
-
setCellComments
public void setCellComments(HashMap<String,String> cellComments, HashMap<String,String> cellCommentAuthors)
-
setInvalidFormulaErrorMessage
public void setInvalidFormulaErrorMessage(String invalidFormulaMessage)
-
getCellStyleToCSSStyle
public Map<Integer,String> getCellStyleToCSSStyle()
- Specified by:
getCellStyleToCSSStylein interfaceSheetHandler
-
getRowIndexToStyleIndex
public Map<Integer,Integer> getRowIndexToStyleIndex()
- Specified by:
getRowIndexToStyleIndexin interfaceSheetHandler
-
getColumnIndexToStyleIndex
public Map<Integer,Integer> 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
public final String getColHeader(int col)
Get column header for column indexed 1..- Specified by:
getColHeaderin interfaceSheetHandler
-
getRowHeader
public String getRowHeader(int row)
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()
-
cellValuesUpdated
public 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.- Parameters:
updatedCellData-
-
setCellStyleWidthRatios
public void setCellStyleWidthRatios(HashMap<Integer,Float> cellStyleWidthRatioMap)
- Specified by:
setCellStyleWidthRatiosin interfaceSheetHandler
-
onSheetPaste
public void onSheetPaste(String text)
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
public Map<Integer,String> getConditionalFormattingStyles()
- Specified by:
getConditionalFormattingStylesin interfaceSheetHandler
-
setConditionalFormattingStyles
public void setConditionalFormattingStyles(HashMap<Integer,String> map)
-
selectCell
public void selectCell(String name, int col, int row, String value, boolean formula, boolean locked, boolean initialSelection)
-
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
public FormulaBarWidget getFormulaBarWidget()
- Specified by:
getFormulaBarWidgetin interfaceSheetHandler
-
editCellComment
public void editCellComment(int col, int row)
-
updateCellComment
public void updateCellComment(String text, int col, int row)
- Specified by:
updateCellCommentin interfaceSheetHandler
-
selectAll
public void selectAll()
- Specified by:
selectAllin interfaceSheetHandler
-
focus
public void focus()
- Specified by:
focusin interfacecom.vaadin.client.Focusable
-
setCommsTrigger
public void setCommsTrigger(SpreadsheetConnector.CommsTrigger commsTrigger)
-
setSheetFocused
public void setSheetFocused(boolean focused)
- Specified by:
setSheetFocusedin interfaceFormulaBarHandler
-
setId
public void setId(String connectorId)
-
getSheetNames
public String[] getSheetNames()
- Specified by:
getSheetNamesin interfaceFormulaBarHandler
-
getActiveSheetName
public String 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)
-
setHost
public void setHost(com.google.gwt.dom.client.Element element)
-
-