com.alkacon.geranium.client.util
public class ScrollToBottomHandler extends java.lang.Object implements com.google.gwt.event.dom.client.ScrollHandler
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Constructor and Description |
|---|
ScrollToBottomHandler(java.lang.Runnable callback)
Constructs a new scroll handler.
|
ScrollToBottomHandler(java.lang.Runnable callback,
int scrollThreshold)
Constructs a new scroll handler with a custom scroll threshold.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onScroll(com.google.gwt.event.dom.client.ScrollEvent event) |
public static final int DEFAULT_SCROLL_THRESHOLD
protected boolean m_enabled
public ScrollToBottomHandler(java.lang.Runnable callback)
callback - the action which should be executed when the user scrolls to the bottom.public ScrollToBottomHandler(java.lang.Runnable callback,
int scrollThreshold)
callback - the action which should be executed when the user scrolls to the bottom.scrollThreshold - the scroll threshold