Detailed Description

An event target can receive events and have event handlers.

Inheritance diagram for Dom.EventTarget:
Dom.IEventTarget Dom.Node PowerSlide.Slide PowerSlide.Track PowerUI.ContentPackage PowerUI.JSScreen Windows.WindowGroup Css.SparkInformerNode Dom.AttributeNode Dom.CharacterData Dom.Document Dom.DocumentFragment Dom.DocumentType Dom.Element PowerSlide.CuePoint PowerSlide.DialogueSlide PowerSlide.StyleSlide PowerSlide.CueTrack PowerSlide.DialogueTrack PowerSlide.StyleTrack PowerUI.AudioPackage PowerUI.DataPackage PowerUI.ImagePackage Windows.Window

Public Member Functions

void ClearEvents ()
 Clears all events on this document. More...
 
bool dispatchEvent (Event e)
 Runs an event of the given name. More...
 
void addEventListener (string name, EventListener listener)
 Adds an event listener to this document. More...
 
void addEventListener (string name, EventListener listener, bool useCapture)
 Adds an event listener to this document. More...
 
void removeEventListener (string name, object evtHandlerInternal)
 Removes an event listener from this document. More...
 
void addEventListener (string name, AnimationEventDelegate method)
 
void addEventListener (string name, AudioProcessingEventDelegate method)
 
void addEventListener (string name, BeforeInputEventDelegate method)
 
void addEventListener (string name, BeforeUnloadEventDelegate method)
 
void addEventListener (string name, BlobEventDelegate method)
 
void addEventListener (string name, ClipboardEventDelegate method)
 
void addEventListener (string name, CloseEventDelegate method)
 
void addEventListener (string name, CompositionEventDelegate method)
 
void addEventListener (string name, CustomEventDelegate method)
 
void addEventListener (string name, CSSFontFaceLoadEventDelegate method)
 
void addEventListener (string name, DeviceLightEventDelegate method)
 
void addEventListener (string name, DeviceMotionEventDelegate method)
 
void addEventListener (string name, DeviceOrientationEventDelegate method)
 
void addEventListener (string name, DeviceProximityEventDelegate method)
 
void addEventListener (string name, DomEventDelegate method)
 
void addEventListener (string name, DOMTransactionEventDelegate method)
 
void addEventListener (string name, DragEventDelegate method)
 
void addEventListener (string name, EditingBeforeInputEventDelegate method)
 
void addEventListener (string name, ErrorEventDelegate method)
 
void addEventListener (string name, FetchEventDelegate method)
 
void addEventListener (string name, FocusEventDelegate method)
 
void addEventListener (string name, GamepadEventDelegate method)
 
void addEventListener (string name, HashChangeEventDelegate method)
 
void addEventListener (string name, IDBVersionChangeEventDelegate method)
 
void addEventListener (string name, InputEventDelegate method)
 
void addEventListener (string name, KeyboardEventDelegate method)
 
void addEventListener (string name, MediaStreamEventDelegate method)
 
void addEventListener (string name, MessageEventDelegate method)
 
void addEventListener (string name, MouseEventDelegate method)
 
void addEventListener (string name, MutationEventDelegate method)
 
void addEventListener (string name, OfflineAudioCompletionEventDelegate method)
 
void addEventListener (string name, PageTransitionEventDelegate method)
 
void addEventListener (string name, PointerEventDelegate method)
 
void addEventListener (string name, PopStateEventDelegate method)
 
void addEventListener (string name, ProgressEventDelegate method)
 
void addEventListener (string name, RelatedEventDelegate method)
 
void addEventListener (string name, RTCDataChannelEventDelegate method)
 
void addEventListener (string name, RTCIdentityErrorEventDelegate method)
 
void addEventListener (string name, RTCIdentityEventDelegate method)
 
void addEventListener (string name, RTCPeerConnectionIceEventDelegate method)
 
void addEventListener (string name, SensorEventDelegate method)
 
void addEventListener (string name, StorageEventDelegate method)
 
void addEventListener (string name, TextEventDelegate method)
 
void addEventListener (string name, TimeEventDelegate method)
 
void addEventListener (string name, TouchEventDelegate method)
 
void addEventListener (string name, TrackEventDelegate method)
 
void addEventListener (string name, TransitionEventDelegate method)
 
void addEventListener (string name, UIEventDelegate method)
 
void addEventListener (string name, UserProximityEventDelegate method)
 
void addEventListener (string name, WebGLContextEventDelegate method)
 
void addEventListener (string name, WheelEventDelegate method)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener)
 
void addEventListener (string name, Nitro.DynamicMethod< Nitro.Void > listener, bool capture)
 
void addEventListener (string name, ContextEventDelegate method)
 
