Package com.google.gwt.user.client
Class Window.ScrollEvent
java.lang.Object
com.google.web.bindery.event.shared.Event<Window.ScrollHandler>
com.google.gwt.event.shared.GwtEvent<Window.ScrollHandler>
com.google.gwt.user.client.Window.ScrollEvent
- Enclosing class:
Window
Fired when the browser window is scrolled.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.gwt.event.shared.GwtEvent
GwtEvent.Type<H>
-
Field Summary
Modifier and TypeFieldDescription(package private) static final GwtEvent.Type
<Window.ScrollHandler> The event type. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatch
(Window.ScrollHandler handler) Should only be called byHandlerManager
.Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.int
Gets the window's scroll left.int
Get the window's scroll top.(package private) static GwtEvent.Type
<Window.ScrollHandler> getType()
Methods inherited from class com.google.gwt.event.shared.GwtEvent
assertLive, getSource, isLive, kill, revive
Methods inherited from class com.google.web.bindery.event.shared.Event
setSource, toDebugString, toString
-
Field Details
-
TYPE
The event type.
-
-
Method Details
-
getType
-
getAssociatedType
Description copied from class:Event
Returns theEvent.Type
used to register this event, allowing anEventBus
to find handlers of the appropriate class.- Specified by:
getAssociatedType
in classGwtEvent<Window.ScrollHandler>
- Returns:
- the type
-
getScrollLeft
public int getScrollLeft()Gets the window's scroll left.- Returns:
- window's scroll left
-
getScrollTop
public int getScrollTop()Get the window's scroll top.- Returns:
- the window's scroll top
-
dispatch
Description copied from class:GwtEvent
Should only be called byHandlerManager
. In other words, do not use or call.- Specified by:
dispatch
in classGwtEvent<Window.ScrollHandler>
- Parameters:
handler
- handler- See Also:
-