org.xwiki.gwt.dom.client
Class Event

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.dom.client.NativeEvent
          extended by com.google.gwt.user.client.Event
              extended by org.xwiki.gwt.dom.client.Event

public class Event
extends com.google.gwt.user.client.Event

DOM Event.

Version:
$Id: ae9d372bbb44d37d5dc2b6b462e9b3eb7d343b1d $

Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.Event
com.google.gwt.user.client.Event.NativePreviewEvent, com.google.gwt.user.client.Event.NativePreviewHandler
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.Event
FOCUSEVENTS, GESTUREEVENTS, KEYEVENTS, MOUSEEVENTS, ONBLUR, ONCHANGE, ONCLICK, ONCONTEXTMENU, ONDBLCLICK, ONERROR, ONFOCUS, ONGESTURECHANGE, ONGESTUREEND, ONGESTURESTART, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONLOSECAPTURE, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONMOUSEWHEEL, ONPASTE, ONSCROLL, ONTOUCHCANCEL, ONTOUCHEND, ONTOUCHMOVE, ONTOUCHSTART, TOUCHEVENTS, UNDEFINED
 
Fields inherited from class com.google.gwt.dom.client.NativeEvent
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT
 
Constructor Summary
protected Event()
          Default constructor.
 
Method Summary
 boolean isCancelled()
           
protected  void setCancelled(boolean cancelled)
          Sets this event's cancelled state.
 void xPreventDefault()
          Cancel this event.
 
Methods inherited from class com.google.gwt.user.client.Event
addEventPreview, addNativePreviewHandler, as, cancelBubble, fireNativePreviewEvent, getCurrentEvent, getCurrentTarget, getEventListener, getEventsSunk, getFromElement, getRelatedTarget, getRepeat, getTarget, getToElement, getTypeInt, getTypeInt, releaseCapture, removeEventPreview, setCapture, setEventListener, sinkEvents
 
Methods inherited from class com.google.gwt.dom.client.NativeEvent
getAltKey, getButton, getChangedTouches, getCharCode, getClientX, getClientY, getCtrlKey, getCurrentEventTarget, getDataTransfer, getEventTarget, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRelatedEventTarget, getRotation, getScale, getScreenX, getScreenY, getShiftKey, getString, getTargetTouches, getTouches, getType, preventDefault, stopPropagation
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

protected Event()
Default constructor. Needs to be protected because all instances are created from JavaScript.

Method Detail

isCancelled

public final boolean isCancelled()
Returns:
true if this event was cancelled by calling xPreventDefault().

setCancelled

protected final void setCancelled(boolean cancelled)
Sets this event's cancelled state.

Parameters:
cancelled - specifies if this event should be cancelled or not.

xPreventDefault

public final void xPreventDefault()
Cancel this event.



Copyright © 2004–2015 XWiki. All rights reserved.