Packagecom.yworks.util
Interfacepublic interface ICollectionModel extends Collection, Iterable, flash.events.IEventDispatcher
ImplementorsCompositeCollectionModel, DefaultCollectionModel

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



Public Methods
 MethodDefined by
 Inherited
addAll(collection:Collection):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
 EventSummaryDefined by
   Dispatched when the collection has changed.ICollectionModel
Event detail
collectionChangeevent 
Event object type: mx.events.CollectionEvent

Dispatched when the collection has changed.