Pacotemx.collections
Classepublic class ArrayCollection
HerançaArrayCollection Inheritance ListCollectionView Inheritance Proxy Inheritance Object
Implementa IExternalizable

The ArrayCollection class is a wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces. Operations on a ArrayCollection instance modify the data source; for exemplo, if you use the removeItemAt() method on an ArrayCollection, you remove the item from the underlying Array.

Sintaxe em MXMLexpandedHide MXML Syntax

The <mx:ArrayCollection> tag inherits all the attributes of its superclass, and adds the following attributes:

  <mx:ArrayCollection
  Properties
  source="null"
  />
  

Default MXML Propertysource



Propriedades Públicas
 PropriedadeDefinido por
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
 InheritedfilterFunction : Function
ListCollectionView
 Inheritedlength : int
[read-only]
ListCollectionView
 Inheritedlist : IList
The IList that this collection view wraps.
ListCollectionView
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
 Inheritedsort : Sort
ListCollectionView
  source : Array
The source of data in the ArrayCollection.
ArrayCollection
Propriedades Protegidas
 PropriedadeDefinido por
 InheritedlocalIndex : Array
When the view is sorted or filtered the localIndex property contains an array of items in the sorted or filtered (ordered, reduced) view, in the sorted order.
ListCollectionView
Métodos Públicos
 MétodoDefinido por
  
ArrayCollection(source:Array = null)
Constructor.
ArrayCollection
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
ListCollectionView
 Inherited
ListCollectionView
 Inherited
addItemAt(item:Object, index:int):void
ListCollectionView
 Inherited
ListCollectionView
 Inherited
ListCollectionView
 Inherited
ListCollectionView
 Inherited
ListCollectionView
 Inherited
ListCollectionView
 Inherited
getItemAt(index:int, prefetch:int = 0):Object
ListCollectionView
 Inherited
ListCollectionView
 Inherited
ListCollectionView
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
initialized(document:Object, id:String):void
Called automatically by the MXML compiler when the ListCollectionView is created using an MXML tag.
ListCollectionView
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
ListCollectionView
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
ListCollectionView
 Inherited
Remove all items from the list.
ListCollectionView
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
ListCollectionView
 Inherited
ListCollectionView
 Inherited
setItemAt(item:Object, index:int):Object
ListCollectionView
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
ListCollectionView
 Inherited
Pretty prints the contents of this view to a string and returns it.
ListCollectionView
 Inherited
Returns the primitive value of the specified object.
Object
 Inherited
ListCollectionView
Eventos
 Evento Descrição Definido por
 Inherited Dispatched when the ICollectionView has been updated in some way.ListCollectionView
Detalhes da propriedade
sourcepropriedade
source:Array  [read-write]

The source of data in the ArrayCollection. The ArrayCollection object does not represent any changes that you make directly to the source array. Always use the ICollectionView or IList methods to modify the collection.

This property can be used as the source for data binding.


Implementação
    public function get source():Array
    public function set source(value:Array):void
Detalhes do construtor
ArrayCollection()Construtor
public function ArrayCollection(source:Array = null)

Constructor.

Creates a new ArrayCollection using the specified source array. If no array is specified an empty array will be used.

Parâmetros
source:Array (default = null)