qx.ui.table.pane
Class Scroller

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.core.Widget
              extended by qx.ui.core.Parent
                  extended by qx.ui.layout.BoxLayout
                      extended by qx.ui.layout.VerticalBoxLayout
                          extended by qx.ui.table.pane.Scroller

public class Scroller
extends VerticalBoxLayout

Shows a whole meta column. This includes a TablePaneHeader, a TablePane and the needed scroll bars. This class handles the virtual scrolling and does all the mouse event handling.


Field Summary
 
Fields inherited from class qx.ui.core.Widget
AUTO
 
Constructor Summary
Scroller()
           
Scroller(Table table)
           
 
Method Summary
 void _afterAppear()
           
 void _applyHorizontalScrollBarVisible(boolean value, boolean old)
          Applies changes of the property value of the property horizontalScrollBarVisible.
 void _applyScrollTimeout(java.lang.Integer value, java.lang.Integer old)
          Applies changes of the property value of the property scrollTimeout.
 void _applyShowCellFocusIndicator(boolean value, boolean old)
          Applies changes of the property value of the property showCellFocusIndicator.
 void _applyTablePaneModel(Model value, Model old)
          Applies changes of the property value of the property tablePaneModel.
 void _applyVerticalScrollBarVisible(boolean value, boolean old)
          Applies changes of the property value of the property verticalScrollBarVisible.
 void _changeInnerHeight(java.lang.Object vNew, java.lang.Object vOld)
           
 void _focusCellAtPagePos(java.lang.Integer pageX, java.lang.Integer pageY)
          Sets the focus to the cell that’s located at the page position pageX/pageY.
 java.lang.Integer _getColumnForPageX(java.lang.Integer pageX)
          Returns the model index of the column the mouse is over or null if the mouse is not over a column.
 java.lang.Integer _getResizeColumnForPageX(java.lang.Integer pageX)
          Returns the model index of the column that should be resized when dragging starts here.
 java.lang.Integer _getRowForPagePos(java.lang.Integer pageX, java.lang.Integer pageY)
          Returns the model index of the row the mouse is currently over.
 void _hideResizeLine()
          Hides the resize line.
 void _onCellEditorModalWindowClose(java.lang.Object evt)
          Event handler.
 void _onChangeCaptureHeader(java.lang.Object e)
          Event handler.
 void _onclickHeader(java.lang.Object evt)
          Event handler.
 void _onclickPane(java.lang.Object evt)
          Event handler.
 void _onColOrderChanged(java.lang.Object evt)
          Event handler.
 void _onColVisibilityChanged(java.lang.Object evt)
          Event handler.
 void _onColWidthChanged(java.lang.Object evt)
          Event handler.
 void _onContextMenu(MouseEvent evt)
          Event handler.
 void _ondblclickPane(java.lang.Object evt)
          Event handler.
 void _onFocusChanged(java.lang.Object evt)
          Event handler.
 void _oninterval()
          Timer event handler.
 void _onKeepFirstVisibleRowCompleteChanged()
          Event handler.
 void _onmousedownHeader(java.lang.Object evt)
          Event handler.
 void _onmousedownPane(java.lang.Object evt)
          Event handler.
 void _onmousemoveHeader(java.lang.Object evt)
          Event handler.
 void _onmousemovePane(java.lang.Object evt)
          Event handler.
 void _onmouseout(java.lang.Object evt)
          Event handler.
 void _onMouseupFocusIndicator(java.lang.Object e)
           
 void _onmouseupHeader(java.lang.Object evt)
          Event handler.
 void _onmouseupPane(java.lang.Object evt)
          Event handler.
 void _onmousewheel(java.lang.Object evt)
          Event handler.
 void _onPaneModelChanged(java.lang.Object evt)
          Event handler.
 void _onScrollX(java.lang.Object evt)
          Event handler.
 void _onScrollY(java.lang.Object evt)
          Event handler.
 void _onSelectionChanged(java.lang.Object evt)
          Event handler.
 void _onTableModelDataChanged(java.lang.Object evt)
          Event handler.
 void _onTableModelMetaDataChanged(java.lang.Object evt)
          Event handler.
 void _postponedUpdateContent()
          Does a postponed update of the content.
 void _showResizeLine(java.lang.Integer x)
          Shows the resize line.
 void _startMoveHeader(java.lang.Integer moveCol, java.lang.Integer pageX)
          Start a move session of the header.
 void _startResizeHeader(java.lang.Integer resizeCol, java.lang.Integer pageX)
          Start a resize session of the header.
 void _stopMoveHeader()
          Stop a move session of the header.
 void _stopResizeHeader()
          Stop a resize session of the header.
 void _updateContent()
          Updates the content.
 void _updateFocusIndicator()
          Updates the location and the visibility of the focus indicator.
 void _updateHorScrollBarMaximum()
          Updates the maximum of the horizontal scroll bar, so it corresponds to the total width of the columns in the table pane.
 void _updateVerScrollBarMaximum()
          Updates the maximum of the vertical scroll bar, so it corresponds to the number of rows in the table.
 void cancelEditing()
          Stops editing without writing the editor’s value to the model.
 void flushEditor()
          Writes the editor’s value to the model.
 boolean getFocusCellOnMouseMove()
          Returns the (computed) value of the property focusCellOnMouseMove.
 java.lang.Integer getFocusedColumn()
          Returns the column of currently focused cell.
 java.lang.Integer getFocusedRow()
          Returns the row of currently focused cell.
 Header getHeader()
          Returns the header.
 boolean getHorizontalScrollBarVisible()
          Returns the (computed) value of the property horizontalScrollBarVisible.
 boolean getLiveResize()
          Returns the (computed) value of the property liveResize.
 java.lang.Integer getNeededScrollBars(boolean forceHorizontal, boolean preventVertical)
          Returns which scrollbars are needed.
 java.lang.Integer getScrollTimeout()
          Returns the (computed) value of the property scrollTimeout.
 java.lang.Integer getScrollX()
          Get the current position of the vertical scroll bar.
 java.lang.Integer getScrollY()
          Get the current position of the vertical scroll bar.
 boolean getSelectBeforeFocus()
          Returns the (computed) value of the property selectBeforeFocus.
 boolean getShowCellFocusIndicator()
          Returns the (computed) value of the property showCellFocusIndicator.
 Table getTable()
          Returns the table this scroller belongs to.
 Pane getTablePane()
          Returns the table pane.
 Model getTablePaneModel()
          Returns the (computed) value of the property tablePaneModel.
 boolean getVerticalScrollBarVisible()
          Returns the (computed) value of the property verticalScrollBarVisible.
 void hideColumnMoveFeedback()
          Hides the feedback shown while a column is moved by the user.
 void initFocusCellOnMouseMove(boolean arg)
          Calls the apply method and dispatches the change event of the property focusCellOnMouseMove with the default value defined by the class developer.
 void initHorizontalScrollBarVisible(boolean arg)
          Calls the apply method and dispatches the change event of the property horizontalScrollBarVisible with the default value defined by the class developer.
 void initLiveResize(boolean arg)
          Calls the apply method and dispatches the change event of the property liveResize with the default value defined by the class developer.
 void initScrollTimeout(java.lang.Integer arg)
          Calls the apply method and dispatches the change event of the property scrollTimeout with the default value defined by the class developer.
 void initSelectBeforeFocus(boolean arg)
          Calls the apply method and dispatches the change event of the property selectBeforeFocus with the default value defined by the class developer.
 void initShowCellFocusIndicator(boolean arg)
          Calls the apply method and dispatches the change event of the property showCellFocusIndicator with the default value defined by the class developer.
 void initTablePaneModel(Model arg)
          Calls the apply method and dispatches the change event of the property tablePaneModel with the default value defined by the class developer.
 void initVerticalScrollBarVisible(boolean arg)
          Calls the apply method and dispatches the change event of the property verticalScrollBarVisible with the default value defined by the class developer.
 java.lang.Object isEditing()
          Returns whether currently a cell is editing.
 boolean isFocusCellOnMouseMove()
          Check whether the (computed) value of the boolean property focusCellOnMouseMove equals true.
 boolean isHorizontalScrollBarVisible()
          Check whether the (computed) value of the boolean property horizontalScrollBarVisible equals true.
 boolean isLiveResize()
          Check whether the (computed) value of the boolean property liveResize equals true.
 boolean isSelectBeforeFocus()
          Check whether the (computed) value of the boolean property selectBeforeFocus equals true.
 boolean isShowCellFocusIndicator()
          Check whether the (computed) value of the boolean property showCellFocusIndicator equals true.
 boolean isVerticalScrollBarVisible()
          Check whether the (computed) value of the boolean property verticalScrollBarVisible equals true.
 void resetFocusCellOnMouseMove()
          Resets the user value of the property focusCellOnMouseMove.
 void resetHorizontalScrollBarVisible()
          Resets the user value of the property horizontalScrollBarVisible.
 void resetLiveResize()
          Resets the user value of the property liveResize.
 void resetScrollTimeout()
          Resets the user value of the property scrollTimeout.
 void resetSelectBeforeFocus()
          Resets the user value of the property selectBeforeFocus.
 void resetShowCellFocusIndicator()
          Resets the user value of the property showCellFocusIndicator.
 void resetTablePaneModel()
          Resets the user value of the property tablePaneModel.
 void resetVerticalScrollBarVisible()
          Resets the user value of the property verticalScrollBarVisible.
 void scrollCellVisible(java.lang.Integer col, java.lang.Integer row)
          Scrolls a cell visible.
 void setFocusCellOnMouseMove(boolean arg)
          Sets the user value of the property focusCellOnMouseMove.
 void setFocusedCell(java.lang.Integer col, java.lang.Integer row)
          Sets the currently focused cell.
 void setHorizontalScrollBarVisible(boolean arg)
          Sets the user value of the property horizontalScrollBarVisible.
 void setLiveResize(boolean arg)
          Sets the user value of the property liveResize.
 void setScrollTimeout(java.lang.Integer arg)
          Sets the user value of the property scrollTimeout.
 void setScrollX(java.lang.Integer scrollX)
          Set the current position of the vertical scroll bar.
 void setScrollY(java.lang.Integer scrollY, boolean renderSync)
          Set the current position of the vertical scroll bar.
 void setSelectBeforeFocus(boolean arg)
          Sets the user value of the property selectBeforeFocus.
 void setShowCellFocusIndicator(boolean arg)
          Sets the user value of the property showCellFocusIndicator.
 void setTablePaneModel(Model arg)
          Sets the user value of the property tablePaneModel.
 void setTopRightWidget(Widget widget)
          Sets the widget that should be shown in the top right corner.
 void setVerticalScrollBarVisible(boolean arg)
          Sets the user value of the property verticalScrollBarVisible.
 java.lang.Integer showColumnMoveFeedback(java.lang.Integer pageX)
          Shows the feedback shown while a column is moved by the user.
 boolean startEditing()
          Starts editing the currently focused cell.
 void stopEditing()
          Stops editing and writes the editor’s value to the model.
 boolean toggleFocusCellOnMouseMove()
          Toggles the (computed) value of the boolean property focusCellOnMouseMove.
 boolean toggleHorizontalScrollBarVisible()
          Toggles the (computed) value of the boolean property horizontalScrollBarVisible.
 boolean toggleLiveResize()
          Toggles the (computed) value of the boolean property liveResize.
 boolean toggleSelectBeforeFocus()
          Toggles the (computed) value of the boolean property selectBeforeFocus.
 boolean toggleShowCellFocusIndicator()
          Toggles the (computed) value of the boolean property showCellFocusIndicator.
 boolean toggleVerticalScrollBarVisible()
          Toggles the (computed) value of the boolean property verticalScrollBarVisible.
 
