| Current File : //opt/RZphp5/includes/doc/HTML_Progress2/docs/TDG/ch19s02.html |
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>
Listener
</title>
<link rel="stylesheet" href="book.css" type="text/css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1" />
<link rel="start" href="index.html" title="HTML_Progress2 Manual" />
<link rel="up" href="ch19.html" title=
"Chapter 19. API - Application Programming Interface" />
<link rel="prev" href="re03.html" title="HTML_Progress2::getError" />
<link rel="next" href="re04.html" title="HTML_Progress2::addListener" />
<style type="text/css">
/*<![CDATA[*/
body {
background-color: white;
color: black;
}
:link { color: #0000FF }
:visited { color: #840084 }
:active { color: #0000FF }
h2.c1 {clear: both}
/*]]>*/
</style>
</head>
<body>
<table class="progress2Header">
<tr>
<td>
<img src="img/pear_progress2.gif" align="left" alt=
"PEAR Progress2 logo" />
<h1>
HTML_Progress2 : The Definitive Guide
</h1>
<div class="navheader">
<table width="100%" summary="Navigation header">
<tr>
<th colspan="3" align="center">
Listener
</th>
</tr>
<tr>
<td width="20%" align="left">
<a accesskey="p" href="re03.html">Prev</a>
</td>
<th width="60%" align="center">
Chapter 19. API - Application Programming Interface
</th>
<td width="20%" align="right">
<a accesskey="n" href="re04.html">Next</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<div class="sect1" lang="en" xml:lang="en">
<div class="titlepage">
<h2 class="title c1">
<a name="reference.api.listener" id=
"reference.api.listener"></a>Listener
</h2>
</div>
<div class="toc">
<dl>
<dt>
<span class="refentrytitle"><a href="re04.html"><code class=
"function">HTML_Progress2::addListener</code></a></span>
<span class="refpurpose">- Attachs a new observer</span>
</dt>
<dt>
<span class="refentrytitle"><a href="re05.html"><code class=
"function">HTML_Progress2::removeListener</code></a></span>
<span class="refpurpose">- Removes a registered observer.</span>
</dt>
</dl>
</div>
<p>
<code class="methodname">addListener()</code> and <code class=
"methodname">removeListener()</code> methods provides an implementation
of the observer pattern. In the content of the HTML_Progress2 package,
it provides a mechanism by which you can examine special event as it is
happened. This allows the implementation of special behavior.
</p>
</div>
<table class="progress2Footer">
<tr>
<td align="left">
HTML_Progress2 : The Definitive Guide
</td>
<td align="right">
v 2.4.0 : April 20, 2007
</td>
</tr>
</table>
<div class="navfooter">
<hr />
<table width="100%" summary="Navigation footer">
<tr>
<td width="40%" align="left">
<a accesskey="p" href="re03.html">Prev</a>
</td>
<td width="20%" align="center">
<a accesskey="u" href="ch19.html">Up</a>
</td>
<td width="40%" align="right">
<a accesskey="n" href="re04.html">Next</a>
</td>
</tr>
<tr>
<td width="40%" align="left" valign="top">
<code class="function">HTML_Progress2::getError</code>
</td>
<td width="20%" align="center">
<a accesskey="h" href="index.html">Home</a>
</td>
<td width="40%" align="right" valign="top">
<code class="function">HTML_Progress2::addListener</code>
</td>
</tr>
</table>
</div>
</body>
</html>