Packageorg.apache.flex.core
Interfacepublic interface IParent
Implementors Application, ContainerBaseStrandChildren, ListBaseStrandChildren

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The IParent interface is the basic interface for a component that contains subcomponents, including the application class.



Public Properties
 PropertyDefined By
  numElements : int
[read-only] The number of elements in the parent.
IParent
Public Methods
 MethodDefined By
  
addElement(c:Object, dispatchEvent:Boolean = true):void
Add a component to the parent.
IParent
  
addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void
Add a component to the parent.
IParent
  
getElementAt(index:int):Object
Get a component from the parent.
IParent
  
getElementIndex(c:Object):int
Gets the index of this subcomponent.
IParent
  
removeElement(c:Object, dispatchEvent:Boolean = true):void
Remove a component from the parent.
IParent
Property Detail
numElementsproperty
numElements:int  [read-only]

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

The number of elements in the parent.


Implementation
    public function get numElements():int
Method Detail
addElement()method
public function addElement(c:Object, dispatchEvent:Boolean = true):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Add a component to the parent.

Parameters

c:Object — The subcomponent to add.
 
dispatchEvent:Boolean (default = true) — Whether to dispatch an event after adding the child.

addElementAt()method 
public function addElementAt(c:Object, index:int, dispatchEvent:Boolean = true):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Add a component to the parent.

Parameters

c:Object — The subcomponent to add.
 
index:int — The index where the subcomponent should be added.
 
dispatchEvent:Boolean (default = true) — Whether to dispatch an event after adding the child.

getElementAt()method 
public function getElementAt(index:int):Object

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Get a component from the parent.

Parameters

index:int — The index of the subcomponent.

Returns
Object
getElementIndex()method 
public function getElementIndex(c:Object):int

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Gets the index of this subcomponent.

Parameters

c:Object — The subcomponent to add.

Returns
int — The index (zero-based).
removeElement()method 
public function removeElement(c:Object, dispatchEvent:Boolean = true):void

Language Version : ActionScript 3.0
Product Version : FlexJS 0.0
Runtime Versions : Flash Player 10.2, AIR 2.6

Remove a component from the parent.

Parameters

c:Object — The subcomponent to remove.
 
dispatchEvent:Boolean (default = true) — Whether to dispatch an event after removing the child.