public static interface Component.CanAcceptScrollListener
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
canAcceptScroll(Component component,
int direction,
boolean acceptInDefault) |
Invoked before component accept scrolling gesture.
|
boolean canAcceptScroll(Component component, int direction, boolean acceptInDefault)
component - Indicates a component which is ready to accept scrolling gesture.direction - Indicates the dragging direction. The value can be one of the following:
Component.DRAG_UP, Component.DRAG_DOWN, Component.DRAG_LEFT, or Component.DRAG_RIGHT.acceptInDefault - Indicates the suggested result. If a ListContainer has reached bottom for example,
then the default suggested result is false when a Component.DRAG_UP gesture is ready.