Methods inherited from class qx.ui.layout.BoxLayout
_applyHorizontalChildrenAlign, _applyOrientation, _applyReverseChildrenOrder, _applySpacing, _applyStretchChildrenOrthogonalAxis, _applyUseAdvancedFlexAllocation, _applyVerticalChildrenAlign, _computeAccumulatedChildrenOuterHeight, _computeAccumulatedChildrenOuterWidth, _createLayoutImpl, _doLayout, _doLayoutOrder, _invalidateLayoutMode, _recomputeChildrenStretchingX, _recomputeChildrenStretchingY, _updateLayoutMode, getHorizontalChildrenAlign, getLayoutMode, getOrientation, getReverseChildrenOrder, getSpacing, getStretchChildrenOrthogonalAxis, getUseAdvancedFlexAllocation, getVerticalChildrenAlign, initHorizontalChildrenAlign, initOrientation, initReverseChildrenOrder, initSpacing, initStretchChildrenOrthogonalAxis, initUseAdvancedFlexAllocation, initVerticalChildrenAlign, isHorizontal, isReverseChildrenOrder, isStretchChildrenOrthogonalAxis, isUseAdvancedFlexAllocation, isVertical, resetHorizontalChildrenAlign, resetOrientation, resetReverseChildrenOrder, resetSpacing, resetStretchChildrenOrthogonalAxis, resetUseAdvancedFlexAllocation, resetVerticalChildrenAlign, setHorizontalChildrenAlign, setOrientation, setReverseChildrenOrder, setSpacing, setStretchChildrenOrthogonalAxis, setUseAdvancedFlexAllocation, setVerticalChildrenAlign, toggleReverseChildrenOrder, toggleStretchChildrenOrthogonalAxis, toggleUseAdvancedFlexAllocation
 
