Class Index | File Index

Classes


Class M.PageView


Extends M.View.
M.PageView is the prototype of any page. It is the seconds 'highest' view, right after M.Application. A page is the container view for all other views.
Defined in: page.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Field Summary
Field Attributes Field Name and Description
 
This property can be used to set the page's beforeHide action.
 
This property can be used to set the page's beforeLoad action.
 
Indicates whether the page has a tab bar or not.
 
States whether a page is loaded the first time or not.
 
This property can be used to set the page's onHide action.
 
This property can be used to set the page's onLoad action.
 
The page's tab bar.
 
The type of this object.
Fields borrowed from class M.View:
childViews, contentBinding, cssClass, cssClassOnError, cssClassOnInit, cssStyle, hasFocus, html, id, isInline, isView, modelId, parentView, triggerActionOnChange, triggerActionOnEnter, triggerActionOnKeyUp, value
Method Summary
Method Attributes Method Name and Description
 
orientationDidChange(orientation)
This method is called if the device's orientation changed.
 
This method is called right after the page was hidden.
 
This method is called right after the page was loaded.
 
This method is called right before the page is hidden.
 
This method is called right before the page is loaded.
 
This method writes the view's html string into the DOM.
Methods borrowed from class M.View:
addCssClass, attachToObservable, clearHtml, computeValue, contentDidChange, delegateValueUpdate, design, gotFocus, lostFocus, nl2br, removeCssClass, removeCssProperty, renderUpdate, secure, setCssProperty, setValueFromDOM, style, theme, themeChildViews
Methods borrowed from class M.Object:
bindToCaller, create, destroy, extend, get, include, set
Class Detail
M.PageView()
Field Detail
{Object} beforeHide
This property can be used to set the page's beforeHide action.

{Object} beforeLoad
This property can be used to set the page's beforeLoad action.

{Boolean} hasTabBarView
Indicates whether the page has a tab bar or not.

{Boolean} isFirstLoad
States whether a page is loaded the first time or not. It is automatically set to NO once the page was first loaded.

{Object} onHide
This property can be used to set the page's onHide action.

{Object} onLoad
This property can be used to set the page's onLoad action.

{M.TabBarView} tabBarView
The page's tab bar.

{String} type
The type of this object.
Method Detail
orientationDidChange(orientation)
This method is called if the device's orientation changed.
Parameters:
orientation

pageDidHide()
This method is called right after the page was hidden. If a onHide-action is defined for the page, it is now called.

pageDidLoad()
This method is called right after the page was loaded. If a onLoad-action is defined for the page, it is now called.

pageWillHide()
This method is called right before the page is hidden. If a beforeHide-action is defined for the page, it is now called.

pageWillLoad()
This method is called right before the page is loaded. If a beforeLoad-action is defined for the page, it is now called.

writeToDOM()
This method writes the view's html string into the DOM. M.Page is the only view that does that. All other views just deliver their html representation to a page view.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 08 2010 15:07:33 GMT+0100 (MEZ)