public class MouseWheelEvent extends BrowserEvent<MouseWheelHandler> implements Cancellable
GwtEvent.Type<H>
jsObj
Constructor and Description |
---|
MouseWheelEvent(JavaScriptObject jsObj) |
Modifier and Type | Method and Description |
---|---|
void |
cancel()
Call this method to prevent this event from bubbling to this widget's parent, true or undefined to bubble.
|
protected void |
dispatch(MouseWheelHandler handler) |
static <S extends HasMouseWheelHandlers & HasHandlers> |
fire(S source,
JavaScriptObject jsObj)
Fires a open event on all registered handlers in the handler manager.If no
such handlers exist, this method will do nothing.
|
GwtEvent.Type<MouseWheelHandler> |
getAssociatedType() |
static GwtEvent.Type<MouseWheelHandler> |
getType()
Gets the type associated with this event.
|
float |
getWheelDelta()
Convenience method that returns the value of
EventHandler.getWheelDelta() |
boolean |
isCancelled() |
getX, getY, isAltKeyDown, isCtrlKeyDown, isLeftButtonDown, isRightButtonDown
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public MouseWheelEvent(JavaScriptObject jsObj)
public static <S extends HasMouseWheelHandlers & HasHandlers> void fire(S source, JavaScriptObject jsObj)
S
- The event sourcesource
- the source of the handlersjsObj
- the native eventpublic static GwtEvent.Type<MouseWheelHandler> getType()
protected void dispatch(MouseWheelHandler handler)
dispatch
in class GwtEvent<MouseWheelHandler>
public final GwtEvent.Type<MouseWheelHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<MouseWheelHandler>
public void cancel()
cancel
in interface Cancellable
public boolean isCancelled()
isCancelled
in interface Cancellable
public float getWheelDelta()
EventHandler.getWheelDelta()
eventHandler
-