Methods inherited from class qx.ui.core.Parent
_addChildrenToLayoutQueue, _addChildrenToStateQueue, _addChildToChildrenQueue, _afterDisappear, _afterInsertDom, _afterRemoveDom, _applyActiveChild, _applyFocusedChild, _applyFocusHandler, _beforeAppear, _beforeDisappear, _beforeInsertDom, _beforeRemoveDom, _changeInnerWidth, _computePreferredInnerHeight, _computePreferredInnerWidth, _computeVisibleChildren, _flushChildrenQueue, _handleDisplayableCustom, _layoutChild, _layoutPost, _onfocuskeyevent, _recursiveAppearanceThemeUpdate, _removeChildFromChildrenQueue, activateFocusRoot, add, addAfter, addAt, addAtBegin, addAtEnd, addBefore, contains, forEachChild, forEachVisibleChild, getActiveChild, getChildren, getChildrenLength, getFirstActiveChild, getFirstChild, getFirstVisibleChild, getFocusedChild, getFocusHandler, getFocusRoot, getInnerHeightForChild, getInnerWidthForChild, getLastActiveChild, getLastChild, getLastVisibleChild, getLayoutImpl, getVisibleChildrenLength, hasChildren, hasVisibleChildren, indexOf, initActiveChild, initFocusedChild, initFocusHandler, isEmpty, isFocusRoot, isVisibleEmpty, recursiveAddToStateQueue, remapChildrenHandlingTo, remove, removeAll, removeAt, resetActiveChild, resetFocusedChild, resetFocusHandler, setActiveChild, setFocusedChild, setFocusHandler
 
