public static interface Component.ScrolledListener
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onContentScrolled(Component component,
int scrollX,
int scrollY,
int oldScrollX,
int oldScrollY) |
Processes a scrolling event dispatched to a component.
|
default void |
scrolledStageUpdate(Component component,
int newStage) |
Checks for scrolling stage changes of a component.
|
void onContentScrolled(Component component, int scrollX, int scrollY, int oldScrollX, int oldScrollY)
component - Indicates the component to which the scrolling event is dispatched.scrollX - Indicates the X position after scrolling.scrollY - Indicates the Y position after scrolling.oldScrollX - Indicates the X position before scrollingoldScrollY - Indicates the Y position before scrolling.default void scrolledStageUpdate(Component component, int newStage)
component - Indicates the component whose scrolling stage has changed.newStage - Indicates the updated scrolling stage. The value can be one of the
following: Component.SCROLL_IDLE_STAGE, Component.SCROLL_NORMAL_STAGE,
or Component.SCROLL_AUTO_STAGE.