Packagemx.core
Interfacepublic interface IContainer extends IUIComponent, IFlexDisplayObject, flash.display.IBitmapDrawable, flash.events.IEventDispatcher
ImplementorsContainer

IContainer is a interface that indicates a component extends or mimics mx.core.Container

See also

mx.core.Container


Public Properties
 PropertyDefined by
 InheritedaccessibilityProperties : AccessibilityProperties
IFlexDisplayObject
 Inheritedalpha : Number
IFlexDisplayObject
 InheritedbaselinePosition : Number
The y-coordinate of the baseline of the first line of text of the component.
IUIComponent
 InheritedblendMode : String
IFlexDisplayObject
  buttonMode : Boolean
IContainer
 InheritedcacheAsBitmap : Boolean
IFlexDisplayObject
  creatingContentPane : Boolean
Containers use an internal content pane to control scrolling.
IContainer
  defaultButton : IFlexDisplayObject
IContainer
 Inheriteddocument : Object
A reference to the document object associated with this component.
IUIComponent
  doubleClickEnabled : Boolean
IContainer
  dropTarget : DisplayObject
[read-only]
IContainer
 Inheritedenabled : Boolean
Whether the component can accept user interaction.
IUIComponent
 InheritedexplicitHeight : Number
The explicitly specified height for the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMaxHeight : Number
Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMaxWidth : Number
Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMinHeight : Number
Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitMinWidth : Number
Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedexplicitWidth : Number
The explicitly specified width for the component, in pixels, as the component's coordinates.
IUIComponent
 Inheritedfilters : Array
IFlexDisplayObject
  focusManager : IFocusManager
[read-only] Gets the FocusManager that controls focus for this component and its peers.
IContainer
 InheritedfocusPane : Sprite
A single Sprite object that is shared among components and used as an overlay for drawing focus.
IUIComponent
  focusRect : Object
IContainer
  graphics : Graphics
[read-only]
IContainer
 Inheritedheight : Number
IFlexDisplayObject
  hitArea : Sprite
IContainer
  horizontalScrollPosition : Number
The current position of the horizontal scroll bar.
IContainer
 InheritedincludeInLayout : Boolean
Specifies whether this component is included in the layout of the parent container.
IUIComponent
 InheritedisPopUp : Boolean
Set to true by the PopUpManager to indicate that component has been popped up.
IUIComponent
 InheritedloaderInfo : LoaderInfo
IFlexDisplayObject
 Inheritedmask : DisplayObject
IFlexDisplayObject
 InheritedmaxHeight : Number
Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmaxWidth : Number
Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedmeasuredHeight : Number
The measured height of this object.
IFlexDisplayObject
 InheritedmeasuredMinHeight : Number
The default minimum height of the component, in pixels.
IUIComponent
 InheritedmeasuredMinWidth : Number
The default minimum width of the component, in pixels.
IUIComponent
 InheritedmeasuredWidth : Number
The measured width of this object.
IFlexDisplayObject
 InheritedminHeight : Number
Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
IUIComponent
 InheritedminWidth : Number
Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
IUIComponent
  mouseChildren : Boolean
IContainer
  mouseEnabled : Boolean
IContainer
 InheritedmouseX : Number
IFlexDisplayObject
 InheritedmouseY : Number
IFlexDisplayObject
 Inheritedname : String
IFlexDisplayObject
  numChildren : int
[read-only]
IContainer
 InheritedopaqueBackground : Object
IFlexDisplayObject
 Inheritedowner : DisplayObjectContainer
Typically the parent container of this component.
IUIComponent
 Inheritedparent : DisplayObjectContainer
IFlexDisplayObject
 InheritedpercentHeight : Number
Number that specifies the height of a component as a percentage of its parent's size.
IUIComponent
 InheritedpercentWidth : Number
Number that specifies the width of a component as a percentage of its parent's size.
IUIComponent
 Inheritedroot : DisplayObject
The methods here would normally just be in IDisplayObject, but for backward compatibility, they have to be included directly into IFlexDisplayObject, so they are kept in this separate include file.
IFlexDisplayObject
 Inheritedrotation : Number
IFlexDisplayObject
 Inheritedscale9Grid : Rectangle
IFlexDisplayObject
 InheritedscaleX : Number
IFlexDisplayObject
 InheritedscaleY : Number
IFlexDisplayObject
 InheritedscrollRect : Rectangle
IFlexDisplayObject
  soundTransform : SoundTransform
IContainer
 Inheritedstage : Stage
IFlexDisplayObject
 InheritedsystemManager : ISystemManager
A reference to the SystemManager object for this component.
IUIComponent
  tabChildren : Boolean
IContainer
  tabEnabled : Boolean
The methods here would normally just be in IInteractiveObject, but for backward compatibility, their ancestor methods have to be included directly into IFlexDisplayObject, so these also have to be kept in this separate include file so it can be used in ITextField
IContainer
  tabIndex : int
