Class Index | File Index

Classes


Class M.Controller


Extends M.Object.
The root class for every controller. Controllers, respectively their properties, are observables. Views can observe them.
Defined in: controller.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
Makes the controller's properties observable.
 
The type of this object.
Method Summary
Method Attributes Method Name and Description
 
set(key, value)
This method initializes the notification of all observers, that observe the property behind 'key'.
 
switchToPage(page, transition, isBack, updateHistory)
Switch the active page in the application.
 
Switch the active tab in the application.
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include
Class Detail
M.Controller()
Field Detail
observable
Makes the controller's properties observable.

{String} type
The type of this object.
Method Detail
set(key, value)
This method initializes the notification of all observers, that observe the property behind 'key'.
Parameters:
{String} key
The key of the property to be changed.
{Object|String} value
The value to be set.

switchToPage(page, transition, isBack, updateHistory)
Switch the active page in the application.
Parameters:
{Object|String} page
The page to be displayed or its name.
{String} transition
The transition that should be used. Default: horizontal slide
{Boolean} isBack
YES will cause a reverse-direction transition. Default: NO
{Boolean} updateHistory
Update the browser history. Default: YES

switchToTab(tab)
Switch the active tab in the application. This includes both activating this tab visually and switching the page.
Parameters:
{M.TabBarItemView} tab
The tab to be activated.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 25 2012 20:41:09 GMT+0100 (MEZ)