public static class

Window.ScrollEvent

extends GwtEvent<H extends EventHandler>
java.lang.Object
   ↳ com.google.gwt.event.shared.GwtEvent<H extends com.google.gwt.event.shared.EventHandler>
     ↳ com.google.gwt.user.client.Window.ScrollEvent

Class Overview

Fired when the browser window is scrolled.

Summary

Public Methods
final Type<Window.ScrollHandler> getAssociatedType()
Returns the type used to register this event.
int getScrollLeft()
Gets the window's scroll left.
int getScrollTop()
Get the window's scroll top.
Protected Methods
void dispatch(Window.ScrollHandler handler)
Should only be called by HandlerManager.
[Expand]
Inherited Methods
From class com.google.gwt.event.shared.GwtEvent
From class java.lang.Object

Public Methods

public final Type<Window.ScrollHandler> getAssociatedType ()

Returns the type used to register this event. Used by handler manager to dispatch events to the correct handlers.

Returns
  • the type

public int getScrollLeft ()

Gets the window's scroll left.

Returns
  • window's scroll left

public int getScrollTop ()

Get the window's scroll top.

Returns
  • the window's scroll top

Protected Methods

protected void dispatch (Window.ScrollHandler handler)

Should only be called by HandlerManager. In other words, do not use or call.

Parameters
handler handler