IContainer
  textSnapshot : TextSnapshot
[read-only]
IContainer
 Inheritedtransform : Transform
IFlexDisplayObject
 InheritedtweeningProperties : Array
Used by EffectManager.
IUIComponent
  useHandCursor : Boolean
IContainer
  verticalScrollPosition : Number
The current position of the vertical scroll bar.
IContainer
  viewMetrics : EdgeMetrics
[read-only] Returns an object that has four properties: left, top, right, and bottom.
IContainer
 Inheritedvisible : Boolean
IFlexDisplayObject
 Inheritedwidth : Number
IFlexDisplayObject
 Inheritedx : Number
IFlexDisplayObject
 Inheritedy : Number
IFlexDisplayObject
Public Methods
 MethodDefined by
  
addChild(child:DisplayObject):DisplayObject
IContainer
  
addChildAt(child:DisplayObject, index:int):DisplayObject
IContainer
  
areInaccessibleObjectsUnderPoint(point:Point):Boolean
IContainer
  
contains(child:DisplayObject):Boolean
IContainer
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
IFlexDisplayObject
  
getChildAt(index:int):DisplayObject
IContainer
  
getChildByName(name:String):DisplayObject
IContainer
  
getChildIndex(child:DisplayObject):int
IContainer
 Inherited
A convenience method for determining whether to use the explicit or measured height
IUIComponent
 Inherited
A convenience method for determining whether to use the explicit or measured width
IUIComponent
  
getObjectsUnderPoint(point:Point):Array
IContainer
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
IFlexDisplayObject
 Inherited
globalToLocal(point:Point):Point
IFlexDisplayObject
 Inherited
hitTestObject(obj:DisplayObject):Boolean
IFlexDisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
IFlexDisplayObject
 Inherited
initialize():void
Initialize the object.
IUIComponent
 Inherited
localToGlobal(point:Point):Point
IFlexDisplayObject
 Inherited
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
IFlexDisplayObject
 Inherited
owns(child:DisplayObject):Boolean
Returns true if the chain of owner properties points from child to this UIComponent.
IUIComponent
 Inherited
parentChanged(p:DisplayObjectContainer):void
Called by Flex when a UIComponent object is added to or removed from a parent.
IUIComponent
  
removeChild(child:DisplayObject):DisplayObject
IContainer
  
removeChildAt(index:int):DisplayObject
IContainer
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the actual size of this object.
IFlexDisplayObject
  
setChildIndex(child:DisplayObject, index:int):void
IContainer
 Inherited
setVisible(value:Boolean, noEvent:Boolean = false):void
Called when the visible property changes.
IUIComponent
  
startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void
IContainer
  
stopDrag():void
IContainer
  
swapChildren(child1:DisplayObject, child2:DisplayObject):void
IContainer
  
swapChildrenAt(index1:int, index2:int):void
IContainer
Property detail
buttonModeproperty
buttonMode:Boolean  [read-write]

Implementation
    public function get buttonMode():Boolean
    public function set buttonMode(value:Boolean):void
creatingContentPaneproperty 
creatingContentPane:Boolean  [read-write]

Containers use an internal content pane to control scrolling. The creatingContentPane is true while the container is creating the content pane so that some events can be ignored or blocked.

Implementation
    public function get creatingContentPane():Boolean
    public function set creatingContentPane(value:Boolean):void
defaultButtonproperty 
defaultButton:IFlexDisplayObject  [read-write]Implementation
    public function get defaultButton():IFlexDisplayObject
    public function set defaultButton(value:IFlexDisplayObject):void
doubleClickEnabledproperty 
doubleClickEnabled:Boolean  [read-write]

Implementation
    public function get doubleClickEnabled():Boolean
    public function set doubleClickEnabled(value:Boolean):void
dropTargetproperty 
dropTarget:DisplayObject  [read-only]

Implementation
    public function get dropTarget():DisplayObject
focusManagerproperty 
focusManager:IFocusManager  [read-only]

Gets the FocusManager that controls focus for this component and its peers. Each popup has its own focus loop and therefore its own instance of a FocusManager. To make sure you're talking to the right one, use this method.

Implementation
    public function get focusManager():IFocusManager
focusRectproperty 
focusRect:Object  [read-write]

Implementation
    public function get focusRect():Object
    public function set focusRect(value:Object):void
graphicsproperty 
graphics:Graphics  [read-only]

Implementation
    public function get graphics():Graphics
hitAreaproperty 
hitArea:Sprite  [read-write]

Implementation
    public function get hitArea():Sprite
    public function set hitArea(value:Sprite):void
horizontalScrollPositionproperty 
horizontalScrollPosition:Number  [read-write]

The current position of the horizontal scroll bar. This is equal to the distance in pixels between the left edge of the scrollable surface and the leftmost piece of the surface that is currently visible.

Implementation
    public function get horizontalScrollPosition():Number
    public function set horizontalScrollPosition(value:Number):void
