Checking in Sources/Docs of DOM Level 2 from :

http://www.w3.org/DOM/DOMTM


git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225913 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
dims committed 2001-06-01 11:15:37 +00:00
1 parent 7d5c881d20
commit 82b88df622
231 files changed
+66110

No files matched your search

+100
View File
@@ -0,0 +1,100 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>W3C IPR SOFTWARE NOTICE</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<h1>
W3C IPR SOFTWARE NOTICE
</h1>
<h3>
Copyright &copy; 2000 <loc href="http://www.w3.org/">World Wide Web
Consortium</loc>, (<loc href="http://www.lcs.mit.edu/">Massachusetts
Institute of Technology</loc>, <loc href="http://www.inria.fr/">Institut
National de Recherche en Informatique et en Automatique</loc>, <loc
href="http://www.keio.ac.jp/">Keio University</loc>). All Rights
Reserved.
</h3>
<p>
The DOM bindings are published under the W3C Software Copyright Notice
and License. The software license requires "Notice of any changes or
modifications to the W3C files, including the date changes were made."
Consequently, modified versions of the DOM bindings must document that
they do not conform to the W3C standard; in the case of the IDL binding,
the pragma prefix can no longer be 'w3c.org'; in the case of the Java
binding, the package names can no longer be in the 'org.w3c' package.
</p>
<p>
<b>Note:</b> The original version of the W3C Software Copyright Notice
and License could be found at <a
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>http://www.w3.org/Consortium/Legal/copyright-software-19980720</a>
</p>
<h3>
Copyright &copy; 1994-2000 <a href="http://www.w3.org/">World Wide Web
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
National de Recherche en Informatique et en Automatique</a>, <a
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
Reserved. http://www.w3.org/Consortium/Legal/
</h3>
<p>
This W3C work (including software, documents, or other related items) is
being provided by the copyright holders under the following license. By
obtaining, using and/or copying this work, you (the licensee) agree that
you have read, understood, and will comply with the following terms and
conditions:
</p>
<p>
Permission to use, copy, and modify this software and its documentation,
with or without modification,&nbsp; for any purpose and without fee or
royalty is hereby granted, provided that you include the following on ALL
copies of the software and documentation or portions thereof, including
modifications, that you make:
</p>
<ol>
<li>
The full text of this NOTICE in a location viewable to users of the
redistributed or derivative work.
</li>
<li>
Any pre-existing intellectual property disclaimers, notices, or terms
and conditions. If none exist, a short notice of the following form
(hypertext is preferred, text is permitted) should be used within the
body of any redistributed or derivative code: "Copyright &copy;
[$date-of-software] <a href="http://www.w3.org/">World Wide Web
Consortium</a>, (<a href="http://www.lcs.mit.edu/">Massachusetts
Institute of Technology</a>, <a href="http://www.inria.fr/">Institut
National de Recherche en Informatique et en Automatique</a>, <a
href="http://www.keio.ac.jp/">Keio University</a>). All Rights
Reserved. http://www.w3.org/Consortium/Legal/"
</li>
<li>
Notice of any changes or modifications to the W3C files, including the
date changes were made. (We recommend you provide URIs to the location
from which the code is derived.)
</li>
</ol>
<p>
THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
TRADEMARKS OR OTHER RIGHTS.
</p>
<p>
COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
DOCUMENTATION.
</p>
<p>
The name and trademarks of copyright holders may NOT be used in
advertising or publicity pertaining to the software without specific,
written prior permission. Title to copyright in this software and any
associated documentation will at all times remain with copyright
holders.
</p>
</body>
</html>
+195
View File
@@ -0,0 +1,195 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:43:56 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Document Object Model (DOM) Level 2 Events
Specification</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='expanded-toc.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='n'
href='expanded-toc.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='head'>
<p><a href='http://www.w3.org/'><img height='48' width='72'
alt='W3C' src='./images/w3c_home.gif' /></a></p>
<h1 id='title'>Document Object Model (DOM) Level 2 Events
Specification</h1>
<h2 id='version'>Version 1.0</h2>
<!-- REC-DOM-Level-2-Events-20001113
-->
<h2 id='W3C-doctype'>W3C Recommendation <i>13 November,
2000</i></h2>
<dl>
<dt>This version:</dt>
<dd><a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113</a><br />
(<a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.ps'>
PostScript file</a> , <a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.pdf'>
PDF file</a> , <a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.txt'>
plain text</a> , <a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/DOM2-Events.zip'>
ZIP file</a>)</dd>
<dt>Latest version:</dt>
<dd><a
href='http://www.w3.org/TR/DOM-Level-2-Events'>http://www.w3.org/TR/DOM-Level-2-Events</a></dd>
<dt>Previous version:</dt>
<dd><a
href='http://www.w3.org/TR/2000/PR-DOM-Level-2-Events-20000927'>http://www.w3.org/TR/2000/PR-DOM-Level-2-Events-20000927</a></dd>
</dl>
<dl>
<dt>Editors:</dt>
<dd>Tom Pixley, <i>Netscape Communications Corp.</i></dd>
</dl>
<p class='copyright'>Copyright &copy; 2000 <a
href='http://www.w3.org/'><abbr
title='World Wide Web Consortium'>W3C</abbr></a><sup>&reg;</sup>
(<a href='http://www.lcs.mit.edu/'><abbr
title='Massachusetts Institute of Technology'>MIT</abbr></a>, <a
href='http://www.inria.fr/'><abbr lang='fr'
title='Institut National de Recherche en Informatique et Automatique'>
INRIA</abbr></a>, <a href='http://www.keio.ac.jp/'>Keio</a>), All
Rights Reserved. W3C <a
href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>
liability</a>, <a
href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>
trademark</a>, <a
href='http://www.w3.org/Consortium/Legal/copyright-documents-19990405'>
document use</a> and <a
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>
software licensing</a> rules apply.</p>
</div>
<hr title='separator from header' />
<h2 id='abstract'>Abstract</h2>
<div class='abstract'>
<p>This specification defines the Document Object Model Level 2
Events, a platform- and language-neutral interface that gives to
programs and scripts a generic event system. The Document Object
Model Level 2 Events builds on the Document Object Model Level 2
Core [<a class='noxref' href='references.html#DOMCore'>DOM Level 2
Core</a>] and on Document Object Model Level 2 Views [<a
class='noxref' href='references.html#DOMViews'>DOM Level 2
Views</a>].</p>
</div>
<h2 id='status'>Status of this document</h2>
<div class='status'>
<p><em>This section describes the status of this document at the
time of its publication. Other documents may supersede this
document. The latest status of this document series is maintained
at the W3C.</em></p>
<p>This document has been reviewed by W3C Members and other
interested parties and has been endorsed by the Director as a <a
href='http://www.w3.org/Consortium/Process/Process-19991111/tr.html#RecsW3C'>
W3C Recommendation</a>. It is a stable document and may be used as
reference material or cited as a normative reference from another
document. W3C's role in making the Recommendation is to draw
attention to the specification and to promote its widespread
deployment. This enhances the functionality and interoperability of
the Web.</p>
<p>This document has been produced as part of the <a
href='http://www.w3.org/DOM/Activity.html'>W3C DOM Activity</a>.
The authors of this document are the DOM Working Group members.
Different modules of the Document Object Model have different
editors.</p>
<p>Please send general comments about this document to the public
mailing list <a href='mailto:www-dom@w3.org'>www-dom@w3.org</a>. An
<a href='http://lists.w3.org/Archives/Public/www-dom/'>archive</a>
is available at http://lists.w3.org/Archives/Public/www-dom/.</p>
<p>The English version of this specification is the only normative
version. Information about <a
href='http://www.w3.org/2000/11/DOM-Level-2-translations'>translations</a>
of this document is available at
http://www.w3.org/2000/11/DOM-Level-2-translations.</p>
<p>The <a href='http://www.w3.org/2000/11/DOM-Level-2-errata'>list
of known errors</a> in this document is available at
http://www.w3.org/2000/11/DOM-Level-2-errata</p>
<p>A list of <a href='http://www.w3.org/TR/'>current W3C
Recommendations and other technical documents</a> can be found at
http://www.w3.org/TR.</p>
</div>
<h2 id='table-of-contents'><a id="contents" name='contents'>Table
of contents</a></h2>
<ul class='toc'>
<li class='tocline2'><a class='tocxref'
href='expanded-toc.html'>Expanded Table of Contents</a></li>
<li class='tocline2'><a class='tocxref'
href='copyright-notice.html'>Copyright Notice</a></li>
</ul>
<ul class='toc'>
<li class='tocline2'><a class='tocxref' href='events.html'>1.
Document Object Model Events</a></li>
</ul>
<ul class='toc'>
<li class='tocline2'><a class='tocxref'
href='idl-definitions.html'>Appendix A: IDL Definitions</a></li>
<li class='tocline2'><a class='tocxref'
href='java-binding.html'>Appendix B: Java Language Binding</a></li>
<li class='tocline2'><a class='tocxref'
href='ecma-script-binding.html'>Appendix C: ECMAScript Language
Binding</a></li>
<li class='tocline2'><a class='tocxref'
href='acknowledgements.html'>Appendix D: Acknowledgements</a></li>
<li class='tocline2'><a class='tocxref'
href='glossary.html'>Glossary</a></li>
<li class='tocline2'><a class='tocxref'
href='references.html'>References</a></li>
<li class='tocline2'><a class='tocxref'
href='def-index.html'>Index</a></li>
</ul>
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='n' href='expanded-toc.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+94
View File
@@ -0,0 +1,94 @@
/* This is an SSI script. Policy:
(1) Use CVS
(2) send e-mail to w3t-comm@w3.org if you edit this
*/
/* Style for a "Recommendation" */
/*
This is an SSI script. Policy:
(1) Use CVS
(2) send e-mail to w3t-comm@w3.org if you edit this
Acknowledgments:
- 'background-color' doesn't work on Mac IE 3, but 'background'
does (Susan Lesch <lesch@macvirus.com>)
- 'smaller' leads to illegible text in both Mac IE and Mac NS,
'small' is better: works in Mac NS, but is always 12pt in Mac IE
3 (Susan Lesch <lesch@macvirus.com>)
$Id$
*/
body {
margin: 2em 1em 2em 70px;
font-family: sans-serif;
color: black;
background: white;
background-position: top left;
background-attachment: fixed;
background-repeat: no-repeat;
}
th, td { /* ns 4 */
font-family: sans-serif;
}
h1, h2, h3, h4, h5, h6 { text-align: left }
h1, h2, h3 { color: #005A9C }
h1 { font: 170% sans-serif }
h2 { font: 140% sans-serif }
h3 { font: 120% sans-serif }
h4 { font: bold 100% sans-serif }
h5 { font: italic 100% sans-serif }
h6 { font: small-caps 100% sans-serif }
.hide { display: none }
div.head { margin-bottom: 1em }
div.head h1 { margin-top: 2em; clear: both }
div.head table { margin-left: 2em; margin-top: 2em }
div.head img { color: white; border: none } /* remove border from top image */
p.copyright { font-size: small }
p.copyright small { font-size: small }
@media screen { /* hide from IE3 */
a:hover { background: #ffa }
}
pre { margin-left: 2em }
/*
p {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
*/
dt, dd { margin-top: 0; margin-bottom: 0 } /* opera 3.50 */
dt { font-weight: bold }
pre, code { font-family: monospace } /* navigator 4 requires this */
ul.toc {
list-style: disc; /* Mac NS has problem with 'none' */
list-style: none;
}
@media aural {
h1, h2, h3 { stress: 20; richness: 90 }
.hide { speak: none }
p.copyright { volume: x-soft; speech-rate: x-fast }
dt { pause-before: 20% }
pre { speak-punctuation: code }
}
/* Things (icons) that should only show up in projection mode */
.projection { display: none }
@media projection { .projection { display: inline } }
body {
background-image: url(http://www.w3.org/StyleSheets/TR/logo-REC);
}
+101
View File
@@ -0,0 +1,101 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:27 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Acknowledgements</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='glossary.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='ecma-script-binding.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='ecma-script-binding.html'>previous</a> &nbsp; <a
accesskey='n' href='glossary.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="contributors" name='contributors'></a>
<h1 id='contributors-h1' class='adiv1'>Appendix D:
Acknowledgements</h1>
<p>Many people contributed to this specification, including members
of the DOM Working Group and the DOM Interest Group. We especially
thank the following:</p>
<p>Lauren Wood (SoftQuad Software Inc., <em>chair</em>), Andrew
Watson (Object Management Group), Andy Heninger (IBM), Arnaud Le
Hors (W3C and IBM), Ben Chang (Oracle), Bill Smith (Sun), Bill Shea
(Merrill Lynch), Bob Sutor (IBM), Chris Lovett (Microsoft), Chris
Wilson (Microsoft), David Brownell (Sun), David Singer (IBM), Don
Park (invited), Eric Vasilik (Microsoft), Gavin Nicol (INSO), Ian
Jacobs (W3C), James Clark (invited), James Davidson (Sun), Jared
Sorensen (Novell), Joe Kesselman (IBM), Joe Lapp (webMethods), Joe
Marini (Macromedia), Johnny Stenback (Netscape), Jonathan Marsh
(Microsoft), Jonathan Robie (Texcel Research and Software AG), Kim
Adamson-Sharpe (SoftQuad Software Inc.), Laurence Cable (Sun), Mark
Davis (IBM), Mark Scardina (Oracle), Martin D&uuml;rst (W3C), Mick
Goulish (Software AG), Mike Champion (Arbortext and Software AG),
Miles Sabin (Cromwell Media), Patti Lutsky (Arbortext), Paul Grosso
(Arbortext), Peter Sharpe (SoftQuad Software Inc.), Phil Karlton
(Netscape), Philippe Le H&eacute;garet (W3C, <em>W3C team
contact</em>), Ramesh Lekshmynarayanan (Merrill Lynch), Ray Whitmer
(iMall, Excite@Home and Netscape), Rich Rollman (Microsoft), Rick
Gessner (Netscape), Scott Isaacs (Microsoft), Sharon Adler (INSO),
Steve Byrne (JavaSoft), Tim Bray (invited), Tom Pixley (Netscape),
Vidur Apparao (Netscape), Vinod Anupam (Lucent).</p>
<p>Thanks to all those who have helped to improve this
specification by sending suggestions and corrections.</p>
<div class='div2'><a id="Productions" name='Productions'></a>
<h2 id='Productions-h2' class='adiv2'>D.1: Production Systems</h2>
<p>This specification was written in XML. The HTML, OMG IDL, Java
and ECMA Script bindings were all produced automatically.</p>
<p>Thanks to Joe English, author of <a
href='http://www.flightlab.com/cost'>cost</a>, which was used as
the basis for producing DOM Level 1. Thanks also to Gavin Nicol,
who wrote the scripts which run on top of cost. Arnaud Le Hors and
Philippe Le H&eacute;garet maintained the scripts.</p>
<p>For DOM Level 2, we used <a
href='http://xml.apache.org/xerces-j'>Xerces</a> as the basis DOM
implementation and wish to thank the authors. Philippe Le
H&eacute;garet and Arnaud Le Hors wrote the <a
href='http://dev.w3.org/cvsweb/java/classes/org/w3c/tools/specgenerator/'>
Java programs</a> which are the DOM application.</p>
<p>Thanks also to Jan K&auml;rrman, author of <a
href='http://www.tdb.uu.se/~jan/html2ps.html'>html2ps</a>, which we
use in creating the PostScript version of the specification.</p>
</div>
<!-- div2 Productions --></div>
<!-- div1 contributors -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='ecma-script-binding.html'>previous</a>
&nbsp; <a accesskey='n' href='glossary.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+229
View File
@@ -0,0 +1,229 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:43:57 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Copyright Notice</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='events.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='expanded-toc.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='expanded-toc.html'>previous</a> &nbsp; <a accesskey='n'
href='events.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="Copyright-Notice"
name='Copyright-Notice'></a>
<h1 id='Copyright-Notice-h1' class='div1'>Copyright Notice</h1>
<p><b>Copyright &copy; 2000 <a href='http://www.w3.org/'>World Wide
Web Consortium</a>, (<a
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
Recherche en Informatique et en Automatique</a>, <a
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
Reserved.</b></p>
<p>This document is published under the <a
href='copyright-notice.html#Copyright-notice-document'>W3C Document
Copyright Notice and License</a>. The bindings within this document
are published under the <a
href='copyright-notice.html#Copyright-notice-software'>W3C Software
Copyright Notice and License</a>. The software license requires
"Notice of any changes or modifications to the W3C files, including
the date changes were made." Consequently, modified versions of the
DOM bindings must document that they do not conform to the W3C
standard; in the case of the IDL definitions, the pragma prefix can
no longer be 'w3c.org'; in the case of the Java Language binding,
the package names can no longer be in the 'org.w3c' package.</p>
<div class='div2'><a id="Copyright-notice-document"
name='Copyright-notice-document'></a>
<hr width='50' align='center' title='Area separator' />
<h2 id='Copyright-notice-document-h2' class='div2'>W3C Document
Copyright Notice and License</h2>
<p><b>Note:</b> This section is a copy of the W3C Document Notice
and License and could be found at <a
href='http://www.w3.org/Consortium/Legal/copyright-documents-19990405'>
http://www.w3.org/Consortium/Legal/copyright-documents-19990405</a>.</p>
<p><b>Copyright &copy; 1994-2000 <a href='http://www.w3.org/'>World
Wide Web Consortium</a>, (<a
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
Recherche en Informatique et en Automatique</a>, <a
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
Reserved.</b></p>
<p><b>http://www.w3.org/Consortium/Legal/</b></p>
<p>Public documents on the W3C site are provided by the copyright
holders under the following license. The software or Document Type
Definitions (DTDs) associated with W3C specifications are governed
by the <a
href='http://www.w3.org/Consortium/Legal/copyright-software.html'>Software
Notice</a>. By using and/or copying this document, or the W3C
document from which this statement is linked, you (the licensee)
agree that you have read, understood, and will comply with the
following terms and conditions:</p>
<p>Permission to use, copy, and distribute the contents of this
document, or the W3C document from which this statement is linked,
in any medium for any purpose and without fee or royalty is hereby
granted, provided that you include the following on <em>ALL</em>
copies of the document, or portions thereof, that you use:</p>
<ol>
<li>A link or URL to the original W3C document.</li>
<li>The pre-existing copyright notice of the original author, or if
it doesn't exist, a notice of the form: "Copyright &copy;
[$date-of-document] <a href='http://www.w3.org/'>World Wide Web
Consortium</a>, (<a href='http://www.lcs.mit.edu/'>Massachusetts
Institute of Technology</a>, <a
href='http://www.inria.fr/'>Institut National de Recherche en
Informatique et en Automatique</a>, <a
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
Reserved. http://www.w3.org/Consortium/Legal/" (Hypertext is
preferred, but a textual representation is permitted.)</li>
<li><em>If it exists</em>, the STATUS of the W3C document.</li>
</ol>
<p>When space permits, inclusion of the full text of this
<b>NOTICE</b> should be provided. We request that authorship
attribution be provided in any software, documents, or other items
or products that you create pursuant to the implementation of the
contents of this document, or any portion thereof.</p>
<p>No right to create modifications or derivatives of W3C documents
is granted pursuant to this license. However, if additional
requirements (documented in the <a
href='http://www.w3.org/Consortium/Legal/IPR-FAQ.html'>Copyright
FAQ</a>) are satisfied, the right to create modifications or
derivatives is sometimes granted by the W3C to individuals
complying with those requirements.</p>
<p>THIS DOCUMENT IS PROVIDED "AS IS," AND COPYRIGHT HOLDERS MAKE NO
REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT
NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS
OF THE DOCUMENT ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE
IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY
PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
DOCUMENT OR THE PERFORMANCE OR IMPLEMENTATION OF THE CONTENTS
THEREOF.</p>
<p>The name and trademarks of copyright holders may NOT be used in
advertising or publicity pertaining to this document or its
contents without specific, written prior permission. Title to
copyright in this document will at all times remain with copyright
holders.</p>
</div>
<!-- div2 Copyright-notice-document -->
<div class='div2'><a id="Copyright-notice-software"
name='Copyright-notice-software'></a>
<hr width='50' align='center' title='Area separator' />
<h2 id='Copyright-notice-software-h2' class='div2'>W3C Software
Copyright Notice and License</h2>
<p><b>Note:</b> This section is a copy of the W3C Software
Copyright Notice and License and could be found at <a
href='http://www.w3.org/Consortium/Legal/copyright-software-19980720'>
http://www.w3.org/Consortium/Legal/copyright-software-19980720</a></p>
<p><b>Copyright &copy; 1994-2000 <a href='http://www.w3.org/'>World
Wide Web Consortium</a>, (<a
href='http://www.lcs.mit.edu/'>Massachusetts Institute of
Technology</a>, <a href='http://www.inria.fr/'>Institut National de
Recherche en Informatique et en Automatique</a>, <a
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
Reserved.</b></p>
<p><b>http://www.w3.org/Consortium/Legal/</b></p>
<p>This W3C work (including software, documents, or other related
items) is being provided by the copyright holders under the
following license. By obtaining, using and/or copying this work,
you (the licensee) agree that you have read, understood, and will
comply with the following terms and conditions:</p>
<p>Permission to use, copy, and modify this software and its
documentation, with or without modification, for any purpose and
without fee or royalty is hereby granted, provided that you include
the following on ALL copies of the software and documentation or
portions thereof, including modifications, that you make:</p>
<ol>
<li>The full text of this NOTICE in a location viewable to users of
the redistributed or derivative work.</li>
<li>Any pre-existing intellectual property disclaimers. If none
exist, then a notice of the following form: "Copyright &copy;
[$date-of-software] <a href='http://www.w3.org/'>World Wide Web
Consortium</a>, (<a href='http://www.lcs.mit.edu/'>Massachusetts
Institute of Technology</a>, <a
href='http://www.inria.fr/'>Institut National de Recherche en
Informatique et en Automatique</a>, <a
href='http://www.keio.ac.jp/'>Keio University</a>). All Rights
Reserved. http://www.w3.org/Consortium/Legal/."</li>
<li>Notice of any changes or modifications to the W3C files,
including the date changes were made. (We recommend you provide
URIs to the location from which the code is derived.)</li>
</ol>
<p>THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND
COPYRIGHT HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO, WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE
USE OF THE SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD
PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.</p>
<p>COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT,
SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE
SOFTWARE OR DOCUMENTATION.</p>
<p>The name and trademarks of copyright holders may NOT be used in
advertising or publicity pertaining to the software without
specific, written prior permission. Title to copyright in this
software and any associated documentation will at all times remain
with copyright holders.</p>
</div>
<!-- div2 Copyright-notice-software --></div>
<!-- div1 Copyright-Notice -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='expanded-toc.html'>previous</a> &nbsp; <a
accesskey='n' href='events.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a></div>
</body>
</html>
+363
View File
@@ -0,0 +1,363 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:28 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Index</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='contents' href='Overview.html#contents' />
<link rel='previous' href='references.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='references.html'>previous</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="Index" name='Index'></a>
<h1 id='role-index' class='index'>Index</h1>
<table
summary='the table contains all keywords used in this document'>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-EventTarget-addEventListener'>addEventListener</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-attrChangeType'>ADDITION</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-altKey'>altKey</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-overview-terminology'>ancestor</a> <a
class='index-inst'
href='events.html#Events-overview-terminology'>1</a>, <a
class='index-inst' href='events.html#Events-flow-capture'>2</a>, <a
class='index-inst' href='glossary.html#dt-ancestor'>3</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-eventPhaseType'>AT_TARGET</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-attrChange'>attrChange</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-attrName'>attrName</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-canBubble'>bubbles</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-eventPhaseType'>BUBBLING_PHASE</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-button'>button</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-canCancel'>cancelable</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-eventPhaseType'>CAPTURING_PHASE</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-eventgroupings-mutationevents'>child</a>
<a class='index-inst'
href='events.html#Events-eventgroupings-mutationevents'>1</a>, <a
class='index-inst' href='glossary.html#dt-child'>2</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-clientX'>clientX</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-clientY'>clientY</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-DocumentEvent-createEvent'>createEvent</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-ctrlKey'>ctrlKey</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-currentTarget'>currentTarget</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-flow-capture'>descendant</a> <a
class='index-inst' href='events.html#Events-flow-capture'>1</a>, <a
class='index-inst' href='glossary.html#dt-descendant'>2</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-UIEvent-detail'>detail</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-EventTarget-dispatchEvent'>dispatchEvent</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-DocumentEvent'>DocumentEvent</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-overview'>DOM Level 0</a> <a
class='index-inst' href='events.html#Events-overview'>1</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-uievents'>2</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-mouseevents'>3</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-htmlevents'>4</a>, <a
class='index-inst' href='glossary.html#dt-DOM-Level-0'>5</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-overview'>DOM Level 2 Core</a> <a
class='index-inst' href='events.html#Events-overview'>1</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-uievents'>2</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-mouseevents'>3</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-mutationevents'>4</a>, <a
class='index-inst'
href='events.html#Events-eventgroupings-htmlevents'>5</a>, <a
class='index-inst' href='references.html#DOMCore'>6</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-eventgroupings-uievents'>DOM Level 2
Views</a> <a class='index-inst'
href='events.html#Events-eventgroupings-uievents'>1</a>, <a
class='index-inst' href='references.html#DOMViews'>2</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='references.html#ECMAScript'>ECMAScript</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event'>Event</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-EventException'>EventException</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-EventListener'>EventListener</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-eventPhase'>eventPhase</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-EventTarget'>EventTarget</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-EventListener-handleEvent'>handleEvent</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-initEvent'>initEvent</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-initMouseEvent'>initMouseEvent</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-initMutationEvent'>initMutationEvent</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-initUIEvent'>initUIEvent</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='references.html#Java'>Java</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-metaKey'>metaKey</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-attrChangeType'>MODIFICATION</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent'>MouseEvent</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent'>MutationEvent</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-newValue'>newValue</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='references.html#OMGIDL'>OMGIDL</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-preventDefault'>preventDefault</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-prevValue'>prevValue</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-relatedNode'>relatedNode</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-relatedTarget'>relatedTarget</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MutationEvent-attrChangeType'>REMOVAL</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-EventTarget-removeEventListener'>removeEventListener</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-screenX'>screenX</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-screenY'>screenY</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-MouseEvent-shiftKey'>shiftKey</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-flow-capture'>sibling</a> <a
class='index-inst' href='events.html#Events-flow-capture'>1</a>, <a
class='index-inst' href='glossary.html#dt-sibling'>2</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-stopPropagation'>stopPropagation</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-target'>target</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-timeStamp'>timeStamp</a></td>
<td width='30%'><a class='noxref'
href='glossary.html#dt-tokenized'>tokenized</a></td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-type'>type</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-UIEvent'>UIEvent</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-EventException-EventExceptionCode'>UNSPECIFIED_EVENT_TYPE_ERR</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='events.html#Events-UIEvent-view'>view</a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td width='30%'><a class='noxref'
href='glossary.html#dt-XML-name'>XML</a> <a class='index-inst'
href='glossary.html#dt-XML-name'>1</a>, <a class='index-inst'
href='references.html#XML'>2</a></td>
<td width='30%'><a class='noxref'
href='events.html#Events-Event-type'>XML name</a> <a
class='index-inst' href='events.html#Events-Event-type'>1</a>, <a
class='index-inst' href='events.html#Events-Event-initEvent'>2</a>,
<a class='index-inst' href='glossary.html#dt-XML-name'>3</a></td>
</tr>
</table>
</div>
<!-- div1 Index -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='references.html'>previous</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a></div>
</body>
</html>
+472
View File
@@ -0,0 +1,472 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:26 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>ECMAScript Language Binding</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='acknowledgements.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='java-binding.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='java-binding.html'>previous</a> &nbsp; <a accesskey='n'
href='acknowledgements.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="ecma-binding" name='ecma-binding'></a>
<h1 id='ecma-binding-h1' class='adiv1'>Appendix C: ECMAScript
Language Binding</h1>
<p>This appendix contains the complete ECMAScript [<a
class='noxref' href='references.html#ECMAScript'>ECMAScript</a>]
binding for the Level 2 Document Object Model Events
definitions.</p>
<p><b>Note:</b> Exceptions handling is only supported by ECMAScript
implementation conformant with the Standard ECMA-262 3rd. Edition
([<a class='noxref'
href='references.html#ECMAScript'>ECMAScript</a>]).</p>
<div class='ecma-block'>
<dl>
<dt>Object <b>EventTarget</b></dt>
<dd>
<dl>
<dt>The <b>EventTarget</b> object has the following methods:</dt>
<dd>
<dl>
<dt><b>addEventListener(type, listener, useCapture)</b></dt>
<dd>This method has no return value.<br />
The <b>type</b> parameter is of type <b>String</b>.<br />
The <b>listener</b> parameter is a <b>EventListener</b>
object.<br />
The <b>useCapture</b> parameter is of type <b>Boolean</b>.</dd>
<dt><b>removeEventListener(type, listener, useCapture)</b></dt>
<dd>This method has no return value.<br />
The <b>type</b> parameter is of type <b>String</b>.<br />
The <b>listener</b> parameter is a <b>EventListener</b>
object.<br />
The <b>useCapture</b> parameter is of type <b>Boolean</b>.</dd>
<dt><b>dispatchEvent(evt)</b></dt>
<dd>This method returns a <b>Boolean</b>.<br />
The <b>evt</b> parameter is a <b>Event</b> object.<br />
This method can raise a <b>EventException</b> object.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>EventListener</b></dt>
<dd>This is an ECMAScript function reference. This method has no
return value. The parameter is a <b>Event</b> object.</dd>
<dt>Prototype Object <b>Event</b></dt>
<dd>
<dl>
<dt>The <b>Event</b> class has the following constants:</dt>
<dd>
<dl>
<dt><b>Event.CAPTURING_PHASE</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>1</b>.</dd>
<dt><b>Event.AT_TARGET</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>2</b>.</dd>
<dt><b>Event.BUBBLING_PHASE</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>3</b>.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>Event</b></dt>
<dd>
<dl>
<dt>The <b>Event</b> object has the following properties:</dt>
<dd>
<dl>
<dt><b>type</b></dt>
<dd>This read-only property is of type <b>String</b>.</dd>
<dt><b>target</b></dt>
<dd>This read-only property is a <b>EventTarget</b> object.</dd>
<dt><b>currentTarget</b></dt>
<dd>This read-only property is a <b>EventTarget</b> object.</dd>
<dt><b>eventPhase</b></dt>
<dd>This read-only property is of type <b>Number</b>.</dd>
<dt><b>bubbles</b></dt>
<dd>This read-only property is of type <b>Boolean</b>.</dd>
<dt><b>cancelable</b></dt>
<dd>This read-only property is of type <b>Boolean</b>.</dd>
<dt><b>timeStamp</b></dt>
<dd>This read-only property is a <b>Date</b> object.</dd>
</dl>
</dd>
<dt>The <b>Event</b> object has the following methods:</dt>
<dd>
<dl>
<dt><b>stopPropagation()</b></dt>
<dd>This method has no return value.</dd>
<dt><b>preventDefault()</b></dt>
<dd>This method has no return value.</dd>
<dt><b>initEvent(eventTypeArg, canBubbleArg,
cancelableArg)</b></dt>
<dd>This method has no return value.<br />
The <b>eventTypeArg</b> parameter is of type <b>String</b>.<br />
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Prototype Object <b>EventException</b></dt>
<dd>
<dl>
<dt>The <b>EventException</b> class has the following
constants:</dt>
<dd>
<dl>
<dt><b>EventException.UNSPECIFIED_EVENT_TYPE_ERR</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>0</b>.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>EventException</b></dt>
<dd>
<dl>
<dt>The <b>EventException</b> object has the following
properties:</dt>
<dd>
<dl>
<dt><b>code</b></dt>
<dd>This property is of type <b>Number</b>.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>DocumentEvent</b></dt>
<dd>
<dl>
<dt>The <b>DocumentEvent</b> object has the following methods:</dt>
<dd>
<dl>
<dt><b>createEvent(eventType)</b></dt>
<dd>This method returns a <b>Event</b> object.<br />
The <b>eventType</b> parameter is of type <b>String</b>.<br />
This method can raise a <b>DOMException</b> object.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>UIEvent</b></dt>
<dd>
<dl>
<dt><b>UIEvent</b> has the all the properties and methods of the
<b>Event</b> object as well as the properties and methods defined
below.</dt>
<dt>The <b>UIEvent</b> object has the following properties:</dt>
<dd>
<dl>
<dt><b>view</b></dt>
<dd>This read-only property is a <b>AbstractView</b> object.</dd>
<dt><b>detail</b></dt>
<dd>This read-only property is a <b>long</b> object.</dd>
</dl>
</dd>
<dt>The <b>UIEvent</b> object has the following methods:</dt>
<dd>
<dl>
<dt><b>initUIEvent(typeArg, canBubbleArg, cancelableArg, viewArg,
detailArg)</b></dt>
<dd>This method has no return value.<br />
The <b>typeArg</b> parameter is of type <b>String</b>.<br />
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>viewArg</b> parameter is a <b>AbstractView</b> object.<br />
The <b>detailArg</b> parameter is a <b>long</b> object.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>MouseEvent</b></dt>
<dd>
<dl>
<dt><b>MouseEvent</b> has the all the properties and methods of the
<b>UIEvent</b> object as well as the properties and methods defined
below.</dt>
<dt>The <b>MouseEvent</b> object has the following properties:</dt>
<dd>
<dl>
<dt><b>screenX</b></dt>
<dd>This read-only property is a <b>long</b> object.</dd>
<dt><b>screenY</b></dt>
<dd>This read-only property is a <b>long</b> object.</dd>
<dt><b>clientX</b></dt>
<dd>This read-only property is a <b>long</b> object.</dd>
<dt><b>clientY</b></dt>
<dd>This read-only property is a <b>long</b> object.</dd>
<dt><b>ctrlKey</b></dt>
<dd>This read-only property is of type <b>Boolean</b>.</dd>
<dt><b>shiftKey</b></dt>
<dd>This read-only property is of type <b>Boolean</b>.</dd>
<dt><b>altKey</b></dt>
<dd>This read-only property is of type <b>Boolean</b>.</dd>
<dt><b>metaKey</b></dt>
<dd>This read-only property is of type <b>Boolean</b>.</dd>
<dt><b>button</b></dt>
<dd>This read-only property is of type <b>Number</b>.</dd>
<dt><b>relatedTarget</b></dt>
<dd>This read-only property is a <b>EventTarget</b> object.</dd>
</dl>
</dd>
<dt>The <b>MouseEvent</b> object has the following methods:</dt>
<dd>
<dl>
<dt><b>initMouseEvent(typeArg, canBubbleArg, cancelableArg,
viewArg, detailArg, screenXArg, screenYArg, clientXArg, clientYArg,
ctrlKeyArg, altKeyArg, shiftKeyArg, metaKeyArg, buttonArg,
relatedTargetArg)</b></dt>
<dd>This method has no return value.<br />
The <b>typeArg</b> parameter is of type <b>String</b>.<br />
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>viewArg</b> parameter is a <b>AbstractView</b> object.<br />
The <b>detailArg</b> parameter is a <b>long</b> object.<br />
The <b>screenXArg</b> parameter is a <b>long</b> object.<br />
The <b>screenYArg</b> parameter is a <b>long</b> object.<br />
The <b>clientXArg</b> parameter is a <b>long</b> object.<br />
The <b>clientYArg</b> parameter is a <b>long</b> object.<br />
The <b>ctrlKeyArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>altKeyArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>shiftKeyArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>metaKeyArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>buttonArg</b> parameter is of type <b>Number</b>.<br />
The <b>relatedTargetArg</b> parameter is a <b>EventTarget</b>
object.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Prototype Object <b>MutationEvent</b></dt>
<dd>
<dl>
<dt>The <b>MutationEvent</b> class has the following
constants:</dt>
<dd>
<dl>
<dt><b>MutationEvent.MODIFICATION</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>1</b>.</dd>
<dt><b>MutationEvent.ADDITION</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>2</b>.</dd>
<dt><b>MutationEvent.REMOVAL</b></dt>
<dd>This constant is of type <b>Number</b> and its value is
<b>3</b>.</dd>
</dl>
</dd>
</dl>
</dd>
<dt>Object <b>MutationEvent</b></dt>
<dd>
<dl>
<dt><b>MutationEvent</b> has the all the properties and methods of
the <b>Event</b> object as well as the properties and methods
defined below.</dt>
<dt>The <b>MutationEvent</b> object has the following
properties:</dt>
<dd>
<dl>
<dt><b>relatedNode</b></dt>
<dd>This read-only property is a <b>Node</b> object.</dd>
<dt><b>prevValue</b></dt>
<dd>This read-only property is of type <b>String</b>.</dd>
<dt><b>newValue</b></dt>
<dd>This read-only property is of type <b>String</b>.</dd>
<dt><b>attrName</b></dt>
<dd>This read-only property is of type <b>String</b>.</dd>
<dt><b>attrChange</b></dt>
<dd>This read-only property is of type <b>Number</b>.</dd>
</dl>
</dd>
<dt>The <b>MutationEvent</b> object has the following methods:</dt>
<dd>
<dl>
<dt><b>initMutationEvent(typeArg, canBubbleArg, cancelableArg,
relatedNodeArg, prevValueArg, newValueArg, attrNameArg,
attrChangeArg)</b></dt>
<dd>This method has no return value.<br />
The <b>typeArg</b> parameter is of type <b>String</b>.<br />
The <b>canBubbleArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>cancelableArg</b> parameter is of type <b>Boolean</b>.<br />
The <b>relatedNodeArg</b> parameter is a <b>Node</b> object.<br />
The <b>prevValueArg</b> parameter is of type <b>String</b>.<br />
The <b>newValueArg</b> parameter is of type <b>String</b>.<br />
The <b>attrNameArg</b> parameter is of type <b>String</b>.<br />
The <b>attrChangeArg</b> parameter is of type <b>Number</b>.</dd>
</dl>
</dd>
</dl>
</dd>
</dl>
</div>
<!-- ecma-block -->
<p>The following example will add an ECMAScript based EventListener
to the Node 'exampleNode':</p>
<div class='code-block'>
<pre>
// Given the Node 'exampleNode'
// Define the EventListener function
function clickHandler(evt)
{
// Function contents
}
// The following line will add a non-capturing 'click' listener
// to 'exampleNode'.
exampleNode.addEventListener("click", clickHandler, false);
</pre>
</div>
</div>
<!-- div1 ecma-binding -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='java-binding.html'>previous</a> &nbsp; <a
accesskey='n' href='acknowledgements.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
File diff suppressed because it is too large. Load diff
+192
View File
@@ -0,0 +1,192 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:43:56 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Expanded Table of Contents</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='copyright-notice.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='Overview.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='Overview.html'>previous</a> &nbsp; <a accesskey='n'
href='copyright-notice.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="TOC" name='TOC'></a>
<h1 id='TOC-h1' class='div1'>Expanded Table of Contents</h1>
<ul class='toc'>
<li class='tocline2'><a class='tocxref'
href='expanded-toc.html'>Expanded Table of Contents</a></li>
<li class='tocline2'><a class='tocxref'
href='copyright-notice.html'>Copyright Notice</a>
<ul class='toc'>
<li class='tocline3'><a class='tocxref'
href='copyright-notice.html#Copyright-notice-document'>W3C Document
Copyright Notice and License</a></li>
<li class='tocline3'><a class='tocxref'
href='copyright-notice.html#Copyright-notice-software'>W3C Software
Copyright Notice and License</a></li>
</ul>
</li>
</ul>
<ul class='toc'>
<li class='tocline2'><a class='tocxref' href='events.html'>1.
Document Object Model Events</a>
<ul class='toc'>
<li class='tocline3'><a class='tocxref'
href='events.html#Events-overview'>1.1. Overview of the DOM Level 2
Event Model</a>
<ul class='toc'>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-overview-terminology'>1.1.1.
Terminology</a></li>
</ul>
</li>
<li class='tocline3'><a class='tocxref'
href='events.html#Events-flow'>1.2. Description of event flow</a>
<ul class='toc'>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-flow-basic'>1.2.1. Basic event
flow</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-flow-capture'>1.2.2. Event
capture</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-flow-bubbling'>1.2.3. Event
bubbling</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-flow-cancelation'>1.2.4. Event
cancelation</a></li>
</ul>
</li>
<li class='tocline3'><a class='tocxref'
href='events.html#Events-registration'>1.3. Event listener
registration</a>
<ul class='toc'>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-Registration-interfaces'>1.3.1. Event
registration interfaces</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-registration-html40'>1.3.2. Interaction
with HTML 4.0 event listeners</a></li>
</ul>
</li>
<li class='tocline3'><a class='tocxref'
href='events.html#Events-interface'>1.4. Event interface</a></li>
<li class='tocline3'><a class='tocxref'
href='events.html#Events-document'>1.5. DocumentEvent
interface</a></li>
<li class='tocline3'><a class='tocxref'
href='events.html#Events-eventgroupings'>1.6. Event module
definitions</a>
<ul class='toc'>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-eventgroupings-uievents'>1.6.1. User
Interface event types</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-eventgroupings-mouseevents'>1.6.2. Mouse
event types</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-eventgroupings-keyevents'>1.6.3. Key
events</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-eventgroupings-mutationevents'>1.6.4.
Mutation event types</a></li>
<li class='tocline4'><a class='tocxref'
href='events.html#Events-eventgroupings-htmlevents'>1.6.5. HTML
event types</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<ul class='toc'>
<li class='tocline2'><a class='tocxref'
href='idl-definitions.html'>Appendix A: IDL Definitions</a></li>
<li class='tocline2'><a class='tocxref'
href='java-binding.html'>Appendix B: Java Language Binding</a></li>
<li class='tocline2'><a class='tocxref'
href='ecma-script-binding.html'>Appendix C: ECMAScript Language
Binding</a></li>
<li class='tocline2'><a class='tocxref'
href='acknowledgements.html'>Appendix D: Acknowledgements</a>
<ul class='toc'>
<li class='tocline3'><a class='tocxref'
href='acknowledgements.html#Productions'>D.1. Production
Systems</a></li>
</ul>
</li>
<li class='tocline2'><a class='tocxref'
href='glossary.html'>Glossary</a></li>
<li class='tocline2'><a class='tocxref'
href='references.html'>References</a>
<ul class='toc'>
<li class='tocline3'><a class='tocxref'
href='references.html#References-Normative'>1. Normative
references</a></li>
</ul>
</li>
<li class='tocline2'><a class='tocxref'
href='def-index.html'>Index</a></li>
</ul>
</div>
<!-- div1 TOC -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='Overview.html'>previous</a> &nbsp; <a
accesskey='n' href='copyright-notice.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+111
View File
@@ -0,0 +1,111 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:27 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Glossary</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='references.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='acknowledgements.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='acknowledgements.html'>previous</a> &nbsp; <a accesskey='n'
href='references.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="glossary" name='glossary'></a>
<h1 id='role-glossary' class='glossary'>Glossary</h1>
<dl>
<dt><i>Editors</i></dt>
<dd>Arnaud Le Hors, IBM</dd>
<dd>Lauren Wood, SoftQuad Software Inc.</dd>
<dd>Robert S. Sutor, IBM (for DOM Level 1)</dd>
</dl>
<p>Several of the following term definitions have been borrowed or
modified from similar definitions in other W3C or standards
documents. See the links within the definitions for more
information.</p>
<dl>
<dt><b><a id="dt-ancestor" name='dt-ancestor'>ancestor</a></b></dt>
<dd>An <i>ancestor</i> node of any node A is any node above A in a
tree model of a document, where "above" means "toward the
root."</dd>
<dt><b><a id="dt-child" name='dt-child'>child</a></b></dt>
<dd>A <i>child</i> is an immediate <i>descendant</i> node of a
node.</dd>
<dt><b><a id="dt-descendant"
name='dt-descendant'>descendant</a></b></dt>
<dd>A <i>descendant</i> node of any node A is any node below A in a
tree model of a document, where "above" means "toward the
root."</dd>
<dt><b><a id="dt-DOM-Level-0" name='dt-DOM-Level-0'>DOM Level
0</a></b></dt>
<dd>The term "<i>DOM Level 0</i>" refers to a mix (not formally
specified) of HTML document functionalities offered by Netscape
Navigator version 3.0 and Microsoft Internet Explorer version 3.0.
In some cases, attributes or <i>methods</i> have been included for
reasons of backward compatibility with "DOM Level 0".</dd>
<dt><b><a id="dt-sibling" name='dt-sibling'>sibling</a></b></dt>
<dd>Two nodes are <i>siblings</i> if and only if they have the same
<i>parent</i> node.</dd>
<dt><b><a id="dt-tokenized"
name='dt-tokenized'>tokenized</a></b></dt>
<dd>The description given to various information items (for
example, attribute values of various types, but not including the
StringType CDATA) after having been processed by the XML processor.
The process includes stripping leading and trailing white space,
and replacing multiple space characters by one. See the definition
of tokenized type.</dd>
<dt><b><a id="dt-XML-name" name='dt-XML-name'>XML name</a></b></dt>
<dd>See <a
href='http://www.w3.org/TR/1998/REC-xml-19980210#NT-Name'><em>XML
name</em></a> in the XML specification [<a class='noxref'
href='references.html#XML'>XML</a>].</dd>
</dl>
</div>
<!-- div1 glossary -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='acknowledgements.html'>previous</a> &nbsp;
<a accesskey='n' href='references.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+198
View File
@@ -0,0 +1,198 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:19 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>IDL Definitions</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='java-binding.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='events.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='events.html'>previous</a> &nbsp; <a accesskey='n'
href='java-binding.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="idl" name='idl'></a>
<h1 id='idl-h1' class='adiv1'>Appendix A: IDL Definitions</h1>
<p>This appendix contains the complete OMG IDL [<a class='noxref'
href='references.html#OMGIDL'>OMGIDL</a>] for the Level 2 Document
Object Model Events definitions.</p>
<p>The IDL files are also available as: <a
href='idl.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/idl.zip</a></p>
<h3 id='idl-events.idl'><a
href='idl/events.idl'>events.idl</a>:</h3>
<div class='idl-code'>
<pre>
// File: events.idl
#ifndef _EVENTS_IDL_
#define _EVENTS_IDL_
#include "dom.idl"
#include "views.idl"
#pragma prefix "dom.w3c.org"
module events
{
typedef dom::DOMString DOMString;
typedef dom::DOMTimeStamp DOMTimeStamp;
typedef dom::Node Node;
interface EventListener;
interface Event;
// Introduced in DOM Level 2:
exception EventException {
unsigned short code;
};
// EventExceptionCode
const unsigned short UNSPECIFIED_EVENT_TYPE_ERR = 0;
// Introduced in DOM Level 2:
interface EventTarget {
void addEventListener(in DOMString type,
in EventListener listener,
in boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in boolean useCapture);
boolean dispatchEvent(in Event evt)
raises(EventException);
};
// Introduced in DOM Level 2:
interface EventListener {
void handleEvent(in Event evt);
};
// Introduced in DOM Level 2:
interface Event {
// PhaseType
const unsigned short CAPTURING_PHASE = 1;
const unsigned short AT_TARGET = 2;
const unsigned short BUBBLING_PHASE = 3;
readonly attribute DOMString type;
readonly attribute EventTarget target;
readonly attribute EventTarget currentTarget;
readonly attribute unsigned short eventPhase;
readonly attribute boolean bubbles;
readonly attribute boolean cancelable;
readonly attribute DOMTimeStamp timeStamp;
void stopPropagation();
void preventDefault();
void initEvent(in DOMString eventTypeArg,
in boolean canBubbleArg,
in boolean cancelableArg);
};
// Introduced in DOM Level 2:
interface DocumentEvent {
Event createEvent(in DOMString eventType)
raises(dom::DOMException);
};
// Introduced in DOM Level 2:
interface UIEvent : Event {
readonly attribute views::AbstractView view;
readonly attribute long detail;
void initUIEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in views::AbstractView viewArg,
in long detailArg);
};
// Introduced in DOM Level 2:
interface MouseEvent : UIEvent {
readonly attribute long screenX;
readonly attribute long screenY;
readonly attribute long clientX;
readonly attribute long clientY;
readonly attribute boolean ctrlKey;
readonly attribute boolean shiftKey;
readonly attribute boolean altKey;
readonly attribute boolean metaKey;
readonly attribute unsigned short button;
readonly attribute EventTarget relatedTarget;
void initMouseEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in views::AbstractView viewArg,
in long detailArg,
in long screenXArg,
in long screenYArg,
in long clientXArg,
in long clientYArg,
in boolean ctrlKeyArg,
in boolean altKeyArg,
in boolean shiftKeyArg,
in boolean metaKeyArg,
in unsigned short buttonArg,
in EventTarget relatedTargetArg);
};
// Introduced in DOM Level 2:
interface MutationEvent : Event {
// attrChangeType
const unsigned short MODIFICATION = 1;
const unsigned short ADDITION = 2;
const unsigned short REMOVAL = 3;
readonly attribute Node relatedNode;
readonly attribute DOMString prevValue;
readonly attribute DOMString newValue;
readonly attribute DOMString attrName;
readonly attribute unsigned short attrChange;
void initMutationEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in Node relatedNodeArg,
in DOMString prevValueArg,
in DOMString newValueArg,
in DOMString attrNameArg,
in unsigned short attrChangeArg);
};
};
#endif // _EVENTS_IDL_
</pre>
</div>
</div>
<!-- div1 idl -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='events.html'>previous</a> &nbsp; <a
accesskey='n' href='java-binding.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+150
View File
@@ -0,0 +1,150 @@
/*
* Copyright (c) 2000 World Wide Web Consortium,
* (Massachusetts Institute of Technology, Institut National de
* Recherche en Informatique et en Automatique, Keio University). All
* Rights Reserved. This program is distributed under the W3C's Software
* Intellectual Property License. This program is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE.
* See W3C License http://www.w3.org/Consortium/Legal/ for more details.
*/
// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/events.idl
#ifndef _EVENTS_IDL_
#define _EVENTS_IDL_
#include "dom.idl"
#include "views.idl"
#pragma prefix "dom.w3c.org"
module events
{
typedef dom::DOMString DOMString;
typedef dom::DOMTimeStamp DOMTimeStamp;
typedef dom::Node Node;
interface EventListener;
interface Event;
// Introduced in DOM Level 2:
exception EventException {
unsigned short code;
};
// EventExceptionCode
const unsigned short UNSPECIFIED_EVENT_TYPE_ERR = 0;
// Introduced in DOM Level 2:
interface EventTarget {
void addEventListener(in DOMString type,
in EventListener listener,
in boolean useCapture);
void removeEventListener(in DOMString type,
in EventListener listener,
in boolean useCapture);
boolean dispatchEvent(in Event evt)
raises(EventException);
};
// Introduced in DOM Level 2:
interface EventListener {
void handleEvent(in Event evt);
};
// Introduced in DOM Level 2:
interface Event {
// PhaseType
const unsigned short CAPTURING_PHASE = 1;
const unsigned short AT_TARGET = 2;
const unsigned short BUBBLING_PHASE = 3;
readonly attribute DOMString type;
readonly attribute EventTarget target;
readonly attribute EventTarget currentTarget;
readonly attribute unsigned short eventPhase;
readonly attribute boolean bubbles;
readonly attribute boolean cancelable;
readonly attribute DOMTimeStamp timeStamp;
void stopPropagation();
void preventDefault();
void initEvent(in DOMString eventTypeArg,
in boolean canBubbleArg,
in boolean cancelableArg);
};
// Introduced in DOM Level 2:
interface DocumentEvent {
Event createEvent(in DOMString eventType)
raises(dom::DOMException);
};
// Introduced in DOM Level 2:
interface UIEvent : Event {
readonly attribute views::AbstractView view;
readonly attribute long detail;
void initUIEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in views::AbstractView viewArg,
in long detailArg);
};
// Introduced in DOM Level 2:
interface MouseEvent : UIEvent {
readonly attribute long screenX;
readonly attribute long screenY;
readonly attribute long clientX;
readonly attribute long clientY;
readonly attribute boolean ctrlKey;
readonly attribute boolean shiftKey;
readonly attribute boolean altKey;
readonly attribute boolean metaKey;
readonly attribute unsigned short button;
readonly attribute EventTarget relatedTarget;
void initMouseEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in views::AbstractView viewArg,
in long detailArg,
in long screenXArg,
in long screenYArg,
in long clientXArg,
in long clientYArg,
in boolean ctrlKeyArg,
in boolean altKeyArg,
in boolean shiftKeyArg,
in boolean metaKeyArg,
in unsigned short buttonArg,
in EventTarget relatedTargetArg);
};
// Introduced in DOM Level 2:
interface MutationEvent : Event {
// attrChangeType
const unsigned short MODIFICATION = 1;
const unsigned short ADDITION = 2;
const unsigned short REMOVAL = 3;
readonly attribute Node relatedNode;
readonly attribute DOMString prevValue;
readonly attribute DOMString newValue;
readonly attribute DOMString attrName;
readonly attribute unsigned short attrChange;
void initMutationEvent(in DOMString typeArg,
in boolean canBubbleArg,
in boolean cancelableArg,
in Node relatedNodeArg,
in DOMString prevValueArg,
in DOMString newValueArg,
in DOMString attrNameArg,
in unsigned short attrChangeArg);
};
};
#endif // _EVENTS_IDL_
Binary file not shown.

After

Width:  |  Height:  |  Size: 903 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

+278
View File
@@ -0,0 +1,278 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:21 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Java Language Binding</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='ecma-script-binding.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='idl-definitions.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='idl-definitions.html'>previous</a> &nbsp; <a accesskey='n'
href='ecma-script-binding.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="java-binding" name='java-binding'></a>
<h1 id='java-binding-h1' class='adiv1'>Appendix B: Java Language
Binding</h1>
<p>This appendix contains the complete Java [<a class='noxref'
href='references.html#Java'>Java</a>] bindings for the Level 2
Document Object Model Events.</p>
<p>The Java files are also available as <a
href='java-binding.zip'>http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113/java-binding.zip</a></p>
<h3 id='org.w3c.dom.events.EventException'>
org/w3c/dom/events/EventException.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
public class EventException extends RuntimeException {
public EventException(short code, String message) {
super(message);
this.code = code;
}
public short code;
// EventExceptionCode
public static final short UNSPECIFIED_EVENT_TYPE_ERR = 0;
}
</pre>
</div>
<h3 id='org.w3c.dom.events.EventTarget'>
org/w3c/dom/events/EventTarget.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
public interface EventTarget {
public void addEventListener(String type,
EventListener listener,
boolean useCapture);
public void removeEventListener(String type,
EventListener listener,
boolean useCapture);
public boolean dispatchEvent(Event evt)
throws EventException;
}
</pre>
</div>
<h3 id='org.w3c.dom.events.EventListener'>
org/w3c/dom/events/EventListener.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
public interface EventListener {
public void handleEvent(Event evt);
}
</pre>
</div>
<h3 id='org.w3c.dom.events.Event'>
org/w3c/dom/events/Event.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
public interface Event {
// PhaseType
public static final short CAPTURING_PHASE = 1;
public static final short AT_TARGET = 2;
public static final short BUBBLING_PHASE = 3;
public String getType();
public EventTarget getTarget();
public EventTarget getCurrentTarget();
public short getEventPhase();
public boolean getBubbles();
public boolean getCancelable();
public long getTimeStamp();
public void stopPropagation();
public void preventDefault();
public void initEvent(String eventTypeArg,
boolean canBubbleArg,
boolean cancelableArg);
}
</pre>
</div>
<h3 id='org.w3c.dom.events.DocumentEvent'>
org/w3c/dom/events/DocumentEvent.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
import org.w3c.dom.DOMException;
public interface DocumentEvent {
public Event createEvent(String eventType)
throws DOMException;
}
</pre>
</div>
<h3 id='org.w3c.dom.events.UIEvent'>
org/w3c/dom/events/UIEvent.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
import org.w3c.dom.views.AbstractView;
public interface UIEvent extends Event {
public AbstractView getView();
public int getDetail();
public void initUIEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
AbstractView viewArg,
int detailArg);
}
</pre>
</div>
<h3 id='org.w3c.dom.events.MouseEvent'>
org/w3c/dom/events/MouseEvent.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
import org.w3c.dom.views.AbstractView;
public interface MouseEvent extends UIEvent {
public int getScreenX();
public int getScreenY();
public int getClientX();
public int getClientY();
public boolean getCtrlKey();
public boolean getShiftKey();
public boolean getAltKey();
public boolean getMetaKey();
public short getButton();
public EventTarget getRelatedTarget();
public void initMouseEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
AbstractView viewArg,
int detailArg,
int screenXArg,
int screenYArg,
int clientXArg,
int clientYArg,
boolean ctrlKeyArg,
boolean altKeyArg,
boolean shiftKeyArg,
boolean metaKeyArg,
short buttonArg,
EventTarget relatedTargetArg);
}
</pre>
</div>
<h3 id='org.w3c.dom.events.MutationEvent'>
org/w3c/dom/events/MutationEvent.java:</h3>
<div class='java-code'>
<pre>
package org.w3c.dom.events;
import org.w3c.dom.Node;
public interface MutationEvent extends Event {
// attrChangeType
public static final short MODIFICATION = 1;
public static final short ADDITION = 2;
public static final short REMOVAL = 3;
public Node getRelatedNode();
public String getPrevValue();
public String getNewValue();
public String getAttrName();
public short getAttrChange();
public void initMutationEvent(String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
Node relatedNodeArg,
String prevValueArg,
String newValueArg,
String attrNameArg,
short attrChangeArg);
}
</pre>
</div>
</div>
<!-- div1 java-binding -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='idl-definitions.html'>previous</a> &nbsp; <a
accesskey='n' href='ecma-script-binding.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+105
View File
@@ -0,0 +1,105 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Generated: Thu Nov 09 17:44:27 EST 2000 jfouffa.w3.org
-->
<html lang='en' xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>References</title>
<link rel='stylesheet' type='text/css' href='./spec.css' />
<link rel='stylesheet' type='text/css' href='W3C-REC.css' />
<link rel='next' href='def-index.html' />
<link rel='contents' href='Overview.html#contents' />
<link rel='index' href='def-index.html' />
<link rel='previous' href='glossary.html' />
</head>
<body>
<div class='navbar' align='center'><a accesskey='p'
href='glossary.html'>previous</a> &nbsp; <a accesskey='n'
href='def-index.html'>next</a> &nbsp; <a accesskey='c'
href='Overview.html#contents'>contents</a> &nbsp; <a accesskey='i'
href='def-index.html'>index</a>
<hr title='Navigation area separator' />
</div>
<div class='noprint' style='text-align: right'>
<p style='font-family: monospace;font-size:small'>13 November,
2000</p>
</div>
<div class='div1'><a id="References" name='References'></a>
<h1 id='role-references' class='references'>References</h1>
<p>For the latest version of any W3C specification please consult
the list of <a href='http://www.w3.org/TR'>W3C Technical
Reports</a> available at http://www.w3.org/TR.</p>
<div class='div2'><a id="References-Normative"
name='References-Normative'></a>
<h2 id='References-Normative-h2' class='adiv2'>F.1: Normative
references</h2>
<dl>
<dt><b><a id="DOMCore" name='DOMCore'>DOM Level 2 Core</a></b></dt>
<dd>W3C (World Wide Web Consortium) <a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113'>Document
Object Model Level 2 Core Specification</a>, November 2000.
Available at
http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113</dd>
<dt><b><a id="ECMAScript" name='ECMAScript'>ECMAScript</a></b></dt>
<dd>ECMA (European Computer Manufacturers Association) <a
href='http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM'>ECMAScript
Language Specification</a>. Available at
http://www.ecma.ch/ecma1/STAND/ECMA-262.HTM</dd>
<dt><b><a id="Java" name='Java'>Java</a></b></dt>
<dd>Sun Microsystems Inc. <a
href='http://java.sun.com/docs/books/jls'>The Java Language
Specification</a>, James Gosling, Bill Joy, and Guy Steele,
September 1996. Available at
http://java.sun.com/docs/books/jls</dd>
<dt><b><a id="OMGIDL" name='OMGIDL'>OMGIDL</a></b></dt>
<dd>OMG (<a href='http://www.omg.org/'>Object Management Group</a>)
IDL (Interface Definition Language) defined in The Common Object
Request Broker: Architecture and Specification, version 2.3.1,
October 1999. Available from http://www.omg.org/</dd>
<dt><b><a id="DOMViews" name='DOMViews'>DOM Level 2
Views</a></b></dt>
<dd>W3C (World Wide Web Consortium) <a
href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113'>Document
Object Model Level 2 Views Specification</a>, November 2000.
Available at
http://www.w3.org/TR/2000/REC-DOM-Level-2-Views-20001113</dd>
<dt><b><a id="XML" name='XML'>XML</a></b></dt>
<dd>W3C (World Wide Web Consortium) <a
href='http://www.w3.org/TR/1998/REC-xml-19980210'>Extensible Markup
Language (XML) 1.0</a>, February 1998. Available at
http://www.w3.org/TR/1998/REC-xml-19980210</dd>
</dl>
</div>
<!-- div2 References-Normative --></div>
<!-- div1 References -->
<div class='navbar' align='center'>
<hr title='Navigation area separator' />
<a accesskey='p' href='glossary.html'>previous</a> &nbsp; <a
accesskey='n' href='def-index.html'>next</a> &nbsp; <a
accesskey='c' href='Overview.html#contents'>contents</a> &nbsp; <a
accesskey='i' href='def-index.html'>index</a></div>
</body>
</html>
+75
View File
@@ -0,0 +1,75 @@
H4 {
text-align: left;
font-family: sans-serif;
font-weight: normal;
color: #0050B2;
}
.idl-code {
font-family: monospace;
border: 1px solid black;
white-space: pre;
color: black;
background-color: #dfdfdf;
}
.java-code {
font-family: monospace;
border: 1px solid black;
white-space: pre;
color: black;
background-color: #dfdfdf;
}
.code-block {
font-family: monospace;
border: 1px solid black;
white-space: pre;
color: black;
background-color: #dfdfdf;
}
.ecma-block {
border: 1px solid black;
color: black;
background-color: #dfdfdf;
}
.interface-name {
font-weight: bold
}
.attribute-name {
color: black;
background-color: #FFFFD2;
}
.constant-name {
color: black;
background-color: #DDFFD2;
}
.method-name {
color: black;
background-color: #D9E6F8;
}
.parameter-name {
color: black;
background-color: #FEE6F8;
}
UL.toc, OL.toc {list-style: none}
DIV.toc UL UL, DIV.toc OL OL {margin-left: 0}
DIV.toc UL UL UL, DIV.toc OL OL OL {margin-left: 1em}
DIV.toc UL UL UL UL, DIV.toc OL OL OL OL {margin-left: 0}
LI.tocline1 {font-weight: bold}
LI.tocline2 {font-weight: normal}
LI.tocline4 {font-style: italic}
code { font-family: monospace }
div.paramtable { margin-left: 1em }
div.returntable { margin-left: 1em }
div.exceptiontable { margin-left: 1em }