Methods inherited from class qx.ui.core.Widget
_applyAppearance, _applyBackgroundColor, _applyBackgroundImage, _applyBackgroundRepeat, _applyBorder, _applyBottom, _applyCapture, _applyClip, _applyCommand, _applyCursor, _applyDisplay, _applyElement, _applyElementData, _applyEnabled, _applyFocused, _applyFont, _applyHeight, _applyHideFocus, _applyHtmlAttributes, _applyHtmlProperties, _applyLeft, _applyMarginBottom, _applyMarginLeft, _applyMarginRight, _applyMarginTop, _applyMaxHeight, _applyMaxWidth, _applyMinHeight, _applyMinWidth, _applyOpacity, _applyOverflow, _applyPaddingBottom, _applyPaddingLeft, _applyPaddingRight, _applyPaddingTop, _applyParent, _applyRight, _applySelectable, _applyStateStyleFocus, _applyStyleProperties, _applyTabIndex, _applyTextColor, _applyTop, _applyVisibility, _applyWidth, _applyZIndex, _checkParent, _compileClipString, _computeBoxHeight, _computeBoxHeightFallback, _computeBoxWidth, _computeBoxWidthFallback, _computeDisplayable, _computeFrameHeight, _computeFrameWidth, _computeHasAutoX, _computeHasAutoY, _computeHasFlexX, _computeHasFlexY, _computeHasPercentX, _computeHasPercentY, _computeInnerHeight, _computeInnerWidth, _computeOuterHeight, _computeOuterWidth, _computePreferredBoxHeight, _computePreferredBoxWidth, _computeValuePercentX, _computeValuePercentXLimit, _computeValuePercentY, _computeValuePercentYLimit, _computeValuePixel, _computeValuePixelLimit, _createElementImpl, _evalUnitsPixelPercent, _evalUnitsPixelPercentAuto, _evalUnitsPixelPercentAutoFlex, _flushJobQueue, _generateHtmlId, _getTargetNode, _handleDisplayable, _invalidateFrameDimensions, _invalidatePreferredInnerDimensions, _queueBorder, _recomputeFlexX, _recomputeFlexY, _recomputePercentX, _recomputePercentY, _recomputeRangeX, _recomputeRangeY, _recomputeStretchingX, _recomputeStretchingY, _renderAppearance, _renderOverflow, _resetAppearanceThemeWrapper, _styleBackgroundColor, _styleBackgroundImage, _styleFromMap, _unitDetectionPixelPercent, _unitDetectionPixelPercentAuto, _unitDetectionPixelPercentAutoFlex, _unstyleFromArray, _visualizeBlur, _visualizeFocus, _visualPropertyCheck, addState, addToDocument, addToJobQueue, addToLayoutChanges, addToQueue, addToQueueRuntime, addToStateQueue, auto, blur, connect, contains, disconnect, execute, focus, getAllowStretchX, getAllowStretchY, getAnonymous, getAppearance, getBackgroundColor, getBackgroundImage, getBackgroundRepeat, getBorder, getBottom, getBottomValue, getCapture, getClientHeight, getClientWidth, getClipHeight, getClipLeft, getClipTop, getClipWidth, getCommand, getContextMenu, getCursor, getDisplay, getDropDataTypes, getElement, getEnabled, getEnableElementFocus, getFocused, getFont, getHeight, getHeightValue, getHideFocus, getHorizontalAlign, getHtmlAttribute, getHtmlProperty, getLeft, getLeftValue, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getMaxHeight, getMaxHeightValue, getMaxWidth, getMaxWidthValue, getMinHeight, getMinHeightValue, getMinWidth, getMinWidthValue, getNeededHeight, getNeededWidth, getNextActiveSibling, getNextSibling, getNextVisibleSibling, getOffsetHeight, getOffsetLeft, getOffsetTop, getOffsetWidth, getOpacity, getOverflow, getOverflowX, getOverflowY, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getPreviousActiveSibling, getPreviousSibling, getPreviousVisibleSibling, getRight, getRightValue, getScrollHeight, getScrollLeft, getScrollTop, getScrollWidth, getSelectable, getStyleProperty, getSupportsDropMethod, getTabIndex, getTextColor, getToolTip, getTop, getTopLevelWidget, getTopValue, getVerticalAlign, getVisibility, getVisibleChildren, getWidth, getWidthValue, getZIndex, hasState, hide, indexOf, initAllowStretchX, initAllowStretchY, initAnonymous, initAppearance, initBackgroundColor, initBackgroundImage, initBackgroundRepeat, initBorder, initBottom, initCapture, initClipHeight, initClipLeft, initClipTop, initClipWidth, initCommand, initContextMenu, initCursor, initDisplay, initDropDataTypes, initElement, initEnabled, initEnableElementFocus, initFocused, initFont, initHeight, initHideFocus, initHorizontalAlign, initLeft, initMarginBottom, initMarginLeft, initMarginRight, initMarginTop, initMaxHeight, initMaxWidth, initMinHeight, initMinWidth, initOpacity, initOverflow, initPaddingBottom, initPaddingLeft, initPaddingRight, initPaddingTop, initParent, initRight, initSelectable, initSupportsDropMethod, initTabIndex, initTextColor, initToolTip, initTop, initVerticalAlign, initVisibility, initWidth, initZIndex, isAllowStretchX, isAllowStretchY, isAnonymous, isAppearRelevant, isCapture, isCreated, isDisplay, isDisplayable, isEnabled, isEnableElementFocus, isFirstChild, isFirstVisibleChild, isFocusable, isFocused, isHideFocus, isLastChild, isLastVisibleChild, isMaterialized, isSeeable, isSelectable, isVisibility, moveSelfAfter, moveSelfBefore, moveSelfToBegin, moveSelfToEnd, pack, removeHtmlAttribute, removeHtmlProperty, removeState, removeStyleProperty, renderPadding, resetAlign, resetAllowStretchX, resetAllowStretchY, resetAnonymous, resetAppearance, resetBackgroundColor, resetBackgroundImage, resetBackgroundRepeat, resetBorder, resetBottom, resetCapture, resetClip, resetClipDimension, resetClipHeight, resetClipLeft, resetClipLocation, resetClipTop, resetClipWidth, resetCommand, resetContextMenu, resetCursor, resetDimension, resetDisplay, resetDropDataTypes, resetEdge, resetElement, resetEnabled, resetEnableElementFocus, resetFocused, resetFont, resetHeight, resetHeights, resetHideFocus, resetHorizontalAlign, resetLeft, resetLocation, resetMargin, resetMarginBottom, resetMarginLeft, resetMarginRight, resetMarginTop, resetMaxHeight, resetMaxWidth, resetMinHeight, resetMinWidth, resetOpacity, resetOverflow, resetPadding, resetPaddingBottom, resetPaddingLeft, resetPaddingRight, resetPaddingTop, resetParent, resetRight, resetSelectable, resetSpace, resetSupportsDropMethod, resetTabIndex, resetTextColor, resetToolTip, resetTop, resetVerticalAlign, resetVisibility, resetWidth, resetWidths, resetZIndex, scrollIntoView, scrollIntoViewX, scrollIntoViewY, setAlign, setAllowStretchX, setAllowStretchY, setAnonymous, setAppearance, setBackgroundColor, setBackgroundImage, setBackgroundRepeat, setBorder, setBottom, setCapture, setClip, setClipDimension, setClipHeight, setClipLeft, setClipLocation, setClipTop, setClipWidth, setCommand, setContextMenu, setCursor, setDimension, setDisplay, setDropDataTypes, setEdge, setElement, setEnabled, setEnableElementFocus, setFocused, setFont, setHeight, setHeights, setHideFocus, setHorizontalAlign, setHtmlAttribute, setHtmlProperty, setLeft, setLocation, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOverflow, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParent, setRight, setScrollLeft, setScrollTop, setSelectable, setSpace, setStyleProperty, setSupportsDropMethod, setTabIndex, setTextColor, setToolTip, setTop, setVerticalAlign, setVisibility, setWidth, setWidths, setZIndex, show, supportsDrop, toggleAllowStretchX, toggleAllowStretchY, toggleAnonymous, toggleCapture, toggleDisplay, toggleEnabled, toggleEnableElementFocus, toggleFocused, toggleHideFocus, toggleSelectable, toggleVisibility
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Scroller

public Scroller()

Scroller

public Scroller(Table table)
Method Detail

_afterAppear

public void _afterAppear()
Overrides:
_afterAppear in class Parent

_applyHorizontalScrollBarVisible

public void _applyHorizontalScrollBarVisible(boolean value,
                                             boolean old)

Applies changes of the property value of the property horizontalScrollBarVisible.

For further details take a look at the property definition: _applyHorizontalScrollBarVisible(boolean, boolean).


_applyScrollTimeout

public void _applyScrollTimeout(java.lang.Integer value,
                                java.lang.Integer old)

Applies changes of the property value of the property scrollTimeout.

For further details take a look at the property definition: _applyScrollTimeout(java.lang.Integer, java.lang.Integer).


_applyShowCellFocusIndicator

public void _applyShowCellFocusIndicator(boolean value,
                                         boolean old)

Applies changes of the property value of the property showCellFocusIndicator.

For further details take a look at the property definition: _applyShowCellFocusIndicator(boolean, boolean).


_applyTablePaneModel

public void _applyTablePaneModel(Model value,
                                 Model old)

Applies changes of the property value of the property tablePaneModel.

For further details take a look at the property definition: _applyTablePaneModel(qx.ui.table.pane.Model, qx.ui.table.pane.Model).


_applyVerticalScrollBarVisible

public void _applyVerticalScrollBarVisible(boolean value,
                                           boolean old)

Applies changes of the property value of the property verticalScrollBarVisible.

For further details take a look at the property definition: _applyVerticalScrollBarVisible(boolean, boolean).


_changeInnerHeight

public void _changeInnerHeight(java.lang.Object vNew,
                               java.lang.Object vOld)
Overrides:
_changeInnerHeight in class Parent

_focusCellAtPagePos

public void _focusCellAtPagePos(java.lang.Integer pageX,
                                java.lang.Integer pageY)

Sets the focus to the cell that’s located at the page position pageX/pageY. If there is no cell at that position, nothing happens.


_getColumnForPageX

public java.lang.Integer _getColumnForPageX(java.lang.Integer pageX)

Returns the model index of the column the mouse is over or null if the mouse is not over a column.


_getResizeColumnForPageX

public java.lang.Integer _getResizeColumnForPageX(java.lang.Integer pageX)

Returns the model index of the column that should be resized when dragging starts here. Returns -1 if the mouse is in no resize region of any column.


_getRowForPagePos

public java.lang.Integer _getRowForPagePos(java.lang.Integer pageX,
                                           java.lang.Integer pageY)

