com.vaadin.client.widget.grid.
Interface AutoScroller.AutoScrollerCallback
-
Enclosing class:
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 Summary
All Methods Modifier and Type Method Description void
onAutoScroll​(int scrollDiff)
Triggered when doing automatic scrolling.
void
onAutoScrollReachedMax()
Triggered when the grid scroll has reached the max scroll position.
void
onAutoScrollReachedMin()
Triggered when the grid scroll has reached the minimum scroll position.
-
-
-
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.
-
-