Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

DOM::UIEvent Class Reference

Introduced in DOM Level 2. More...

#include <dom2_events.h>

Inheritance diagram for DOM::UIEvent:

DOM::Event DOM::MouseEvent DOM::TextEvent List of all members.

Public Methods

 UIEvent ()
 UIEvent (const UIEvent &other)
 UIEvent (const Event &other)
UIEvent & operator= (const UIEvent &other)
UIEvent & operator= (const Event &other)
virtual ~UIEvent ()
AbstractView view () const
long detail () const
int keyCode () const
int layerX () const
int layerY () const
int which () const
void initUIEvent (const DOMString &typeArg, bool canBubbleArg, bool cancelableArg, const AbstractView &viewArg, long detailArg)

Protected Methods

 UIEvent (UIEventImpl *impl)

Detailed Description

Introduced in DOM Level 2.

The UIEvent interface provides specific contextual information associated with User Interface events.


Constructor & Destructor Documentation

DOM::UIEvent::UIEvent  
 

DOM::UIEvent::UIEvent const UIEvent &    other
 

DOM::UIEvent::UIEvent const Event   other
 

virtual DOM::UIEvent::~UIEvent   [virtual]
 

DOM::UIEvent::UIEvent UIEventImpl *    impl [protected]
 


Member Function Documentation

UIEvent& DOM::UIEvent::operator= const UIEvent &    other
 

UIEvent& DOM::UIEvent::operator= const Event   other
 

Reimplemented from DOM::Event.

Reimplemented in DOM::MouseEvent, and DOM::TextEvent.

AbstractView DOM::UIEvent::view  
 

The view attribute identifies the AbstractView from which the event was generated.

long DOM::UIEvent::detail  
 

Specifies some detail information about the Event, depending on the type of event.

int DOM::UIEvent::keyCode  
 

IE extension.

int DOM::UIEvent::layerX  
 

Netscape extension.

only returns something useful when the mouse was involved. Otherwise its 0

int DOM::UIEvent::layerY  
 

int DOM::UIEvent::which  
 

Non-standard Netscape style "which" extension.

void DOM::UIEvent::initUIEvent const DOMString   typeArg,
bool    canBubbleArg,
bool    cancelableArg,
const AbstractView   viewArg,
long    detailArg
 

The initUIEvent method is used to initialize the value of a UIEvent created through the DocumentEvent interface.

This method may only be called before the UIEvent has been dispatched via the dispatchEvent method, though it may be called multiple times during that phase if necessary. If called multiple times, the final invocation takes precedence.

Parameters:
typeArg  Specifies the event type.
canBubbleArg  Specifies whether or not the event can bubble.
cancelableArg  Specifies whether or not the event's default action can be prevented.
viewArg  Specifies the Event's AbstractView.
detailArg  Specifies the Event's detail.


The documentation for this class was generated from the following file:
Generated on Sat Jan 31 23:28:24 2004 for XPath by doxygen1.2.18