Returns the model index of the row the mouse is currently over. Returns -1 if the mouse is over the header. Returns null if the mouse is not over any column.


_hideResizeLine

public void _hideResizeLine()

Hides the resize line.


_onCellEditorModalWindowClose

public void _onCellEditorModalWindowClose(java.lang.Object evt)

Event handler. Called when the modal window of the cell editor closes.


_onChangeCaptureHeader

public void _onChangeCaptureHeader(java.lang.Object e)

Event handler. Called when the event capturing of the header changed. Stops/finishes an active header resize/move session if it lost capturing during the session to stay in a stable state.


_onclickHeader

public void _onclickHeader(java.lang.Object evt)

Event handler. Called when the user clicked a mouse button over the header.


_onclickPane

public void _onclickPane(java.lang.Object evt)

Event handler. Called when the user clicked a mouse button over the pane.


_onColOrderChanged

public void _onColOrderChanged(java.lang.Object evt)

Event handler. Called when the column order has changed.


_onColVisibilityChanged

public void _onColVisibilityChanged(java.lang.Object evt)

Event handler. Called when the visibility of a column has changed.


_onColWidthChanged

public void _onColWidthChanged(java.lang.Object evt)

Event handler. Called when the width of a column has changed.


_onContextMenu

public void _onContextMenu(MouseEvent evt)

Event handler. Called when a context menu is invoked in a cell.


_ondblclickPane

public void _ondblclickPane(java.lang.Object evt)

Event handler. Called when the user double clicked a mouse button over the pane.


_onFocusChanged

public void _onFocusChanged(java.lang.Object evt)

Event handler. Called when the table gets or looses the focus.


_oninterval

public void _oninterval()

Timer event handler. Periodically checks whether a tabe update is required. The update interval is controled by the scrollTimeout property.


_onKeepFirstVisibleRowCompleteChanged

public void _onKeepFirstVisibleRowCompleteChanged()

Event handler. Called when the table property “keepFirstVisibleRowComplete” changed.


_onmousedownHeader

public void _onmousedownHeader(java.lang.Object evt)

Event handler. Called when the user pressed a mouse button over the header.


_onmousedownPane

public void _onmousedownPane(java.lang.Object evt)

Event handler. Called when the user pressed a mouse button over the pane.


_onmousemoveHeader

public void _onmousemoveHeader(java.lang.Object evt)

Event handler. Called when the user moved the mouse over the header.


_onmousemovePane

public void _onmousemovePane(java.lang.Object evt)

Event handler. Called when the user moved the mouse over the pane.


_onmouseout

public void _onmouseout(java.lang.Object evt)

Event handler. Called when the mouse moved out.


_onMouseupFocusIndicator

public void _onMouseupFocusIndicator(java.lang.Object e)

_onmouseupHeader

public void _onmouseupHeader(java.lang.Object evt)

Event handler. Called when the user released a mouse button over the header.


_onmouseupPane

public void _onmouseupPane(java.lang.Object evt)

Event handler. Called when the user released a mouse button over the pane.


_onmousewheel

public void _onmousewheel(java.lang.Object evt)

Event handler. Called when the user moved the mouse wheel.


_onPaneModelChanged

public void _onPaneModelChanged(java.lang.Object evt)

Event handler. Called when the pane model has changed.


_onScrollX

public void _onScrollX(java.lang.Object evt)

Event handler. Called when the horizontal scroll bar moved.


_onScrollY

public void _onScrollY(java.lang.Object evt)

Event handler. Called when the vertical scroll bar moved.


_onSelectionChanged

public void _onSelectionChanged(java.lang.Object evt)

Event handler. Called when the selection has changed.


_onTableModelDataChanged

public void _onTableModelDataChanged(java.lang.Object evt)

Event handler. Called when the table model has changed.


_onTableModelMetaDataChanged

public void _onTableModelMetaDataChanged(java.lang.Object evt)

Event handler. Called when the table model meta data has changed.


_postponedUpdateContent

public void _postponedUpdateContent()

Does a postponed update of the content.


_showResizeLine

public void _showResizeLine(java.lang.Integer x)

Shows the resize line.


_startMoveHeader

public void _startMoveHeader(java.lang.Integer moveCol,
                             java.lang.Integer pageX)

Start a move session of the header.


_startResizeHeader

public void _startResizeHeader(java.lang.Integer resizeCol,
                               java.lang.Integer pageX)

Start a resize session of the header.


_stopMoveHeader

public void _stopMoveHeader()

Stop a move session of the header.


_stopResizeHeader

public void _stopResizeHeader()

Stop a resize session of the header.


_updateContent

public void _updateContent()

Updates the content. Sets the right section the table pane should show and does the scrolling.


_updateFocusIndicator

public void _updateFocusIndicator()

Updates the location and the visibility of the focus indicator.


_updateHorScrollBarMaximum

public void _updateHorScrollBarMaximum()

Updates the maximum of the horizontal scroll bar, so it corresponds to the total width of the columns in the table pane.


_updateVerScrollBarMaximum

public void _updateVerScrollBarMaximum()

Updates the maximum of the vertical scroll bar, so it corresponds to the number of rows in the table.


cancelEditing

public void cancelEditing()

Stops editing without writing the editor’s value to the model.


