eu.webtoolkit.jwt
Class WScrollEvent

java.lang.Object
  extended by 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
WScrollEvent()
          Default constructor.
 
Method Summary
 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 Detail

WScrollEvent

public WScrollEvent()
Default constructor.

Method Detail

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

public WAbstractEvent createFromJSEvent(eu.webtoolkit.jwt.JavaScriptEvent jsEvent)
Description copied from interface: WAbstractEvent
Internal method.

Specified by:
createFromJSEvent in interface WAbstractEvent