|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.event.Event org.zkoss.zk.ui.event.ScrollEvent
public class ScrollEvent
Represents an event caused by that user is scrolling or has scrolled at the client.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.zkoss.zk.ui.event.Event |
---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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)Method Detail |
---|
public static final ScrollEvent getScrollEvent(AuRequest request)
public final int getPos()
public final double getPosInDouble()
public boolean isOutOfBound()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |