API Overview API Index Package Overview Direct link to this page
JDK 1.6
  org.w3c.dom.events. Event View Source
Author(s)
Since
DOM Level 2
Version
Serial
Hierarchy
 Event
Subinterfaces
Description
public interface Event
  The Event interface is used to provide contextual information about an event to the handler processing the event.
See also:   
Methods
Hide/Show inherited methods
public boolean getBubbles ()
  Used to indicate whether or not an event is a bubbling event.
public boolean getCancelable ()
  Used to indicate whether or not an event can have its default action prevented.
public EventTarget getCurrentTarget ()
  Used to indicate the EventTarget whose EventListeners are currently being processed.
public short getEventPhase ()
Used to indicate which phase of event flow is currently being evaluated.
public EventTarget getTarget ()
Used to indicate the EventTarget to which the event was originally dispatched.
public long getTimeStamp ()
  Used to specify the time (in milliseconds relative to the epoch) at which the event was created.
public String getType ()
  The name of the event (case-insensitive).
public void initEvent (String eventTypeArg, boolean canBubbleArg, boolean cancelableArg)
  The initEvent method is used to initialize the value of an Event created through the DocumentEvent interface.
public void preventDefault ()
  If an event is cancelable, the preventDefault method is used to signify that the event is to be canceled, meaning any default action normally taken by the implementation as a result of the event will not occur.
public void stopPropagation ()
  The stopPropagation method is used prevent further propagation of an event during event flow.
Fields
Hide/Show inherited fields
publicfinalstatic short AT_TARGET = "2"
The event is currently being evaluated at the target EventTarget.
publicfinalstatic short BUBBLING_PHASE = "3"
The current event phase is the bubbling phase.
publicfinalstatic short CAPTURING_PHASE = "1"
The current event phase is the capturing phase.
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar