Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > by-pkgid > 6282078ae76a671f49c6af38c67b1a07 > files > 1471

kdelibs-devel-2.2.2-49.2mdk.i586.rpm

<HTML>
<HEAD>
<TITLE>class Event</TITLE>

<META NAME="Generator" CONTENT="KDOC ">
</HEAD>
<BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff">
<TABLE WIDTH="100%" BORDER="0">
<TR>
<TD>
	<TABLE BORDER="0">
		<TR><TD valign="top" align="left" cellspacing="10">
		<h1>class Event</h1>
		</TD>
		<TD valign="top" align="right" colspan="1">
 Introduced in DOM Level 2
 <small><A HREF="#longdesc">More...</A></small></TD></TR>
	</TABLE>
	<HR>
	<TABLE BORDER="0">
		<TR><TH>Full name</TH><TD><code><A HREF="DOM.html">DOM</A>::Event</code></TD></TR>
<TR><TH>Definition</TH><TD><code>#include &lt;<A HREF="dom2__events_h.html">dom2_events.h</A>&gt;</code></TD></TR>
<TR><TH>Inherited by</TH><TD><A HREF="DOM__MouseEvent.html">MouseEvent</A>, <A HREF="DOM__MutationEvent.html">MutationEvent</A>, <A HREF="DOM__UIEvent.html">UIEvent</A></TD></TR>
<TR><TH><A HREF="full-list-DOM__Event.html">List of all Methods</A></TH></TR>
	</TABLE>
	</TD>
<TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR>
<TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR>
<TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR>
<TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR>
<TR><TD><small><A HREF="index.html">Index</A></small></TD></TR>
</TABLE></TD></TR></TABLE>
<h4>Public Types</h4><ul><LI>enum <A HREF="#ref8">PhaseType</A> {	CAPTURING_PHASE = 1,
	AT_TARGET = 2,
	BUBBLING_PHASE = 3
    }
</LI>
</ul><h4>Public Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref4">Event</A></b> () 
</LI>
<LI>&nbsp;<b><A HREF="#ref5">Event</A></b> (const Event &other) 
</LI>
<LI>virtual  &nbsp;<b><A HREF="#ref6">~Event</A></b> () 
</LI>
<LI>Event & &nbsp;<b><A HREF="#ref7">operator = </A></b> (const Event &other) 
</LI>
<LI>DOMString &nbsp;<b><A HREF="#ref9">type</A></b> ()  const
</LI>
<LI>Node &nbsp;<b><A HREF="#ref10">target</A></b> ()  const
</LI>
<LI>Node &nbsp;<b><A HREF="#ref11">currentTarget</A></b> ()  const
</LI>
<LI>unsigned short &nbsp;<b><A HREF="#ref12">eventPhase</A></b> ()  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref13">bubbles</A></b> ()  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref14">cancelable</A></b> ()  const
</LI>
<LI>DOMTimeStamp &nbsp;<b><A HREF="#ref15">timeStamp</A></b> ()  const
</LI>
<LI>void &nbsp;<b><A HREF="#ref16">stopPropagation</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref17">preventDefault</A></b> () 
</LI>
<LI>void &nbsp;<b><A HREF="#ref18">initEvent</A></b> (const DOMString &eventTypeArg, bool canBubbleArg, bool cancelableArg) 
</LI>
<LI>EventImpl *&nbsp;<b><A HREF="#ref19">handle</A></b> ()  const
</LI>
<LI>bool &nbsp;<b><A HREF="#ref20">isNull</A></b> ()  const
</LI>
<LI>DOMString &nbsp;<b><A HREF="#ref21">eventModuleName</A></b> () 
</LI>
</ul><h4>Protected Methods</h4><ul><LI>&nbsp;<b><A HREF="#ref22">Event</A></b> (EventImpl *i) 
</LI>
</ul><h4>Protected Members</h4><ul><LI>EventImpl *<b><A HREF="#ref23">impl</A></b></LI>
</ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p>
 Introduced in DOM Level 2
</p>
<p> The Event interface is used to provide contextual information about an event
 to the handler processing the event. An object which implements the Event
 interface is generally passed as the first parameter to an event handler.
 More specific context information is passed to event handlers by deriving
 additional interfaces from Event which contain information directly relating
 to the type of event they accompany. These derived interfaces are also
 implemented by the object passed to the event listener.
</p>
<p> </p>
<A NAME="Event"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>Event</strong> ()
<br></td><td align="right"><h3><strong>Event</strong></h3></td></tr></table><p></p><A NAME="Event"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>Event</strong> (const Event &other)
<br></td><td align="right"><h3><strong>Event</strong></h3></td></tr></table><p></p><A NAME="~Event"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td> &nbsp;<strong>~Event</strong> ()
<br></td><td align="right"><h3><strong>~Event</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="operator%20=%20"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>Event & &nbsp;<strong>operator = </strong> (const Event &other)
<br></td><td align="right"><h3><strong>operator = </strong></h3></td></tr></table><p></p><A NAME="PhaseType"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>enum <strong>PhaseType</strong> {	CAPTURING_PHASE = 1,
	AT_TARGET = 2,
	BUBBLING_PHASE = 3
    }
</td><td align="right"><h3><strong>PhaseType</strong></h3></td></tr></table><p></p><p>
 An integer indicating which phase of event flow is being processed.
</p>
<p> AT_TARGET: The event is currently being evaluated at the target
 EventTarget.
</p>
<p> BUBBLING_PHASE: The current event phase is the bubbling phase.
</p>
<p> CAPTURING_PHASE: The current event phase is the capturing phase.
</p>
<p>     </p>
<A NAME="type"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td>DOMString &nbsp;<strong>type</strong> ()
<br></td><td align="right"><h3><strong>type</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 The name of the event (case-insensitive). The name must be an XML name.
</p>
<p>     </p>
<A NAME="target"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>Node &nbsp;<strong>target</strong> ()
<br></td><td align="right"><h3><strong>target</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Used to indicate the EventTarget to which the event was originally
 dispatched.
</p>
<p>     </p>
<A NAME="currentTarget"></A><A NAME="ref11"></A><table width="100%"><tr bgcolor="#eeeeee"><td>Node &nbsp;<strong>currentTarget</strong> ()
<br></td><td align="right"><h3><strong>currentTarget</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Used to indicate the EventTarget whose EventListeners are currently
 being processed. This is particularly useful during capturing and
 bubbling.
</p>
<p>     </p>
<A NAME="eventPhase"></A><A NAME="ref12"></A><table width="100%"><tr bgcolor="#eeeeee"><td>unsigned short &nbsp;<strong>eventPhase</strong> ()
<br></td><td align="right"><h3><strong>eventPhase</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Used to indicate which phase of event flow is currently being evaluated.
</p>
<p>     </p>
<A NAME="bubbles"></A><A NAME="ref13"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>bubbles</strong> ()
<br></td><td align="right"><h3><strong>bubbles</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Used to indicate whether or not an event is a bubbling event. If the
 event can bubble the value is true, else the value is false.
</p>
<p>     </p>
<A NAME="cancelable"></A><A NAME="ref14"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>cancelable</strong> ()
<br></td><td align="right"><h3><strong>cancelable</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Used to indicate whether or not an event can have its default action
 prevented. If the default action can be prevented the value is true,
 else the value is false.
</p>
<p>     </p>
<A NAME="timeStamp"></A><A NAME="ref15"></A><table width="100%"><tr bgcolor="#eeeeee"><td>DOMTimeStamp &nbsp;<strong>timeStamp</strong> ()
<br></td><td align="right"><h3><strong>timeStamp</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 Used to specify the time (in milliseconds relative to the epoch) at
 which the event was created. Due to the fact that some systems may not
 provide this information the value of timeStamp may be not available for
 all events. When not available, a value of 0 will be returned. Examples
 of epoch time are the time of the system start or 0:0:0 UTC 1st January 1970.
