| Package | com.cyntaxic.cynmvc.controller |
| Class | public class CynController |
| Inheritance | CynController 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.
| Property | Defined By | ||
|---|---|---|---|
| cynModel : CynModel
Reference to the instance of CynModel. | CynController | ||
| Method | Defined By | ||
|---|---|---|---|
CynController(self:CynController)
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 | ||
| Method | Defined By | ||
|---|---|---|---|
debug(message:Object):void
Traces out a debugging message. | CynController | ||
| cynModel | property |
protected var cynModel:CynModel
Reference to the instance of CynModel.
| CynController | () | Constructor |
public function CynController(self:CynController)
Creates a new instance of CynController.
self:CynController — Reference to itself to enforce it as an abstract class.
|
CynError — If attempted to be extended without super(this).
|
| debug | () | method |
protected function debug(message:Object):voidTraces out a debugging message.
Parameters
message:Object — The message to be traced out.
|
| execute | () | method |
public function execute(handle:String, vo:CyntaxicVO):voidExecutes 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.
|