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