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

Package | org.apache.flex.html.supportClasses
Class | public class Viewport
Inheritance | Viewport Object
Implements | IBead, IViewport
Subclasses | ScrollingViewport

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

A Viewport is the area of a Container set aside for displaying content and any scrolling controls.

Public Properties

| Property | Defined By
--- | --- | ---
|  | contentView : IUIBase [read-only] Get the actual parent of the container's content. | Viewport
|  | strand : IStrand [write-only] | Viewport

Protected Properties

| Property | Defined By
--- | --- | ---
|  | contentArea : UIBase | Viewport
|  | _strand : IStrand | Viewport

Public Methods

| Method | Defined By
--- | --- | ---
|  | Viewport() Constructor | Viewport
|  | layoutViewportAfterContentLayout():Size This method is invoked after layout is complete. | Viewport
|  | layoutViewportBeforeContentLayout(width:Number, height:Number):void Size the content area based on any visible scrolling controls and the given width and height. | Viewport
|  | setPosition(x:Number, y:Number):void Sets the upper left position of the viewport | Viewport

Property Detail

_strand | property

`protected var _strand:IStrand`

contentArea | property |

`protected var contentArea:UIBase`

contentView | property |

`contentView:IUIBase` [read-only]

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Get the actual parent of the container's content.

Implementation
`public function get contentView():IUIBase`

strand | property |

`strand:IStrand` [write-only]

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

Viewport | () | Constructor

`public function Viewport()`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Constructor

Method Detail

layoutViewportAfterContentLayout | () | method

`public function layoutViewportAfterContentLayout():Size`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

This method is invoked after layout is complete. If width and/or height is sized to content, the viewport should determine that size and set the content area size appropriately, and display any scrolling controls before returning the resulting size of the viewport (which means the area used up by both content area and scrolling controls).

Returns

| `Size`

layoutViewportBeforeContentLayout | () | method |

`public function layoutViewportBeforeContentLayout(width:Number, height:Number):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Size the content area based on any visible scrolling controls and the given width and height. If width and/or height is NaN then that dimension is being sized to content.

Parameters

| `width:Number`
| `height:Number`

setPosition | () | method |

`public function setPosition(x:Number, y:Number):void`

Language Version : | ActionScript 3.0

Product Version : | FlexJS 0.0

Runtime Versions : | Flash Player 10.2, AIR 2.6

Sets the upper left position of the viewport

Parameters

| `x:Number` — The left position.
| `y:Number` — The top position.

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