</p>
<p>     </p>
<A NAME="stopPropagation"></A><A NAME="ref16"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>stopPropagation</strong> ()
<br></td><td align="right"><h3><strong>stopPropagation</strong></h3></td></tr></table><p></p><p>
 The stopPropagation method is used prevent further propagation of an
 event during event flow. If this method is called by any EventListener
 the event will cease propagating through the tree. The event will
 complete dispatch to all listeners on the current EventTarget before
 event flow stops. This method may be used during any stage of event flow.
</p>
<p>     </p>
<A NAME="preventDefault"></A><A NAME="ref17"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>preventDefault</strong> ()
<br></td><td align="right"><h3><strong>preventDefault</strong></h3></td></tr></table><p></p><p>
 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. If,
 during any stage of event flow, the preventDefault method is called the
 event is canceled. Any default action associated with the event will not
 occur. Calling this method for a non-cancelable event has no effect.
 Once preventDefault has been called it will remain in effect throughout
 the remainder of the event's propagation. This method may be used during
 any stage of event flow.
</p>
<p>     </p>
<A NAME="initEvent"></A><A NAME="ref18"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void &nbsp;<strong>initEvent</strong> (const DOMString &eventTypeArg, bool canBubbleArg, bool cancelableArg)
<br></td><td align="right"><h3><strong>initEvent</strong></h3></td></tr></table><p></p><p>
 The initEvent method is used to initialize the value of an Event created
 through the DocumentEvent interface. This method may only be called
 before the Event 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. If
 called from a subclass of Event interface only the values specified in
 the initEvent method are modified, all other attributes are left
 unchanged.
</p>
<p></p>
<p> Any new event type must not begin with any upper, lower, or mixed case
 version of the string "DOM". This prefix is reserved for future DOM
 event sets. It is also strongly recommended that third parties adding
 their own events use their own prefix to avoid confusion and lessen the
 probability of conflicts with other new events.
</p>
<p></p>
<p></p>
<p>     </p>
<p><b>Parameters</b>:<TABLE BORDER="0" CELLPADDING="5">
<TR><TD align="left" valign="top"><i>eventTypeArg</i></TD><TD align="left" valign="top">Specifies the event type. This type may be any event
 type currently defined in this specification or a new event type.. The
 string must be an XML name.
</TD></TR>
<TR><TD align="left" valign="top"><i>canBubbleArg</i></TD><TD align="left" valign="top">Specifies whether or not the event can bubble.
</TD></TR>
<TR><TD align="left" valign="top"><i>cancelableArg</i></TD><TD align="left" valign="top">Specifies whether or not the event's default action can be prevented.
</TD></TR>
</TABLE></P>
<A NAME="handle"></A><A NAME="ref19"></A><table width="100%"><tr bgcolor="#eeeeee"><td>EventImpl *&nbsp;<strong>handle</strong> ()
<br></td><td align="right"><h3><strong>handle</strong></h3></td></tr></table><p> <small>[const]</small></p><p>
 not part of the DOM
     </p>
<A NAME="isNull"></A><A NAME="ref20"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool &nbsp;<strong>isNull</strong> ()
<br></td><td align="right"><h3><strong>isNull</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="eventModuleName"></A><A NAME="ref21"></A><table width="100%"><tr bgcolor="#eeeeee"><td>DOMString &nbsp;<strong>eventModuleName</strong> ()
<br></td><td align="right"><h3><strong>eventModuleName</strong></h3></td></tr></table><p></p><p>
 not part of the DOM
</p>
<p> Returns the module name of the event - this is the same as passed to
 Document::createEvent() (e.g. UIEvents)
     </p>
<A NAME="Event"></A><A NAME="ref22"></A><table width="100%"><tr bgcolor="#eeeeee"><td>&nbsp;<strong>Event</strong> (EventImpl *i)
<br></td><td align="right"><h3><strong>Event</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="impl"></A><A NAME="ref23"></A><table width="100%"><tr bgcolor="#eeeeee"><td>EventImpl * <strong>impl</strong>
</td><td align="right"><h3><strong>impl</strong></h3></td></tr></table><p> <small>[protected]</small></p><HR>
	<table>
	<tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:31 2002, using kdoc 2.0a53.</small></td></tr>
	</table>
</BODY>
</HTML>