Packageorg.apache.flex.html.supportClasses
Classpublic class Viewport
InheritanceViewport Inheritance 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
 PropertyDefined By
  contentView : IUIBase
[read-only] Get the actual parent of the container's content.
Viewport
  strand : IStrand
[write-only]
Viewport
Protected Properties
 PropertyDefined By
  contentArea : UIBase
Viewport
  _strand : IStrand
Viewport
Public Methods
 MethodDefined By
  
Constructor
Viewport
  
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
_strandproperty
protected var _strand:IStrand

contentAreaproperty 
protected var contentArea:UIBase

contentViewproperty 
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
strandproperty 
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.