public class FormulaBarWidget
extends com.google.gwt.user.client.ui.Composite
| Constructor and Description |
|---|
FormulaBarWidget(FormulaBarHandler selectionManager,
SheetWidget widget) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormulaCellRange(int col1,
int row1,
int col2,
int row2)
Adds a selection range to the current formula
|
void |
cacheFormulaFieldValue() |
void |
checkEmptyValue() |
void |
checkKeyboardNavigation()
Checks the char before the current caret pos, and enables or disables
keyboard selection of cells accordingly.
|
void |
clear() |
void |
clearFormulaSelection()
Removes all keyboard selection variables, clears paint
|
void |
ensureSelectionStylesAfterScroll()
Sheet has scrolled, and cell elements are not in the same position they
were.
|
String |
getFormulaFieldValue() |
boolean |
hasLightFocus() |
boolean |
isEditingFormula()
If the user has focused an editor field, and the editor field contains a
formula.
|
boolean |
isInFullFocus() |
boolean |
isInlineEdit() |
boolean |
isKeyboardNavigationEnabled()
If arrow key events should be processed normally, or as cell selection
for the formula.
|
void |
moveFormulaCellSelection(boolean shiftPressed,
boolean up,
boolean right,
boolean down) |
void |
revertCellAddressValue() |
void |
revertCellValue() |
void |
setCellFormulaValue(String formula) |
void |
setCellPlainValue(String plainValue) |
void |
setFormulaCellRange(int col1,
int row1,
int col2,
int row2)
Set a cell range in the formula.
|
void |
setFormulaFieldEnabled(boolean enabled) |
void |
setInFullFocus(boolean inFullFocus) |
void |
setInlineEdit(boolean inlineEdit) |
void |
setNamedRanges(List<String> namedRanges) |
void |
setSelectedCellAddress(String selection) |
void |
startInlineEdit(boolean inputFullFocus) |
void |
stopInlineEdit() |
void |
updateEditorCaretPos(boolean doAsDeferred)
Stores the current position if the editor caret (e.g.
|
void |
updateFormulaSelectionStyles()
Re-parses and paints the cell references in the current formula.
|
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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toStringpublic FormulaBarWidget(FormulaBarHandler selectionManager, SheetWidget widget)
public void clearFormulaSelection()
public void moveFormulaCellSelection(boolean shiftPressed,
boolean up,
boolean right,
boolean down)
public void checkKeyboardNavigation()
public void addFormulaCellRange(int col1,
int row1,
int col2,
int row2)
public void setFormulaCellRange(int col1,
int row1,
int col2,
int row2)
public void checkEmptyValue()
public void revertCellAddressValue()
public void revertCellValue()
public void setSelectedCellAddress(String selection)
public void setCellPlainValue(String plainValue)
public void setCellFormulaValue(String formula)
public void clear()
public String getFormulaFieldValue()
public void setFormulaFieldEnabled(boolean enabled)
public void cacheFormulaFieldValue()
public boolean isEditingFormula()
public boolean isKeyboardNavigationEnabled()
public void startInlineEdit(boolean inputFullFocus)
public void stopInlineEdit()
public void updateEditorCaretPos(boolean doAsDeferred)
public void ensureSelectionStylesAfterScroll()
public void updateFormulaSelectionStyles()
public boolean isInFullFocus()
public void setInFullFocus(boolean inFullFocus)
public boolean isInlineEdit()
public void setInlineEdit(boolean inlineEdit)
public boolean hasLightFocus()
Copyright © 2013–2026 Vaadin Ltd. All rights reserved.