org.xwiki.gwt.dom.client
Class Event

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      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: Event.java 20042 2009-05-16 12:12:50Z sdumitriu $

Field Summary
 
Fields inherited from class com.google.gwt.user.client.Event
BUTTON_LEFT, BUTTON_MIDDLE, BUTTON_RIGHT, FOCUSEVENTS, KEYEVENTS, MOUSEEVENTS, ONBLUR, ONCHANGE, ONCLICK, ONCONTEXTMENU, ONDBLCLICK, ONERROR, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONLOSECAPTURE, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONMOUSEWHEEL, ONSCROLL, UNDEFINED
 
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, cancelBubble, getAltKey, getButton, getClientX, getClientY, getCtrlKey, getCurrentEvent, getCurrentTarget, getEventsSunk, getFromElement, getKeyCode, getMetaKey, getMouseWheelVelocityY, getRepeat, getScreenX, getScreenY, getShiftKey, getString, getTarget, getToElement, getType, getTypeInt, preventDefault, releaseCapture, removeEventPreview, setCapture, sinkEvents
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, 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-2009 XWiki. All Rights Reserved.