| Pacote | mx.collections |
| Classe | public class ArrayCollection |
| Herança | ArrayCollection ListCollectionView Proxy Object |
| Implementa | IExternalizable |
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 MXML
Hide 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
| Propriedade | Definido por | ||
|---|---|---|---|
![]() | constructor : Object
A reference to the class object or constructor function for a given object instance.
| Object | |
![]() | filterFunction : Function
| ListCollectionView | |
![]() | length : int
[read-only]
| ListCollectionView | |
![]() | list : IList
The IList that this collection view wraps.
| ListCollectionView | |
![]() | prototype : Object
[static]
A reference to the prototype object of a class or function object.
| Object | |
![]() | sort : Sort
| ListCollectionView | |
| source : Array
The source of data in the ArrayCollection.
| ArrayCollection | ||
| Método | Definido por | ||
|---|---|---|---|
|
ArrayCollection(source:Array = null)
Constructor.
| ArrayCollection | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
Indicates whether an object has a specified property defined.
| Object | |
![]() |
Called automatically by the MXML compiler when the ListCollectionView
is created using an MXML tag.
| ListCollectionView | |
![]() |
Indicates whether an instance of the Object class is in the prototype chain of the object specified
as the parameter.
| Object | |
![]() |
itemUpdated(item:Object, property:Object = null, oldValue:Object = null, newValue:Object = null):void
| ListCollectionView | |
![]() |
Indicates whether the specified property exists and is enumerable.
| Object | |
![]() |
| ListCollectionView | |
![]() |
Remove all items from the list.
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
| ListCollectionView | |
![]() |
Sets the availability of a dynamic property for loop operations.
| Object | |
![]() |
| ListCollectionView | |
![]() |
Pretty prints the contents of this view to a string and returns it.
| ListCollectionView | |
![]() |
Returns the primitive value of the specified object.
| Object | |
![]() |
| ListCollectionView | |
| source | propriedade |
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.
public function get source():Array
public function set source(value:Array):void
| 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âmetrossource:Array (default = null) |