Class 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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • 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, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString
    • Method Detail

      • clearFormulaSelection

        public void clearFormulaSelection()
        Removes all keyboard selection variables, clears paint
      • moveFormulaCellSelection

        public void moveFormulaCellSelection​(boolean shiftPressed,
                                             boolean up,
                                             boolean right,
                                             boolean down)
      • checkKeyboardNavigation

        public void checkKeyboardNavigation()
        Checks the char before the current caret pos, and enables or disables keyboard selection of cells accordingly.
      • 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

        public void setSelectedCellAddress​(String selection)
      • setCellPlainValue

        public void setCellPlainValue​(String plainValue)
      • setCellFormulaValue

        public void setCellFormulaValue​(String formula)
      • clear

        public void clear()
      • getFormulaFieldValue

        public String 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.
      • isKeyboardNavigationEnabled

        public boolean isKeyboardNavigationEnabled()
        If arrow key events should be processed normally, or as cell selection for the 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

        public void setNamedRanges​(List<String> namedRanges)
      • isInFullFocus

        public boolean isInFullFocus()
      • setInFullFocus

        public void setInFullFocus​(boolean inFullFocus)
      • isInlineEdit

        public boolean isInlineEdit()
      • setInlineEdit

        public void setInlineEdit​(boolean inlineEdit)
      • hasLightFocus

        public boolean hasLightFocus()