View Manager
Article Metadata
Contents |
Inheritance
Nokia.ViewManager
|- Nokia.Class (basic class)
1 - Description
Infrastructure for Views Management on Nokia WebRuntime.
2 - Visual Design
Not Applicable for this Component.
3 - Component Dependencies
3.1 CSS
Not Applicable for this Component.
3.2 Javascript
<!-- jQuery file --> <script src="/lib/jquery/jquery.js" type="text/javascript" charset="utf-8"></script> <!-- Guarana file --> <script src="/lib/Guarana.js" type="text/javascript" charset="utf-8"></script>
4 - Functional Specifications/Requirements
4.1 - Options
- beforeRender: function()
- Function callcack called before view render.
- render: function()
- Function callback called for view render.
- beforeShow: function()
- Function callback called before view shows.
- show: function()
- Function callback called for view show.
4.2 - Events - Callbacks
No callbacks for this component.
4.3 - Methods
- next: function()
- Returns the next view on View Stack.
- return void
- prev: function()
- Returns the previous view on View Stack.
- return void
- back: function()
- Shows the latest showed view on the History.
- return void
- forward: function()
- Performs forward based on the History.
- return void
- clearHistory: function()
- Clears the view history.
- return void
- clearHistory: function()
- Clears the view history.
- return void
- clear: function()
- Clears the view stack.
- return void
- show: function(view)
- Shows a specify view passed as param.
- return void
- hide: function()
- Hides the current view.
- return void
- hide: function()
- Hides all views.
- return void
- getCurrentView: function()
- Returns the current view.
- return [jQuery collection]
- getCurrentHistoryIndex: function()
- Returns the current history index.
- return int
- getCurrentIndex: function()
- Returns the current view stack index.
- return int
- setCurrentIndex: function(index)
- Sets the current view stack index.
- return void
- add: function(view)
- Adds a view on the view stack.
- return void
- remove: function(view)
- Removes a view on the view stack.
- return void
- getViews: function(view)
- Returns the view stack.
- return [jQuery collection]
- getHistorySize: function()
- Returns the history size.
- return int
- size: function()
- Returns the view stack size.
- return int
- getViewMode: function()
- Returns the view pode (landscape|portrait|miniview).
- return string
- inLandscapeMode: function()
- Returns true if view mode is landscape.
- return boolean
- inPortraitMode: function()
- Returns true if view mode is portrait.
- return boolean
- inMiniviewMode: function()
- Returns true if view mode is miniview.
- return boolean
- isNonTouch: function()
- Returns true if the current screen is nontouch typically (240x320px).
- return boolean
4.4 - Default options
- beforeRender: function() {}
- render: function() {}
- beforeShow: function() {}
- show: function() {}
5 - Component Demo
5.1 HTML
No html needed for this component.
5.2 Javascript
Under construction..


(no comments yet)