flushEditor

public void flushEditor()

Writes the editor’s value to the model.


getFocusCellOnMouseMove

public boolean getFocusCellOnMouseMove()

Returns the (computed) value of the property focusCellOnMouseMove.

For further details take a look at the property definition: focusCellOnMouseMove.


getFocusedColumn

public java.lang.Integer getFocusedColumn()

Returns the column of currently focused cell.


getFocusedRow

public java.lang.Integer getFocusedRow()

Returns the row of currently focused cell.


getHeader

public Header getHeader()

Returns the header.


getHorizontalScrollBarVisible

public boolean getHorizontalScrollBarVisible()

Returns the (computed) value of the property horizontalScrollBarVisible.

For further details take a look at the property definition: horizontalScrollBarVisible.


getLiveResize

public boolean getLiveResize()

Returns the (computed) value of the property liveResize.

For further details take a look at the property definition: liveResize.


getNeededScrollBars

public java.lang.Integer getNeededScrollBars(boolean forceHorizontal,
                                             boolean preventVertical)

Returns which scrollbars are needed.


getScrollTimeout

public java.lang.Integer getScrollTimeout()

Returns the (computed) value of the property scrollTimeout.

For further details take a look at the property definition: scrollTimeout.


getScrollX

public java.lang.Integer getScrollX()

Get the current position of the vertical scroll bar.


getScrollY

public java.lang.Integer getScrollY()

Get the current position of the vertical scroll bar.


getSelectBeforeFocus

public boolean getSelectBeforeFocus()

Returns the (computed) value of the property selectBeforeFocus.

For further details take a look at the property definition: selectBeforeFocus.


getShowCellFocusIndicator

public boolean getShowCellFocusIndicator()

Returns the (computed) value of the property showCellFocusIndicator.

For further details take a look at the property definition: showCellFocusIndicator.


getTable

public Table getTable()

Returns the table this scroller belongs to.


getTablePane

public Pane getTablePane()

Returns the table pane.


getTablePaneModel

public Model getTablePaneModel()

Returns the (computed) value of the property tablePaneModel.

For further details take a look at the property definition: tablePaneModel.


getVerticalScrollBarVisible

public boolean getVerticalScrollBarVisible()

Returns the (computed) value of the property verticalScrollBarVisible.

For further details take a look at the property definition: verticalScrollBarVisible.


hideColumnMoveFeedback

public void hideColumnMoveFeedback()

Hides the feedback shown while a column is moved by the user.


initFocusCellOnMouseMove

public void initFocusCellOnMouseMove(boolean arg)

Calls the apply method and dispatches the change event of the property focusCellOnMouseMove with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: focusCellOnMouseMove.


initHorizontalScrollBarVisible

public void initHorizontalScrollBarVisible(boolean arg)

Calls the apply method and dispatches the change event of the property horizontalScrollBarVisible with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: horizontalScrollBarVisible.


initLiveResize

public void initLiveResize(boolean arg)

Calls the apply method and dispatches the change event of the property liveResize with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: liveResize.


initScrollTimeout

public void initScrollTimeout(java.lang.Integer arg)

Calls the apply method and dispatches the change event of the property scrollTimeout with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: scrollTimeout.


initSelectBeforeFocus

public void initSelectBeforeFocus(boolean arg)

Calls the apply method and dispatches the change event of the property selectBeforeFocus with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: selectBeforeFocus.


initShowCellFocusIndicator

public void initShowCellFocusIndicator(boolean arg)

Calls the apply method and dispatches the change event of the property showCellFocusIndicator with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: showCellFocusIndicator.


initTablePaneModel

public void initTablePaneModel(Model arg)

Calls the apply method and dispatches the change event of the property tablePaneModel with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: tablePaneModel.


initVerticalScrollBarVisible

public void initVerticalScrollBarVisible(boolean arg)

Calls the apply method and dispatches the change event of the property verticalScrollBarVisible with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: verticalScrollBarVisible.


isEditing

public java.lang.Object isEditing()

Returns whether currently a cell is editing.


isFocusCellOnMouseMove

public boolean isFocusCellOnMouseMove()

Check whether the (computed) value of the boolean property focusCellOnMouseMove equals true.

For further details take a look at the property definition: focusCellOnMouseMove.


isHorizontalScrollBarVisible

public boolean isHorizontalScrollBarVisible()

Check whether the (computed) value of the boolean property horizontalScrollBarVisible equals true.

For further details take a look at the property definition: horizontalScrollBarVisible.


isLiveResize

public boolean isLiveResize()

Check whether the (computed) value of the boolean property liveResize equals true.

For further details take a look at the property definition: liveResize.


isSelectBeforeFocus

public boolean isSelectBeforeFocus()

Check whether the (computed) value of the boolean property selectBeforeFocus equals true.

For further details take a look at the property definition: selectBeforeFocus.


isShowCellFocusIndicator

public boolean isShowCellFocusIndicator()

Check whether the (computed) value of the boolean property showCellFocusIndicator equals true.

For further details take a look at the property definition: showCellFocusIndicator.


isVerticalScrollBarVisible

public boolean isVerticalScrollBarVisible()

Check whether the (computed) value of the boolean property verticalScrollBarVisible equals true.

For further details take a look at the property definition: verticalScrollBarVisible.


