| Package | qnx.fuse.ui.core |
| Class | public class Container |
| Inheritance | Container UIComponent flash.display.MovieClip |
| Implements | IContainer |
IContainer that includes scroll support.
| Property | Defined By | ||
|---|---|---|---|
| allowScrollPastEdge : Boolean
Determines if the container can scroll content past the bounds. | Container | ||
| background : DisplayObject
Get the background. | Container | ||
| contentHeight : Number [read-only]
Gets the height of the content. | Container | ||
| contentWidth : Number [read-only]
Gets the width of the content. | Container | ||
| enableShadows : Boolean
Returns true if shadows are enabled, false otherwise. | Container | ||
![]() | explicitHeight : Number [read-only] | UIComponent | |
![]() | explicitWidth : Number [read-only] | UIComponent | |
| hAutoScroll : Boolean
Get the horizontal auto-scrolling state. | Container | ||
| hAutoScrollDuration : Number
Get the duration, in seconds, of horizontal auto-scrolling. | Container | ||
| height : Number [override]
| Container | ||
| hScrollVisible : Boolean
Sets the visiblity of the horizontal scroll bar. | Container | ||
![]() | includeInLayout : Boolean
Specifies if the component should be included in it's parent containers layout. | UIComponent | |
| layout : ILayout
Gets or sets the layout for the group. | Container | ||
![]() | layoutData : Object
Returns the layout data for the object. | UIComponent | |
![]() | minHeight : Number
Sets the minimum preferred height of the control. | UIComponent | |
![]() | minWidth : Number
Sets the minimum preferred width of the control. | UIComponent | |
| numChildren : int [override] [read-only]
| Container | ||
| scrollBarColor : uint
Get the color of the scroll bars. | Container | ||
| scrollDirection : String | Container | ||
| scrollX : Number
Gets or sets the horizontal scroll position. | Container | ||
| scrollY : Number
Gets or sets the vertical scroll position. | Container | ||
| vAutoScroll : Boolean
Get the horizontal auto-scrolling state. | Container | ||
| vAutoScrollDuration : Number
Get the duration, in seconds, of vertical auto-scrolling. | Container | ||
| visibilityCullType : String
Set the visbility cull type. | Container | ||
| vScrollVisible : Boolean
Sets the visiblity of the vertical scroll bar. | Container | ||
| width : Number [override]
| Container | ||
| Method | Defined By | ||
|---|---|---|---|
| Container | |||
addChild(child:DisplayObject):DisplayObject [override]
| Container | ||
addChildAt(child:DisplayObject, index:int):DisplayObject [override]
| Container | ||
![]() | childChanged(resizedChild:DisplayObject = null):Boolean
Notifies the UIComponent that one or more of its children has changed in a manner
that may affect this object's layout. | UIComponent | |
destroy():void [override]
Call this method when you want to have your object collected by the garbage collector. | Container | ||
getChildAt(index:int):DisplayObject [override]
| Container | ||
getChildIndex(child:DisplayObject):int [override]
| Container | ||
getSizeOptions():int [override]
| Container | ||
![]() | invalidateDisplayList():void
Calling this method results in a call to the components validateDisplayList() method before the display list is rendered. | UIComponent | |
![]() | invalidateProperties():void
Calling this method results in a call to the components validateProperties() method before the display list is rendered. | UIComponent | |
![]() | measure(availableWidth:Number, availableHeight:Number):LayoutMeasurement | UIComponent | |
removeChild(child:DisplayObject):DisplayObject [override]
| Container | ||
removeChildAt(index:int):DisplayObject [override]
| Container | ||
scrollIntoView(displayObject:DisplayObject):void
Scrolls the specified object into view. | Container | ||
scrollToX(position:Number, duration:Number):void
Sets the horizontal scroll position. | Container | ||
scrollToY(position:Number, duration:Number):void
Sets the vertical scroll position. | Container | ||
setActualSize(w:Number, h:Number):void [override]
Sets the width and height of the object without setting
the explicitWidth and explicitHeight. | Container | ||
setChildIndex(child:DisplayObject, index:int):void [override]
| Container | ||
![]() | setLayoutBounds(bounds:Rectangle):void
Sets the receiver's size and location to the rectangular area specified
by the arguments. | UIComponent | |
![]() | setPosition(x:Number, y:Number):void
Sets the x and y position of the component. | UIComponent | |
swapChildren(child1:DisplayObject, child2:DisplayObject):void [override]
| Container | ||
swapChildrenAt(index1:int, index2:int):void [override]
| Container | ||
![]() | validateDisplayList():void
Validates the display list of the component by calling the updateDisplayList(). | UIComponent | |
![]() | validateNow():void
Validates the component immediately by calling validateProperties(), validateSizes(), and validateDisplayList() if necessary. | UIComponent | |
![]() | validateProperties():void
Validates the properties of the component by calling the commitProperties() method. | UIComponent | |
| Method | Defined By | ||
|---|---|---|---|
![]() | commitProperties():void
Process properties of the component. | UIComponent | |
![]() | commitState():void
Process the state of the component. | UIComponent | |
doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurement [override]
| Container | ||
flushCache():void [override] | Container | ||
init():void [override] | Container | ||
![]() | onAdded():void
Called when the instance is added to the stage. | UIComponent | |
![]() | onRemoved():void
Called when the instance is removed from the stage. | UIComponent | |
![]() | parentLayoutChanged():void
Invalidates the parent's size and display list if includeInLayout property is set to true. | UIComponent | |
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void [override]
Sets the size and position of the children of the component. | Container | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Dispatched when scrolling begins. | Container | |||
| Dispatched when scrolling ends. | Container | |||
| Dispatched when scrolling occurs. | Container | |||
| allowScrollPastEdge | property |
allowScrollPastEdge:BooleanDetermines if the container can scroll content past the bounds. If false, the scroll is halted immediately at the edge of the bounds.
public function get allowScrollPastEdge():Boolean public function set allowScrollPastEdge(value:Boolean):void| background | property |
background:DisplayObjectGet the background.
public function get background():DisplayObject public function set background(value:DisplayObject):void| contentHeight | property |
contentHeight:Number [read-only] Gets the height of the content.
public function get contentHeight():Number| contentWidth | property |
contentWidth:Number [read-only] Gets the width of the content.
public function get contentWidth():Number| enableShadows | property |
enableShadows:BooleanReturns true if shadows are enabled, false otherwise.
public function get enableShadows():Boolean public function set enableShadows(value:Boolean):void| hAutoScroll | property |
hAutoScroll:BooleanGet the horizontal auto-scrolling state.
public function get hAutoScroll():Boolean public function set hAutoScroll(value:Boolean):void| hAutoScrollDuration | property |
hAutoScrollDuration:NumberGet the duration, in seconds, of horizontal auto-scrolling.
public function get hAutoScrollDuration():Number public function set hAutoScrollDuration(value:Number):void| height | property |
height:Number[override]
public function get height():Number public function set height(value:Number):void| hScrollVisible | property |
hScrollVisible:BooleanSets the visiblity of the horizontal scroll bar.
public function get hScrollVisible():Boolean public function set hScrollVisible(value:Boolean):void| layout | property |
layout:ILayoutGets or sets the layout for the group.
public function get layout():ILayout public function set layout(value:ILayout):void| numChildren | property |
numChildren:int [read-only] [override]
public function get numChildren():int| scrollBarColor | property |
scrollBarColor:uintGet the color of the scroll bars.
public function get scrollBarColor():uint public function set scrollBarColor(value:uint):void| scrollDirection | property |
scrollDirection:String
public function get scrollDirection():String public function set scrollDirection(value:String):void| scrollX | property |
scrollX:NumberGets or sets the horizontal scroll position. The position is clamped to the bounds of our children.
public function get scrollX():Number public function set scrollX(value:Number):void| scrollY | property |
scrollY:NumberGets or sets the vertical scroll position. The position is clamped to the bounds of our children.
public function get scrollY():Number public function set scrollY(value:Number):void| vAutoScroll | property |
vAutoScroll:BooleanGet the horizontal auto-scrolling state.
public function get vAutoScroll():Boolean public function set vAutoScroll(value:Boolean):void| vAutoScrollDuration | property |
vAutoScrollDuration:NumberGet the duration, in seconds, of vertical auto-scrolling.
public function get vAutoScrollDuration():Number public function set vAutoScrollDuration(value:Number):void| visibilityCullType | property |
visibilityCullType:String public function get visibilityCullType():String public function set visibilityCullType(value:String):voidArgumentError — If the visibility cull type is not one
of the types specified in VisiblityCullType.
|
See also
| vScrollVisible | property |
vScrollVisible:BooleanSets the visiblity of the vertical scroll bar.
public function get vScrollVisible():Boolean public function set vScrollVisible(value:Boolean):void| width | property |
width:Number[override]
public function get width():Number public function set width(value:Number):void| Container | () | Constructor |
public function Container()
| addChild | () | method |
override public function addChild(child:DisplayObject):DisplayObject
Parameters
child:DisplayObject |
DisplayObject |
| addChildAt | () | method |
override public function addChildAt(child:DisplayObject, index:int):DisplayObject
Parameters
child:DisplayObject | |
index:int |
DisplayObject |
| destroy | () | method |
override public function destroy():voidCall this method when you want to have your object collected by the garbage collector.
NOTE: This method does not remove the object from memory. Instead, it enables your instance to clean up after itself internally so that it can be garbage-collected.
| doMeasure | () | method |
override protected function doMeasure(availableWidth:Number, availableHeight:Number):LayoutMeasurement
Parameters
availableWidth:Number | |
availableHeight:Number |
LayoutMeasurement |
| flushCache | () | method |
override protected function flushCache():void| getChildAt | () | method |
override public function getChildAt(index:int):DisplayObject
Parameters
index:int |
DisplayObject |
| getChildIndex | () | method |
override public function getChildIndex(child:DisplayObject):int
Parameters
child:DisplayObject |
int |
| getSizeOptions | () | method |
override public function getSizeOptions():intReturns
int |
| init | () | method |
override protected function init():void| removeChild | () | method |
override public function removeChild(child:DisplayObject):DisplayObject
Parameters
child:DisplayObject |
DisplayObject |
| removeChildAt | () | method |
override public function removeChildAt(index:int):DisplayObject
Parameters
index:int |
DisplayObject |
| scrollIntoView | () | method |
public function scrollIntoView(displayObject:DisplayObject):voidScrolls the specified object into view. If the specified object is not part of the container no scrolling will occur.
Parameters
displayObject:DisplayObject — The object to scroll into view.
|
| scrollToX | () | method |
public function scrollToX(position:Number, duration:Number):voidSets the horizontal scroll position. The position is clamped to the bounds of our children.
Parameters
position:Number — The position to scroll to.
| |
duration:Number — The duration of the scroll.
|
| scrollToY | () | method |
public function scrollToY(position:Number, duration:Number):voidSets the vertical scroll position. The position is clamped to the bounds of our children.
Parameters
position:Number — The position to scroll to.
| |
duration:Number — The duration of the scroll.
|
| setActualSize | () | method |
override public function setActualSize(w:Number, h:Number):void
Sets the width and height of the object without setting
the explicitWidth and explicitHeight.
This allows the component to return to its previous size in a future layout call.
Parameters
w:Number | |
h:Number |
| setChildIndex | () | method |
override public function setChildIndex(child:DisplayObject, index:int):void
Parameters
child:DisplayObject | |
index:int |
| swapChildren | () | method |
override public function swapChildren(child1:DisplayObject, child2:DisplayObject):void
Parameters
child1:DisplayObject | |
child2:DisplayObject |
| swapChildrenAt | () | method |
override public function swapChildrenAt(index1:int, index2:int):void
Parameters
index1:int | |
index2:int |
| updateDisplayList | () | method |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidSets the size and position of the children of the component. Component developers will want to subclass this method to adjust its children correctly.
If the component needs to do any drawing it should be done in this method as well.
This method should not be called directly as it is called by framework when its invalidateDisplayList() method is called.
Parameters
unscaledWidth:Number — The unscaled width of the component. Any drawing, sizing and positioning should be based on this value and not width.
| |
unscaledHeight:Number — The unscaled height of the component. Any drawing, sizing, and positioning should be based on this value and not height.
|
| scrollBegin | Event |
qnx.fuse.ui.events.ScrollEventqnx.ui.events.ScrollEvent.SCROLL_BEGINDispatched when scrolling begins.
| scrollEnded | Event |
qnx.fuse.ui.events.ScrollEventqnx.ui.events.ScrollEvent.SCROLL_ENDDispatched when scrolling ends.
| scrollMove | Event |
qnx.fuse.ui.events.ScrollEventqnx.ui.events.ScrollEvent.SCROLL_MOVEDispatched when scrolling occurs.