Packageorg.apache.flex.collections
Interfacepublic interface IArrayList
Implementors ArrayList

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

The ArrayList class provides an event-driven wrapper for the standard Array. Events are dispatched when items are added, removed, or changed.



Public Properties
 PropertyDefined By
  length : int
[read-only] The number of items.
IArrayList
  source : Array
The array of raw data needing conversion.
IArrayList
Public Methods
 MethodDefined By
  
addItem(item:Object):void
Adds an item to the end of the array.
IArrayList
  
addItemAt(item:Object, index:int):void
Inserts an item to a specific location within the array.
IArrayList
  
getItemAt(index:int):Object
Fetches an item from the collection
IArrayList
  
getItemIndex(item:Object):int
Fetches an item from the collection given an index.
IArrayList
  
itemUpdated(item:Object):void
Signals that an item in the array has been updated.
IArrayList
  
itemUpdatedAt(index:int):void
Signals that an item in the array has been updated.
IArrayList
  
removeAll():void
Removes all of the items from the array.
IArrayList
  
removeItem(item:Object):Boolean
Removed an item from the array and returns it.
IArrayList
  
removeItemAt(index:int):Object
Removes an item from a specific location within the array and returns it.
IArrayList
  
setItemAt(item:Object, index:int):Object
Replaces the item at the given index with a new item and returns the old item.
IArrayList
  
toArray():Array
Returns a copy of the source array.
IArrayList
Property Detail
lengthproperty
length: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 items.


Implementation
    public function get length():int
sourceproperty 
source:Array

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

The array of raw data needing conversion.


Implementation
    public function get source():Array
    public function set source(value:Array):void
Method Detail
addItem()method
public function addItem(item:Object):void

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

Adds an item to the end of the array.

Parameters

item:Object

addItemAt()method 
public function addItemAt(item:Object, index:int):void

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

Inserts an item to a specific location within the array.

Parameters

item:Object
 
index:int

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

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

Fetches an item from the collection

Parameters

index:int

Returns
Object
getItemIndex()method 
public function getItemIndex(item:Object):int

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

Fetches an item from the collection given an index.

Parameters

item:Object

Returns
int
itemUpdated()method 
public function itemUpdated(item:Object):void

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

Signals that an item in the array has been updated.

Parameters

item:Object

itemUpdatedAt()method 
public function itemUpdatedAt(index:int):void

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

Signals that an item in the array has been updated.

Parameters

index:int

removeAll()method 
public function removeAll():void

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

Removes all of the items from the array.

removeItem()method 
public function removeItem(item:Object):Boolean

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

Removed an item from the array and returns it.

Parameters

item:Object

Returns
Boolean
removeItemAt()method 
public function removeItemAt(index:int):Object

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

Removes an item from a specific location within the array and returns it.

Parameters

index:int

Returns
Object
setItemAt()method 
public function setItemAt(item:Object, index:int):Object

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

Replaces the item at the given index with a new item and returns the old item.

Parameters

item:Object
 
index:int

Returns
Object
toArray()method 
public function toArray():Array

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

Returns a copy of the source array.

Returns
Array