resetFocusCellOnMouseMove

public void resetFocusCellOnMouseMove()

Resets the user value of the property focusCellOnMouseMove.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: focusCellOnMouseMove.


resetHorizontalScrollBarVisible

public void resetHorizontalScrollBarVisible()

Resets the user value of the property horizontalScrollBarVisible.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: horizontalScrollBarVisible.


resetLiveResize

public void resetLiveResize()

Resets the user value of the property liveResize.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: liveResize.


resetScrollTimeout

public void resetScrollTimeout()

Resets the user value of the property scrollTimeout.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: scrollTimeout.


resetSelectBeforeFocus

public void resetSelectBeforeFocus()

Resets the user value of the property selectBeforeFocus.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: selectBeforeFocus.


resetShowCellFocusIndicator

public void resetShowCellFocusIndicator()

Resets the user value of the property showCellFocusIndicator.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: showCellFocusIndicator.


resetTablePaneModel

public void resetTablePaneModel()

Resets the user value of the property tablePaneModel.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: tablePaneModel.


resetVerticalScrollBarVisible

public void resetVerticalScrollBarVisible()

Resets the user value of the property verticalScrollBarVisible.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: verticalScrollBarVisible.


scrollCellVisible

public void scrollCellVisible(java.lang.Integer col,
                              java.lang.Integer row)

Scrolls a cell visible.


setFocusCellOnMouseMove

public void setFocusCellOnMouseMove(boolean arg)

Sets the user value of the property focusCellOnMouseMove.

For further details take a look at the property definition: focusCellOnMouseMove.


setFocusedCell

public void setFocusedCell(java.lang.Integer col,
                           java.lang.Integer row)

Sets the currently focused cell.


setHorizontalScrollBarVisible

public void setHorizontalScrollBarVisible(boolean arg)

Sets the user value of the property horizontalScrollBarVisible.

For further details take a look at the property definition: horizontalScrollBarVisible.


setLiveResize

public void setLiveResize(boolean arg)

Sets the user value of the property liveResize.

For further details take a look at the property definition: liveResize.


setScrollTimeout

public void setScrollTimeout(java.lang.Integer arg)

Sets the user value of the property scrollTimeout.

For further details take a look at the property definition: scrollTimeout.


setScrollX

public void setScrollX(java.lang.Integer scrollX)

Set the current position of the vertical scroll bar.


setScrollY

public void setScrollY(java.lang.Integer scrollY,
                       boolean renderSync)

Set the current position of the vertical scroll bar.


setSelectBeforeFocus

public void setSelectBeforeFocus(boolean arg)

Sets the user value of the property selectBeforeFocus.

For further details take a look at the property definition: selectBeforeFocus.


setShowCellFocusIndicator

public void setShowCellFocusIndicator(boolean arg)

Sets the user value of the property showCellFocusIndicator.

For further details take a look at the property definition: showCellFocusIndicator.


setTablePaneModel

public void setTablePaneModel(Model arg)

Sets the user value of the property tablePaneModel.

For further details take a look at the property definition: tablePaneModel.


setTopRightWidget

public void setTopRightWidget(Widget widget)

Sets the widget that should be shown in the top right corner.

The widget will not be disposed, when this table scroller is disposed. So the caller has to dispose it.


setVerticalScrollBarVisible

public void setVerticalScrollBarVisible(boolean arg)

Sets the user value of the property verticalScrollBarVisible.

For further details take a look at the property definition: verticalScrollBarVisible.


showColumnMoveFeedback

public java.lang.Integer showColumnMoveFeedback(java.lang.Integer pageX)

Shows the feedback shown while a column is moved by the user.


startEditing

public boolean startEditing()

Starts editing the currently focused cell. Does nothing if already editing, if the column is not editable, or if the cell editor for the column ascertains that the particular cell is not editable.


stopEditing

public void stopEditing()

Stops editing and writes the editor’s value to the model.


toggleFocusCellOnMouseMove

public boolean toggleFocusCellOnMouseMove()

Toggles the (computed) value of the boolean property focusCellOnMouseMove.

For further details take a look at the property definition: focusCellOnMouseMove.


toggleHorizontalScrollBarVisible

public boolean toggleHorizontalScrollBarVisible()

Toggles the (computed) value of the boolean property horizontalScrollBarVisible.

For further details take a look at the property definition: horizontalScrollBarVisible.


toggleLiveResize

public boolean toggleLiveResize()

Toggles the (computed) value of the boolean property liveResize.

For further details take a look at the property definition: liveResize.


toggleSelectBeforeFocus

public boolean toggleSelectBeforeFocus()

Toggles the (computed) value of the boolean property selectBeforeFocus.

For further details take a look at the property definition: selectBeforeFocus.


toggleShowCellFocusIndicator

public boolean toggleShowCellFocusIndicator()

Toggles the (computed) value of the boolean property showCellFocusIndicator.

For further details take a look at the property definition: showCellFocusIndicator.


toggleVerticalScrollBarVisible

public boolean toggleVerticalScrollBarVisible()

Toggles the (computed) value of the boolean property verticalScrollBarVisible.

For further details take a look at the property definition: verticalScrollBarVisible.



Copyright © 2008 1&1. All Rights Reserved.