Packagecom.yworks.util
Interfacepublic interface ICollectionModel extends Collection, flash.events.IEventDispatcher, Iterable
Implementors CompositeCollectionModel, DefaultCollectionModel, FilteredCollectionModel

The interface for a collection that will notify registered listeners of changes to its contents using CollectionEvents.



Public Methods
 MethodDefined By
 Inherited
addAll(iterable:Iterable):void
Adds all of the elements in the specified collection to this collection (optional operation).
Collection
 Inherited
addItem(item:Object):Boolean
Adds the specified item to this collection.
Collection
 Inherited
clear():void
Removes all of the elements from this collection.
Collection
 Inherited
contains(item:Object):Boolean
Returns true if this collection contains the specified element.
Collection
 Inherited
getItemAt(index:int):Object
Returns the element at the specified position in this collection.
Collection
 Inherited
isEmpty():Boolean
Returns true if this collection contains no elements.
Collection
 Inherited
Returns an iterator over a set of elements.
Iterable
 Inherited
length():uint
Returns the number of elements in this collection.
Collection
 Inherited
removeItem(item:Object):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation).
Collection
 Inherited
toArray():Array
Returns an array containing all of the elements in this collection.
Collection
Events
 Event Summary Defined By
  Dispatched when the collection has changed.ICollectionModel
Event Detail
collectionChange Event
Event Object Type: mx.events.CollectionEvent
CollectionEvent.type property = CollectionEvent.COLLECTION_CHANGE

Dispatched when the collection has changed.