|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
CustomEvent | The CustomEvent interface is the recommended interface for application-specific event types. |
DocumentEvent | The DocumentEvent interface provides a mechanism by which the
user can create an Event object of a type supported by the
implementation. |
Event | The Event interface is used to provide contextual information
about an event to the handler processing the event. |
EventListener | The EventListener interface is the primary method for
handling events. |
EventTarget | The EventTarget interface is implemented by all
Nodes in an implementation which supports the DOM Event
Model. |
KeyboardEvent | The KeyboardEvent interface provides specific contextual
information associated with keyboard devices. |
MouseEvent | The MouseEvent interface provides specific contextual
information associated with Mouse events. |
MouseWheelEvent | The MouseWheelEvent interface provides specific contextual
information associated with mouse wheel events. |
MutationEvent | The MutationEvent interface provides specific contextual
information associated with Mutation events. |
ProgressEvent | A progress event occurs when the user agent makes progress in some data transfer operation, such as loading a resource from the web via XMLHttpRequest. |
TextEvent | The TextEvent interface provides specific contextual
information associated with Text Events. |
UIEvent | The UIEvent interface provides specific contextual
information associated with User Interface events. |
Exception Summary | |
EventException | Event operations may throw an EventException as specified in
their method descriptions. |
The org.w3c.dom.events package provides the Java ME DOM Events API subset defined by JSR 280. The API is derived from the W3 DOM2 Events API Java bindings source (http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/java-binding.zip), and the DOM3 Events API Java bindings source (http://www.w3.org/TR/2006/WD-DOM-Level-3-Events-20060413/java-binding.zip). The initial version of the JSR 280 modifications was published in October 2006.
type | Bubbling phase | Cancelable | Target node types | DOM interface |
---|---|---|---|---|
DOMActivate | Yes | Yes | Element |
UIEvent |
DOMFocusIn | Yes | No | Element |
UIEvent |
DOMFocusOut | Yes | No | Element |
UIEvent |
focus | No | No | Element |
UIEvent |
blur | No | No | Element |
UIEvent |
textInput | Yes | Yes | Element |
TextEvent |
click | Yes | Yes | Element |
MouseEvent |
mousedown | Yes | Yes | Element |
MouseEvent |
mouseup | Yes | Yes | Element |
MouseEvent |
mouseover | Yes | Yes | Element |
MouseEvent |
mousemove | Yes | Yes | Element |
MouseEvent |
mouseout | Yes | Yes | Element |
MouseEvent |
keydown | Yes | Yes | Element |
KeyboardEvent |
keyup | Yes | Yes | Element |
KeyboardEvent |
DOMSubtreeModified | Yes | No | Document , DocumentFragment , Element , Attr |
MutationEvent |
DOMNodeInserted | Yes | No | Element , Attr , Text , Comment , CDATASection , DocumentType , EntityReference , ProcessingInstruction |
MutationEvent |
DOMNodeRemoved | Yes | No | Element , Attr , Text , Comment , CDATASection , DocumentType , EntityReference , ProcessingInstruction |
MutationEvent |
DOMNodeRemovedFromDocument | No | No | Element , Attr , Text , Comment , CDATASection , DocumentType , EntityReference , ProcessingInstruction |
MutationEvent |
DOMNodeInsertedIntoDocument | No | No | Element , Attr , Text , Comment , CDATASection , DocumentType , EntityReference , ProcessingInstruction |
MutationEvent |
DOMAttrModified | Yes | No | Element |
MutationEvent |
DOMCharacterDataModified | Yes | No | Text , Comment , CDATASection , ProcessingInstruction |
MutationEvent |
load | No | No | Document , Element |
Event |
unload | No | No | Document , Element |
Event |
abort | Yes | No | Element |
Event |
error | Yes | No | Element |
Event |
select | Yes | No | Element |
Event |
change | Yes | No | Element |
Event |
submit | Yes | Yes | Element |
Event |
reset | Yes | Yes | Element |
Event |
resize | Yes | No | Document , Element |
UIEvent |
scroll | Yes | No | Document , Element |
UIEvent |
The Progress Event 1.0 specification defines the following event types in addition:
type | Bubbling phase | Cancelable | Target node types | DOM interface |
---|---|---|---|---|
loadstart | No | No | Element |
ProgressEvent |
progress | No | No | Element |
ProgressEvent |
error | No | No | Element |
ProgressEvent |
abort | No | No | Element |
ProgressEvent |
load | No | No | Element |
ProgressEvent |
Clarification: The purpose of listing the possible event targets here is to say that an implementation of only DOM Level 3 Events will not dispatch certain event types to certain event targets unless requested to by a DOM application. These listings are not meant to otherwise constrain implementations, applications, or specifications.
As an example, the event load will trigger event listeners attached on Element
nodes for that event and on the capture and target phases. This event cannot be cancelled. If an event listener for the load event is attached to a node other than Document
or Element
nodes, or if it is attached to the bubbling phase only, this event listener cannot be triggered.
The event objects associated with the event types described above may contain context information. Refer to the description of the DOM interfaces for further information.
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |