public class ScrollEvent extends Event
Constructor and Description |
---|
ScrollEvent(java.lang.String name,
Component target,
double pos)
Constructs an scroll-relevant event.
|
ScrollEvent(java.lang.String name,
Component target,
double dPos,
boolean outBound)
Constructs an scroll-relevant event.
|
ScrollEvent(java.lang.String name,
Component target,
int pos)
Constructs an scroll-relevant event.
|
ScrollEvent(java.lang.String name,
Component target,
int pos,
boolean outBound)
Constructs an scroll-relevant event.
|
Modifier and Type | Method and Description |
---|---|
int |
getPos()
Returns the position.
|
double |
getPosInDouble()
Returns the position.
|
static ScrollEvent |
getScrollEvent(AuRequest request)
Converts an AU request to a scroll event.
|
boolean |
isOutOfBound()
Return true if the scroll position is outside of boundary on tablet/mobile device.
|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
public ScrollEvent(java.lang.String name, Component target, int pos)
pos
- the new positionpublic ScrollEvent(java.lang.String name, Component target, double pos)
pos
- the new positionpublic ScrollEvent(java.lang.String name, Component target, int pos, boolean outBound)
pos
- the new positionoutBound
- the position is outside the boundary or not (only used on tablet/mobile device)public ScrollEvent(java.lang.String name, Component target, double dPos, boolean outBound)
dPos
- the new positionoutBound
- the position is outside the boundary or not (only used on tablet/mobile device)public static final ScrollEvent getScrollEvent(AuRequest request)
public final int getPos()
public final double getPosInDouble()
public boolean isOutOfBound()
Copyright © 2005-2022 Potix Corporation. All Rights Reserved.