mouseChildrenproperty 
mouseChildren:Boolean  [read-write]

Implementation
    public function get mouseChildren():Boolean
    public function set mouseChildren(value:Boolean):void
mouseEnabledproperty 
mouseEnabled:Boolean  [read-write]

Implementation
    public function get mouseEnabled():Boolean
    public function set mouseEnabled(value:Boolean):void
numChildrenproperty 
numChildren:int  [read-only]

Implementation
    public function get numChildren():int
soundTransformproperty 
soundTransform:SoundTransform  [read-write]

Implementation
    public function get soundTransform():SoundTransform
    public function set soundTransform(value:SoundTransform):void
tabChildrenproperty 
tabChildren:Boolean  [read-write]

Implementation
    public function get tabChildren():Boolean
    public function set tabChildren(value:Boolean):void
tabEnabledproperty 
tabEnabled:Boolean  [read-write]

The methods here would normally just be in IInteractiveObject, but for backward compatibility, their ancestor methods have to be included directly into IFlexDisplayObject, so these also have to be kept in this separate include file so it can be used in ITextField

Implementation
    public function get tabEnabled():Boolean
    public function set tabEnabled(value:Boolean):void
tabIndexproperty 
tabIndex:int  [read-write]

Implementation
    public function get tabIndex():int
    public function set tabIndex(value:int):void
textSnapshotproperty 
textSnapshot:TextSnapshot  [read-only]

Implementation
    public function get textSnapshot():TextSnapshot
useHandCursorproperty 
useHandCursor:Boolean  [read-write]

Implementation
    public function get useHandCursor():Boolean
    public function set useHandCursor(value:Boolean):void
verticalScrollPositionproperty 
verticalScrollPosition:Number  [read-write]

The current position of the vertical scroll bar. This is equal to the distance in pixels between the top edge of the scrollable surface and the topmost piece of the surface that is currently visible.

Implementation
    public function get verticalScrollPosition():Number
    public function set verticalScrollPosition(value:Number):void
viewMetricsproperty 
viewMetrics:EdgeMetrics  [read-only]

Returns an object that has four properties: left, top, right, and bottom. The value of each property equals the thickness of the chrome (visual elements) around the edge of the container.

The chrome includes the border thickness. If the horizontalScrollPolicy or verticalScrollPolicy property value is ScrollPolicy.ON, the chrome also includes the thickness of the corresponding scroll bar. If a scroll policy is ScrollPolicy.AUTO, the chrome measurement does not include the scroll bar thickness, even if a scroll bar is displayed.

Subclasses of Container should override this method, so that they include other chrome to be taken into account when positioning the Container's children. For example, the viewMetrics property for the Panel class should return an object whose top property includes the thickness of the Panel container's title bar.

Implementation
    public function get viewMetrics():EdgeMetrics
Method detail
addChild()method
public function addChild(child:DisplayObject):DisplayObject

Parameters
child:DisplayObject

Returns
DisplayObject
addChildAt()method 
public function addChildAt(child:DisplayObject, index:int):DisplayObject

Parameters
child:DisplayObject
 
index:int

Returns
DisplayObject
areInaccessibleObjectsUnderPoint()method 
public function areInaccessibleObjectsUnderPoint(point:Point):Boolean

Parameters
point:Point

Returns
Boolean
contains()method 
public function contains(child:DisplayObject):Boolean

Parameters
child:DisplayObject

Returns
Boolean
getChildAt()method 
public function getChildAt(index:int):DisplayObject

Parameters
index:int

Returns
DisplayObject
getChildByName()method 
public function getChildByName(name:String):DisplayObject

Parameters
name:String

Returns
DisplayObject
getChildIndex()method 
public function getChildIndex(child:DisplayObject):int

Parameters
child:DisplayObject

Returns
int
getObjectsUnderPoint()method 
public function getObjectsUnderPoint(point:Point):Array

Parameters
point:Point

Returns
Array
removeChild()method 
public function removeChild(child:DisplayObject):DisplayObject

Parameters
child:DisplayObject

Returns
DisplayObject
removeChildAt()method 
public function removeChildAt(index:int):DisplayObject

Parameters
index:int

Returns
DisplayObject
setChildIndex()method 
public function setChildIndex(child:DisplayObject, index:int):void

Parameters
child:DisplayObject
 
index:int
startDrag()method 
public function startDrag(lockCenter:Boolean = false, bounds:Rectangle = null):void

Parameters
lockCenter:Boolean (default = false)
 
bounds:Rectangle (default = null)
stopDrag()method 
public function stopDrag():void

swapChildren()method 
public function swapChildren(child1:DisplayObject, child2:DisplayObject):void

Parameters
child1:DisplayObject
 
child2:DisplayObject
swapChildrenAt()method 
public function swapChildrenAt(index1:int, index2:int):void

Parameters
index1:int
 
index2:int