Contains utilities for working with ArrayCollection objects.
public static function createFromCollectionView(view:ICollectionView):ArrayCollection
Creates an ArrayCollection from the items in the given view.
Parameters
| view:ICollectionView — the ICollectionView instance from which an arraycollection will be created
|
Returns
| ArrayCollection — an ArrayCollection with the items from the view
|
public static function createFromList(list:IList):ArrayCollection
Creates an ArrayCollection from the items in the given list.
Parameters
| list:IList — the IList instance from which an arraycollection will be created
|
Returns
| ArrayCollection — an ArrayCollection with the items from the list
|
public static function removeItemsOfType(collection:ArrayCollection, type:Class):void
Removes all items from the collection that are of the given type. Subtypes will also be removed.
Parameters
| collection:ArrayCollection — the collection from which to remove the items
|
| |
| type:Class — the class or interface of which the items will be removed
|
Spring ActionScript 0.7.1 - 2009