Apache Flex (FlexJS) 0.7.0 API Reference | All Packages | All Classes | Index | Frames No Frames |
ViewManagerModel

Package | org.apache.flex.mobile.models
Class | public class ViewManagerModel
Inheritance | ViewManagerModel EventDispatcher flash.events.EventDispatcher
Implements | IBeadModel

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The ViewManagerModel houses properties and values common to the components which make up view managers. These properties include the title, which view is currently active and selected.

Public Properties

| Property | Defined By
--- | --- | ---
|  | contentHeight : Number = 0 | ViewManagerModel
|  | contentWidth : Number = 0 | ViewManagerModel
|  | contentX : Number = 0 | ViewManagerModel
|  | contentY : Number = 0 | ViewManagerModel
|  | navigationBar : NavigationBar The NavigationBar (or null if not present). | ViewManagerModel
|  | navigationBarItems : Array The array of controls that make up the NavigationBar. | ViewManagerModel
|  | selectedIndex : Number The index into the views array of the currently active view. | ViewManagerModel
|  | strand : IStrand [write-only] | ViewManagerModel
|  | tabBar : TabBar The TabBar (or null if not present). | ViewManagerModel
|  | title : String The title of the view.. | ViewManagerModel
|  | toolBar : ToolBar The ToolBar (or null if not present). | ViewManagerModel
|  | toolBarItems : Array The array of controls that make up the ToolBar.. | ViewManagerModel
|  | views : Array The array of views displayed in the contentArea of the ViewManager. | ViewManagerModel

Public Methods

| Method | Defined By
--- | --- | ---
|  | ViewManagerModel() Constructor. | ViewManagerModel
|  | popView():Object Removes the most recently added view. | ViewManagerModel
|  | pushView(value:Object):void Pushes a view onto the top/end of the stack of views. | ViewManagerModel

Property Detail

contentHeight | property

`public var contentHeight:Number = 0`

contentWidth | property |

`public var contentWidth:Number = 0`

contentX | property |

`public var contentX:Number = 0`

contentY | property |

`public var contentY:Number = 0`

navigationBar | property |

`navigationBar:NavigationBar`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The NavigationBar (or null if not present).

Implementation
`public function get navigationBar():NavigationBar`
`public function set navigationBar(value:NavigationBar):void`

navigationBarItems | property |

`navigationBarItems:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The array of controls that make up the NavigationBar.

Implementation
`public function get navigationBarItems():Array`
`public function set navigationBarItems(value:Array):void`

selectedIndex | property |

`selectedIndex:Number`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The index into the views array of the currently active view.

Implementation
`public function get selectedIndex():Number`
`public function set selectedIndex(value:Number):void`

strand | property |

`strand:IStrand` [write-only]

Implementation
`public function set strand(value:IStrand):void`

tabBar | property |

`tabBar:TabBar`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The TabBar (or null if not present).

Implementation
`public function get tabBar():TabBar`
`public function set tabBar(value:TabBar):void`

title | property |

`title:String`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The title of the view..

Implementation
`public function get title():String`
`public function set title(value:String):void`

toolBar | property |

`toolBar:ToolBar`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The ToolBar (or null if not present).

Implementation
`public function get toolBar():ToolBar`
`public function set toolBar(value:ToolBar):void`

toolBarItems | property |

`toolBarItems:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The array of controls that make up the ToolBar..

Implementation
`public function get toolBarItems():Array`
`public function set toolBarItems(value:Array):void`

views | property |

`views:Array`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

The array of views displayed in the contentArea of the ViewManager.

Implementation
`public function get views():Array`
`public function set views(value:Array):void`
Constructor Detail

ViewManagerModel | () | Constructor

`public function ViewManagerModel()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor.

Method Detail

popView | () | method

`public function popView():Object`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Removes the most recently added view. The next view in the stack becomes the active view. Mostly used by StackedViewManager.

Returns

| `Object`

pushView | () | method |

`public function pushView(value:Object):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Pushes a view onto the top/end of the stack of views. This view becomes the active view. Mostly used by the StackedViewManager.

Parameters

| `value:Object`

Mon Sep 5 2016, 07:19 AM -07:00