Class FormulaBarWidget
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.FormulaBarWidget
- 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
public class FormulaBarWidget
extends com.google.gwt.user.client.ui.Composite
-
Nested Class Summary
Nested 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
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormulaCellRange(int col1, int row1, int col2, int row2) Adds a selection range to the current formulavoidvoidvoidChecks the char before the current caret pos, and enables or disables keyboard selection of cells accordingly.voidclear()voidRemoves all keyboard selection variables, clears paintvoidSheet has scrolled, and cell elements are not in the same position they were.booleanbooleanIf the user has focused an editor field, and the editor field contains a formula.booleanbooleanbooleanIf arrow key events should be processed normally, or as cell selection for the formula.voidmoveFormulaCellSelection(boolean shiftPressed, boolean up, boolean right, boolean down) voidvoidvoidsetCellFormulaValue(String formula) voidsetCellPlainValue(String plainValue) voidsetFormulaCellRange(int col1, int row1, int col2, int row2) Set a cell range in the formula.voidsetFormulaFieldEnabled(boolean enabled) voidsetInFullFocus(boolean inFullFocus) voidsetInlineEdit(boolean inlineEdit) voidsetNamedRanges(List<String> namedRanges) voidsetSelectedCellAddress(String selection) voidstartInlineEdit(boolean inputFullFocus) voidvoidupdateEditorCaretPos(boolean doAsDeferred) Stores the current position if the editor caret (e.g. when focus is temporarily moved somewhere else)voidRe-parses and paints the cell references in the current formula.Methods 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
-
Constructor Details
-
FormulaBarWidget
-
-
Method Details
-
clearFormulaSelection
public void clearFormulaSelection()Removes all keyboard selection variables, clears paint -
moveFormulaCellSelection
public void moveFormulaCellSelection(boolean shiftPressed, boolean up, boolean right, boolean down) -
addFormulaCellRange
public void addFormulaCellRange(int col1, int row1, int col2, int row2) Adds a selection range to the current formula -
setFormulaCellRange
public void setFormulaCellRange(int col1, int row1, int col2, int row2) Set a cell range in the formula. If the user hasn't moved the caret after last call, replace the value instead. -
checkEmptyValue
public void checkEmptyValue() -
revertCellAddressValue
public void revertCellAddressValue() -
revertCellValue
public void revertCellValue() -
setSelectedCellAddress
-
setCellPlainValue
-
setCellFormulaValue
-
clear
public void clear() -
getFormulaFieldValue
-
setFormulaFieldEnabled
public void setFormulaFieldEnabled(boolean enabled) -
cacheFormulaFieldValue
public void cacheFormulaFieldValue() -
isEditingFormula
public boolean isEditingFormula()If the user has focused an editor field, and the editor field contains a formula. -
startInlineEdit
public void startInlineEdit(boolean inputFullFocus) -
stopInlineEdit
public void stopInlineEdit() -
updateEditorCaretPos
public void updateEditorCaretPos(boolean doAsDeferred) Stores the current position if the editor caret (e.g. when focus is temporarily moved somewhere else) -
ensureSelectionStylesAfterScroll
public void ensureSelectionStylesAfterScroll()Sheet has scrolled, and cell elements are not in the same position they were. Re-paint background colors. -
updateFormulaSelectionStyles
public void updateFormulaSelectionStyles()Re-parses and paints the cell references in the current formula. -
setNamedRanges
-
isInFullFocus
public boolean isInFullFocus() -
setInFullFocus
public void setInFullFocus(boolean inFullFocus) -
isInlineEdit
public boolean isInlineEdit() -
setInlineEdit
public void setInlineEdit(boolean inlineEdit) -
hasLightFocus
public boolean hasLightFocus()
-