Package eu.webtoolkit.jwt
Class WScrollEvent
java.lang.Object
eu.webtoolkit.jwt.WScrollEvent
- All Implemented Interfaces:
WAbstractEvent
A class providing details for a scroll event.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateFromJSEvent
(eu.webtoolkit.jwt.JavaScriptEvent jsEvent) Internal method.int
Returns the current horizontal scroll position.int
Returns the current vertical scroll position.int
Returns the current horizontal viewport height.int
Returns the current horizontal viewport width.
-
Constructor Details
-
WScrollEvent
public WScrollEvent()Default constructor.
-
-
Method Details
-
getScrollX
public int getScrollX()Returns the current horizontal scroll position.- See Also:
-
getScrollY
public int getScrollY()Returns the current vertical scroll position.- See Also:
-
getViewportWidth
public int getViewportWidth()Returns the current horizontal viewport width.Returns the current viewport width.
- See Also:
-
getViewportHeight
public int getViewportHeight()Returns the current horizontal viewport height.Returns the current viewport height.
- See Also:
-
createFromJSEvent
Description copied from interface:WAbstractEvent
Internal method.- Specified by:
createFromJSEvent
in interfaceWAbstractEvent
-