Packageorg.springextensions.actionscript.utils
Classpublic class ArrayCollectionUtils

Contains utilities for working with ArrayCollection objects.



Public Methods
 MethodDefined by
  
createFromCollectionView(view:ICollectionView):ArrayCollection
[static] Creates an ArrayCollection from the items in the given view.
ArrayCollectionUtils
  
createFromList(list:IList):ArrayCollection
[static] Creates an ArrayCollection from the items in the given list.
ArrayCollectionUtils
  
removeItemsOfType(collection:ArrayCollection, type:Class):void
[static] Removes all items from the collection that are of the given type.
ArrayCollectionUtils
Method detail
createFromCollectionView()method
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
createFromList()method 
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
removeItemsOfType()method 
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