Class CmsResultsTab.CmsAsynchronousScrollToBottomHandler
java.lang.Object
org.opencms.ade.galleries.client.ui.CmsResultsTab.CmsAsynchronousScrollToBottomHandler
- All Implemented Interfaces:
com.google.gwt.event.dom.client.ScrollHandler
,com.google.gwt.event.shared.EventHandler
- Enclosing class:
- CmsResultsTab
protected class CmsResultsTab.CmsAsynchronousScrollToBottomHandler
extends Object
implements com.google.gwt.event.dom.client.ScrollHandler
Scroll handler which executes an action when the user has scrolled to the bottom.
- Since:
- 8.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
If the lower edge of the content being scrolled is at most this many pixels below the lower edge of the scrolling viewport, the action is triggered. -
Constructor Summary
ConstructorDescriptionConstructs a new scroll handler with a custom scroll threshold. -
Method Summary
Modifier and TypeMethodDescriptionvoid
onScroll
(com.google.gwt.event.dom.client.ScrollEvent event)
-
Field Details
-
DEFAULT_SCROLL_THRESHOLD
If the lower edge of the content being scrolled is at most this many pixels below the lower edge of the scrolling viewport, the action is triggered.- See Also:
-
-
Constructor Details
-
CmsAsynchronousScrollToBottomHandler
public CmsAsynchronousScrollToBottomHandler()Constructs a new scroll handler with a custom scroll threshold. The scroll threshold is the distance from the bottom edge of the scrolled content such that when the distance from the bottom edge of the scroll viewport to the bottom edge of the scrolled content becomes lower than the distance, the scroll action is triggered.
-
-
Method Details
-
onScroll
- Specified by:
onScroll
in interfacecom.google.gwt.event.dom.client.ScrollHandler
- See Also:
-
ScrollHandler.onScroll(com.google.gwt.event.dom.client.ScrollEvent)
-