Class M.Application
Extends
M.Object.
The root class for an application.
Defined in: application.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
The application's current language.
|
|
The application's cypher object, used for encoding and decoding.
|
|
The application's default / fallback language.
|
|
The application's event dispatcher.
|
|
The application's model registry.
|
|
The application's name.
|
|
The type of this object.
|
|
The application's view manager.
|
Method Attributes | Method Name and Description |
---|---|
design(obj)
This method encapsulates the 'include' method of M.Object for better reading of code syntax.
|
|
main()
The application's main-method, that is called automatically on load of the app.
|
Field Detail
{String}
currentLanguage
The application's current language.
{Object}
cypher
The application's cypher object, used for encoding and decoding.
{String}
defaultLanguage
The application's default / fallback language.
{Object}
eventDispatcher
The application's event dispatcher.
{Object}
modelRegistry
The application's model registry.
{String}
name
The application's name.
{String}
type
The type of this object.
{Object}
viewManager
The application's view manager.
Method Detail
design(obj)
This method encapsulates the 'include' method of M.Object for better reading of code syntax.
Basically it integrates the defined pages within the application into M.Application and sets
some basic configuration properties, e.g. the default language.
- Parameters:
- {Object} obj
- The mixed in object for the extend call.
main()
The application's main-method, that is called automatically on load of the app.
Inside this method the rendering is initiated and all pages are bound to the 'pageshow'
event so one can do some action whenever a page is loaded.