Packagecom.cyntaxic.cynmvc.controller
Classpublic class CynController
InheritanceCynController Inheritance flash.events.EventDispatcher

CynController is an abstract class to be extended by the application being created with the Cyntaxic framework. The controller is where all the processing logic is handled in the application.



Protected Properties
 PropertyDefined By
  cynModel : CynModel
Reference to the instance of CynModel.
CynController
Public Methods
 MethodDefined By
  
Creates a new instance of CynController.
CynController
  
execute(handle:String, vo:CyntaxicVO):void
Executes a controller function based on the string value of the handle parameter.
CynController
  
notify(handle:String, vo:CyntaxicVO):void
Notifies CynView classes to update.
CynController
Protected Methods
 MethodDefined By
  
debug(message:Object):void
Traces out a debugging message.
CynController
Property Detail
cynModelproperty
protected var cynModel:CynModel

Reference to the instance of CynModel.

Constructor Detail
CynController()Constructor
public function CynController(self:CynController)

Creates a new instance of CynController.

Parameters
self:CynController — Reference to itself to enforce it as an abstract class.

Throws
CynError — If attempted to be extended without super(this).
Method Detail
debug()method
protected function debug(message:Object):void

Traces out a debugging message.

Parameters

message:Object — The message to be traced out.

execute()method 
public function execute(handle:String, vo:CyntaxicVO):void

Executes a controller function based on the string value of the handle parameter.

Parameters

handle:String — The function handle to be executed.
 
vo:CyntaxicVO — The value object being passed.

notify()method 
public function notify(handle:String, vo:CyntaxicVO):void

Notifies CynView classes to update. This function looks for public functions named the same as the handle parameter in each view.

Parameters

handle:String — The function handle to be notified about.
 
vo:CyntaxicVO — The value object being passed.