Event.Facade.html revision 62e7a7d39cc0c6d25fec20964c26bc35b9fa116a
<html>
<head>
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<h3>event <span class="subtitle">3.00PR1</span></h3>
<p>
> Event.Facade
</p>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<form name="yui-classopts-form">
<span id="classopts"><input type="checkbox" name="showprivate" id="showprivate" /> Show Private</span>
<span id="classopts"><input type="checkbox" name="showprotected" id="showprotected" /> Show Protected</span>
<span id="classopts"><input type="checkbox" name="showdeprecated" id="showdeprecated" /> Show Deprecated</span>
</form>
<h2>
<span class="extends">
</span>
<span class="extends">
</span>
</code>
</h2>
<!-- class tree goes here -->
<div class="summary description">
Wraps a DOM event, properties requiring browser abstraction are
fixed here. Provids a security layer when required.
</div>
<div class="section field details">
<h3 id="properties">Properties</h3>
<div class="content">
<div class="">
<h4><a name="property_button">button</a>
<code>- int</code>
</h4>
<div class="detail">
<div class="description">
The button that was pushed.
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_charCode">charCode</a>
<code>- int</code>
</h4>
<div class="detail">
<div class="description">
The charCode for key events. Same as keyCode
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_currentTarget">currentTarget</a>
<code>- Node</code>
</h4>
<div class="detail">
<div class="description">
Node reference for the element that the listener was attached to.
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_details">details</a>
<code>- Array</code>
</h4>
<div class="detail">
<div class="description">
The event details. Currently supported for Custom
Events only, where it contains the arguments that
were passed to fire().
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_keyCode">keyCode</a>
<code>- int</code>
</h4>
<div class="detail">
<div class="description">
The keyCode for key events. Uses charCode if keyCode is not available
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_pageX">pageX</a>
<code>- int</code>
</h4>
<div class="detail">
<div class="description">
The X location of the event on the page (including scroll)
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_pageY">pageY</a>
<code>- int</code>
</h4>
<div class="detail">
<div class="description">
The Y location of the event on the page (including scroll)
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_relatedTarget">relatedTarget</a>
<code>- Node</code>
</h4>
<div class="detail">
<div class="description">
Node reference to the relatedTarget
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_target">target</a>
<code>- Node</code>
</h4>
<div class="detail">
<div class="description">
Node reference for the targeted element
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_time">time</a>
<code>- Date</code>
</h4>
<div class="detail">
<div class="description">
Timestamp for the event
</div>
</div>
<hr />
</div>
<div class="">
<h4><a name="property_which">which</a>
<code>- int</code>
</h4>
<div class="detail">
<div class="description">
The button that was pushed. Same as button.
</div>
</div>
<hr />
</div>
</div>
</div>
<div class="section method details">
<h3 id="methods">Methods</h3>
<div class="content">
<div class="">
<h4>
<a name="method_halt">halt</a></h4>
<div class="detail">
<code>
void
<strong>halt</strong>
(
immediate
)
</code>
<div class="description">
Stops the event propagation and prevents the default
event behavior.
</div>
<div class="description">
<dl>
<dt>Parameters:</dt>
<dd>
<code>immediate <boolean></code>
if true additional listeners
on the current target will not be executed
</dd>
</dl>
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_preventDefault">preventDefault</a></h4>
<div class="detail">
<code>
void
<strong>preventDefault</strong>
(
)
</code>
<div class="description">
Prevents the event's default behavior
</div>
<div class="description">
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_stopImmediatePropagation">stopImmediatePropagation</a></h4>
<div class="detail">
<code>
void
<strong>stopImmediatePropagation</strong>
(
)
</code>
<div class="description">
Stops the propagation to the next bubble target and
prevents any additional listeners from being exectued
on the current target.
</div>
<div class="description">
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
<div class="">
<h4>
<a name="method_stopPropagation">stopPropagation</a></h4>
<div class="detail">
<code>
void
<strong>stopPropagation</strong>
(
)
</code>
<div class="description">
Stops the propagation to the next bubble target
</div>
<div class="description">
<dl>
<dt>Returns:
<code>
void
</code></dt>
<dd></dd>
</dl>
</div>
</div>
<hr />
</div>
</div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div class="module">
<h4>Modules</h4>
<ul class="content">
</ul>
</div>
<div class="module">
<h4>Classes</h4>
<ul class="content">
</ul>
</div>
<div class="module">
<h4>Files</h4>
<ul class="content">
</ul>
</div>
<div class="module">
<h4>Properties</h4>
<ul class="content">
<li class=""><a href="#property_button">button</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_charCode">charCode</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_currentTarget">currentTarget</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_details">details</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_keyCode">keyCode</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_pageX">pageX</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_pageY">pageY</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_relatedTarget">relatedTarget</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_target">target</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_time">time</a>
<!--<code><int></code>-->
</li>
<li class=""><a href="#property_which">which</a>
<!--<code><int></code>-->
</li>
</ul>
</div>
<div class="module">
<h4>Methods</h4>
<ul class="content">
<li class=""><!--<code>void</code>-->
<a href="#method_halt">halt</a>
</li>
<li class=""><!--<code>void</code>-->
<a href="#method_preventDefault">preventDefault</a>
</li>
<li class=""><!--<code>void</code>-->
<a href="#method_stopImmediatePropagation">stopImmediatePropagation</a>
</li>
<li class=""><!--<code>void</code>-->
<a href="#method_stopPropagation">stopPropagation</a>
</li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright © 2008 Yahoo! Inc. All rights reserved.
</div>
</div>
</body>
</html>