void addEventListener (string name, SlideEventDelegate method)
 
void addEventListener (string name, PowerUI.SpriteEventDelegate method)
 
void addEventListener (string name, SVGEventDelegate method)
 Adds an event listener to this document. More...
 
void addEventListener (string name, SVGZoomEventDelegate method)
 

Public Attributes

EventsSet Events
 A set of events for this document. See addEventListener. More...
 

Protected Member Functions

GetFirstDelegate< T > (string name)
 Gets the first delegate event handler for the given event name. More...
 
virtual bool HandleLocalEvent (Event e, bool bubblePhase)
 Handles triggering event handlers here. Elements can (and in PowerUI's case, do) override this. PowerUI overrides it to handle e.g. onclick="" attributes too. More...
 

Static Package Attributes

static DispatchStack PooledStack
 The current head of the pooled dispatched stacks. More...
 

Properties

static DispatchStack dispatchStackRef [get]
 The active dispatch stack. Use event.deepPath to access it (available during dispatch only). More...
 
virtual EventTarget eventTargetParentNode [get]
 The parent node as used by EventTarget during capture. Can be null. More...
 
virtual NodeList eventTargetChildren [get]
 The childNode set as used by EventTarget during capture. Can be null. More...
 

Static Private Attributes

static DispatchStack CurrentStack_
 The current dispatch stack. More...
 

Member Function Documentation

void Dom.EventTarget.addEventListener ( string  name,
ContextEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
SlideEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
AnimationEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
SVGEventDelegate  method 
)
inline

Adds an event listener to this document.

void Dom.EventTarget.addEventListener ( string  name,
AudioProcessingEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
SVGZoomEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
BeforeInputEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
BeforeUnloadEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
BlobEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
ClipboardEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
CloseEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
Nitro.DynamicMethod< Nitro.Void listener 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
CompositionEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
Nitro.DynamicMethod< Nitro.Void listener,
bool  capture 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
CustomEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
CSSFontFaceLoadEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DeviceLightEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DeviceMotionEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DeviceOrientationEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DeviceProximityEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DomEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DOMTransactionEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
DragEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
EditingBeforeInputEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
PowerUI.SpriteEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
ErrorEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
FetchEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
FocusEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
GamepadEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
HashChangeEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
IDBVersionChangeEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
InputEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
KeyboardEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
MediaStreamEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
MessageEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
MouseEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
MutationEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
OfflineAudioCompletionEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
PageTransitionEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
PointerEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
PopStateEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
ProgressEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
RelatedEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
RTCDataChannelEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
RTCIdentityErrorEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
RTCIdentityEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
RTCPeerConnectionIceEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
SensorEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
StorageEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
TextEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
TimeEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
TouchEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
TrackEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
TransitionEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
UIEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
UserProximityEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
WebGLContextEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
WheelEventDelegate  method 
)
inline
void Dom.EventTarget.addEventListener ( string  name,
EventListener  listener 
)
inline

Adds an event listener to this document.

void Dom.EventTarget.addEventListener ( string  name,
EventListener  listener,
bool  useCapture 
)
inline

Adds an event listener to this document.

void Dom.EventTarget.ClearEvents ( )
inline

Clears all events on this document.

bool Dom.EventTarget.dispatchEvent ( Event  e)
inline

Runs an event of the given name.

Implements Dom.IEventTarget.

T Dom.EventTarget.GetFirstDelegate< T > ( string  name)
inlineprotected

Gets the first delegate event handler for the given event name.

virtual bool Dom.EventTarget.HandleLocalEvent ( Event  e,
bool  bubblePhase 
)
inlineprotectedvirtual

Handles triggering event handlers here. Elements can (and in PowerUI's case, do) override this. PowerUI overrides it to handle e.g. onclick="" attributes too.

<return>Returns true if the local handlers killed the event.</return>

Reimplemented in Windows.Window.

void Dom.EventTarget.removeEventListener ( string  name,
object  evtHandlerInternal 
)
inline

Removes an event listener from this document.

Member Data Documentation

DispatchStack Dom.EventTarget.CurrentStack_
staticprivate

The current dispatch stack.

EventsSet Dom.EventTarget.Events

A set of events for this document. See addEventListener.

DispatchStack Dom.EventTarget.PooledStack
staticpackage

The current head of the pooled dispatched stacks.

Property Documentation

DispatchStack Dom.EventTarget.dispatchStackRef
staticgetpackage

The active dispatch stack. Use event.deepPath to access it (available during dispatch only).

virtual NodeList Dom.EventTarget.eventTargetChildren
getpackage

The childNode set as used by EventTarget during capture. Can be null.

virtual EventTarget Dom.EventTarget.eventTargetParentNode
getpackage

The parent node as used by EventTarget during capture. Can be null.