Package eu.webtoolkit.jwt
Class WScrollEvent
java.lang.Object
eu.webtoolkit.jwt.WScrollEvent
- All Implemented Interfaces:
WAbstractEvent
public class WScrollEvent extends java.lang.Object implements WAbstractEvent
A class providing details for a scroll event.
- See Also:
WContainerWidget.scrolled()
-
Constructor Summary
Constructors Constructor Description WScrollEvent()
Default constructor. -
Method Summary
Modifier and Type Method Description WAbstractEvent
createFromJSEvent(eu.webtoolkit.jwt.JavaScriptEvent jsEvent)
Internal method.int
getScrollX()
Returns the current horizontal scroll position.int
getScrollY()
Returns the current vertical scroll position.int
getViewportHeight()
Returns the current horizontal viewport height.int
getViewportWidth()
Returns the current horizontal viewport width.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WScrollEvent
public WScrollEvent()Default constructor.
-
-
Method Details
-
getScrollX
public int getScrollX()Returns the current horizontal scroll position.- See Also:
getScrollY()
,getViewportWidth()
-
getScrollY
public int getScrollY()Returns the current vertical scroll position.- See Also:
getScrollX()
,getViewportHeight()
-
getViewportWidth
public int getViewportWidth()Returns the current horizontal viewport width.Returns the current viewport width.
- See Also:
getViewportHeight()
,getScrollX()
-
getViewportHeight
public int getViewportHeight()Returns the current horizontal viewport height.Returns the current viewport height.
- See Also:
getViewportWidth()
,getScrollY()
-
createFromJSEvent
Description copied from interface:WAbstractEvent
Internal method.- Specified by:
createFromJSEvent
in interfaceWAbstractEvent
-