This class creates and manages the contents of a Container. On the ActionScript
side, a Container has a contentView into which the offical children can be
placed. When adding an element that implements IChrome, that element is not
placed into the contentView, but is made a child of the Container directly.
Containers also have a layout associated with them which controls the size and
placement of the elements in the contentView. When a Container does not have an
explicit size (including a percent size), the content dictates the size of the
Container.
This event handles changes to the size of children of the container by running
the layout again and adjusting the size of the container or viewport as necessary.
The data model used by the viewport to determine how it should
present the content area.
Implementation public function get viewportModel():IViewportModel
Constructor Detail
ContainerView
()
Constructor
public function ContainerView()
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
The ContainerView class is the default view for
the org.apache.flex.core.ContainerBase classes.
It lets you use some CSS styles to manage the border, background
and padding around the content area.
Method Detail
childrenChangedHandler
()
method
protected function childrenChangedHandler(event:Event):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Whenever children are added, listeners are added to detect changes
in their size.
protected function childResizeHandler(event:Event):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
This event handles changes to the size of children of the container by running
the layout again and adjusting the size of the container or viewport as necessary.
protected function layoutViewAfterContentLayout():void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Adjusts the size of the host, or adds scrollbars to the viewport, after
the layout has been run.
layoutViewBeforeContentLayout
()
method
protected function layoutViewBeforeContentLayout():void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Positions the viewport, then sets any known sizes of the Viewport prior
to laying out its content.
performLayout
()
method
protected function performLayout(event:Event):void
Language Version :
ActionScript 3.0
Product Version :
FlexJS 0.0
Runtime Versions :
Flash Player 10.2, AIR 2.6
Executes the layout associated with this container. Once the layout has been
run, it may affect the size of the host or may cause the host to present scroll
bars view its viewport.