Access keys

AbstractController

Kind of class: class
Inherits from: none
Known subclasses:
Version: 1.02
Author: Jeroen Wijering
Classpath: com.jeroenwijering.players.AbstractController
File last modified: Saturday, 23 December 2006, 22:35:24
User input management of the players MCV pattern.

Holds all functionality the controllers share.

Summary

Constructor
Instance methods

Constructor

AbstractController

function AbstractController (
car:Object, far:Array)
Constructor, save arrays and set currentItem.
Parameters:
car:
reference to the config array
far:
reference to the file array

Instance methods

getEvent

function getEvent (
typ:String, prm:Number) : Void
Receive events from the views.
Parameters:
typ:
event type
prm:
parameter value

sendChange

function sendChange (
typ:String, prm:Number) : Void
Sending changes to all registered models.
Parameters:
typ:
The type of change
prm:
Parameter of the change

startMCV

function startMCV (
mar:Array)
Complete the build of the MCV cycle and start flow of events.
Parameters:
mar:
Array with all models the controller should send events to