<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>AbstractView</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<link rel="stylesheet" type="text/css" href="css/VisDoc.css"/>
<script src="js/doc.js" type="text/javascript">//</script>
</head>
<body pageId="Pagecom_jeroenwijering_players_AbstractView">
<div class="VisDoc"><span id="PageTop"><!----></span>
<div class="content"><span class="accessKeysInfo"><span class="label"><a href="#" class="accessKeyInfoToggle" onclick="toggleAccessKeyInfo(); return true;">Access keys</a></span><span class="accessKeyLinks" style="display:none;"><a href="#PageTop" accesskey="t">T</a>op, <a href="#Summary" accesskey="s">S</a>ummary, <a href="#Constructor" accesskey="c">C</a>onstructors,
Instance <a href="#Instanceproperties" accesskey="p">p</a>roperties,
Instance <a href="#Instancemethods" accesskey="m">m</a>ethods, <a href="#Eventhandlers" accesskey="e">E</a>vent handlers</span></span><h1>AbstractView</h1>
<div class="classProperties">
<table cellspacing="0">
<tr>
<th>Kind of class:</th>
<td>class</td>
</tr>
<tr>
<th>Inherits from:</th>
<td>none</td>
</tr>
<tr>
<th>Known subclasses:</th>
<td>
<ul>
<li>
<a href="com_jeroenwijering_players_CallbackView.html">CallbackView</a>
</li>
<li>
<a href="com_jeroenwijering_players_InputView.html">InputView</a>
</li>
<li>
<a href="com_jeroenwijering_players_JavascriptView.html">JavascriptView</a>
</li>
<li>
<a href="com_jeroenwijering_players_PlayerView.html">PlayerView</a>
</li>
<li>
<a href="com_jeroenwijering_players_PlaylistView.html">PlaylistView</a>
</li>
<li>
<a href="com_jeroenwijering_players_RotatorView.html">RotatorView</a>
</li>
</ul>
</td>
</tr>
<tr>
<th class="classDetails">Version:</th>
<td class="classDetails">1.00</td>
</tr>
<tr>
<th class="classDetails">Author:</th>
<td class="classDetails">Jeroen Wijering</td>
</tr>
<tr>
<th class="classDetails">Classpath:</th>
<td class="classDetails">com.jeroenwijering.players.AbstractView</td>
</tr>
<tr>
<th class="classDetails">File last modified:</th>
<td class="classDetails">Wednesday, 01 November 2006, 23:45:42</td>
</tr>
</table>
</div>
<div class="classDescription">
<div class="descriptionSummary">Basic view class of the players MCV pattern, extended by all views.</div><br /> Create you own views by extending this one.</div>
<div class="summary hasBottomDivider">
<h2 class="hasBottomDivider"><span id="Summary">Summary</span></h2>
<div class="methodList">
<div class="methodSummaryPart"><span class="title">Constructor</span><ul>
<li>
<a href="#AbstractView">AbstractView</a>
</li>
</ul>
</div>
<div class="methodSummaryPart"><span class="title">Instance methods</span><ul>
<li>
<a href="#getUpdate">getUpdate</a>
</li>
<li>
<a href="#sendEvent">sendEvent</a>
</li>
</ul>
</div>
</div>
</div>
<div class="methodSection">
<h2 class="hasBottomDivider"><span id="Constructor">Constructor</span></h2>
<div class="method hasBottomDivider">
<h3 id="AbstractView">AbstractView</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>AbstractView</b> (
</div>
<div><span class="code">ctr:<a href="com_jeroenwijering_players_AbstractController.html">AbstractController</a>,
car:Object,
far:Array)</span></div>
</div>
</div>
<div class="description">Constructor</div>
<div class="boxWithBorder">
<div class="boxedElem">
<div class="contentHolder"><span class="title">Parameters:</span><div class="item">
<div class="floatbox code colorizedCode">ctr<span class="itemSeparator">:</span></div>
<div>reference to the PlayerController</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">car<span class="itemSeparator">:</span></div>
<div>reference to the player's config array</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">far<span class="itemSeparator">:</span></div>
<div>reference to the player's file array</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="methodSection">
<h2 class="hasBottomDivider"><span id="Instancemethods">Instance methods</span></h2>
<div class="method hasBottomDivider">
<h3 id="getUpdate">getUpdate</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>getUpdate</b> (
</div>
<div><span class="code">typ:String,
pr1:Number,
pr2:Number) : Void</span></div>
</div>
</div>
<div class="description">Receive updates from the models.<br /> <br /> The updates events are catched (parameter between brackets):<br /> state(0:'play',1:'pause',2:'buffer',3:conplete),buffer(percent),<br /> time(elapsed,remaining),volume(percent),item(index)</div>
<div class="boxWithBorder">
<div class="boxedElem">
<div class="contentHolder"><span class="title">Parameters:</span><div class="item">
<div class="floatbox code colorizedCode">typ<span class="itemSeparator">:</span></div>
<div>event type</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">prm<span class="itemSeparator">:</span></div>
<div>parameter value</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">pr2<span class="itemSeparator">:</span></div>
<div>second parameter value</div>
</div>
</div>
</div>
</div>
</div>
<div class="method hasBottomDivider">
<h3 id="sendEvent">sendEvent</h3>
<div class="fullMemberString">
<div class="clearfix floatholder">
<div class="floatbox code">function <b>sendEvent</b> (
</div>
<div><span class="code">typ:String,
prm:Number)</span></div>
</div>
</div>
<div class="description">Send event to the controller.</div>
<div class="boxWithBorder">
<div class="boxedElem">
<div class="contentHolder"><span class="title">Parameters:</span><div class="item">
<div class="floatbox code colorizedCode">typ<span class="itemSeparator">:</span></div>
<div>the event tyle (eg. "volume")</div>
</div>
<div class="item">
<div class="floatbox code colorizedCode">prm<span class="itemSeparator">:</span></div>
<div>(optional) the event parameter (eg. 80)</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="footer"><span class="docFooter"><span class="createdWith">Created with <a href="http://visiblearea.com/visdoc/">VisDoc</a></span><span class="separator">|</span><span class="creationDate">Tuesday, 07 November 2006, 14:45:38</span><span class="separator">|</span><a href="#" onclick="showTOC(); return false;" class="showToc">show TOC</a><a href="#" onclick="hideTOC(); return false;" class="hideToc">hide TOC</a></span><span class="tocFooter"><a href="#" onclick="hideTOC(); return false;" class="hideToc">hide TOC</a></span>
</div>
</div>
</div>
</body>
</html>