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

Package | org.apache.flex.core
Interface | public interface IViewport extends IBead
Implementors | ScrollingViewport, Viewport

A Viewport is a window onto an area of content. A viewport is given space in which to operate by a View bead. Viewports can control their area which is specified by the IViewportModel, adding scrollbars or whatever scrolling mechanism they want.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | contentView : IUIBase [read-only] Get the actual parent of the container's content. | IViewport
|  | strand : IStrand [write-only] The host component for this bead. | IBead

Public Methods

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

Property Detail

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`
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