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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromJSEvent(eu.webtoolkit.jwt.JavaScriptEvent jsEvent) Internal method.intReturns the current horizontal scroll position.intReturns the current vertical scroll position.intReturns the current horizontal viewport height.intReturns 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:WAbstractEventInternal method.- Specified by:
createFromJSEventin interfaceWAbstractEvent
-