Interface AutoScroller.AutoScrollerCallback

  • Enclosing class:
    AutoScroller

    public static interface AutoScroller.AutoScrollerCallback
    Callback that notifies when the cursor is on top of a new row or column because of the automatic scrolling.
    • Method Detail

      • onAutoScroll

        void onAutoScroll​(int scrollDiff)
        Triggered when doing automatic scrolling.

        Because the auto scroller currently only supports scrolling in one axis, this method is used for both vertical and horizontal scrolling.

        Parameters:
        scrollDiff - the amount of pixels that have been auto scrolled since last call
      • onAutoScrollReachedMin

        void onAutoScrollReachedMin()
        Triggered when the grid scroll has reached the minimum scroll position. Depending on the scroll axis, either scrollLeft or scrollTop is 0.
      • onAutoScrollReachedMax

        void onAutoScrollReachedMax()
        Triggered when the grid scroll has reached the max scroll position. Depending on the scroll axis, either scrollLeft or scrollTop is at its maximum value.