public class CmsScrollToBottomHandler
extends java.lang.Object
implements com.google.gwt.event.dom.client.ScrollHandler
限定符和类型 | 字段和说明 |
---|---|
static int |
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.
|
protected boolean |
m_enabled
An internal flag that, if false, prevents the scroll action from being executed.
|
构造器和说明 |
---|
CmsScrollToBottomHandler(java.lang.Runnable callback)
Constructs a new scroll handler.
|
CmsScrollToBottomHandler(java.lang.Runnable callback,
int scrollThreshold)
Constructs a new scroll handler with a custom scroll threshold.
|
限定符和类型 | 方法和说明 |
---|---|
void |
onScroll(com.google.gwt.event.dom.client.ScrollEvent event) |
public static final int DEFAULT_SCROLL_THRESHOLD
protected boolean m_enabled
public CmsScrollToBottomHandler(java.lang.Runnable callback)
callback
- the action which should be executed when the user scrolls to the bottom.public CmsScrollToBottomHandler(java.lang.Runnable callback, int scrollThreshold)
callback
- the action which should be executed when the user scrolls to the bottom.scrollThreshold
- the scroll threshold