| Package | org.springextensions.actionscript.collections |
| Class | public class EntityCollection |
| Inheritance | EntityCollection TypedCollection mx.collections.ArrayCollection |
Author: Cardoen Lieven
Version: $Revision: 21 $, $Date: 2008-11-01 22:58:42 +0100 (za, 01 nov 2008) $, $Author: dmurat $
Since: 0.1
| Method | Defined by | ||
|---|---|---|---|
|
EntityCollection(source:Array = null)
Constructor
| EntityCollection | ||
![]() |
addItem(item:Object):void
| TypedCollection | |
![]() |
addItemAt(item:Object, index:int):void
| TypedCollection | |
![]() |
addListener(listener:ITypedCollectionListener):void
Registers an ITypedCollectionListener listener
| TypedCollection | |
![]() |
addRange(range:TypedCollection):void
| TypedCollection | |
|
containsId(id:int):Boolean
| EntityCollection | ||
|
copyFrom(range:EntityCollection):void
Adds a range to the entityCollection.
| EntityCollection | ||
![]() |
createCursor():IViewCursor
| TypedCollection | |
|
getEntityWithId(id:int):Entity
| EntityCollection | ||
![]() |
removeItem(item:Object):Boolean
Removes an item from the TypedCollection
| TypedCollection | |
| Method | Defined by | ||
|---|---|---|---|
|
check(item:Object):void
Checks if the collection already holds an Entity instance with the same
id as the passed Entity instance
| EntityCollection | ||
| EntityCollection | () | constructor |
public function EntityCollection(source:Array = null)Constructor
Parameterssource:Array (default = null) — TODO: Extra parameter with Class that should be a superclass of Entity
|
| check | () | method |
protected override function check(item:Object):voidChecks if the collection already holds an Entity instance with the same id as the passed Entity instance
Parametersitem:Object — the object to be checked
|
| containsId | () | method |
public function containsId(id:int):BooleanParameters
id:int |
Boolean |
| copyFrom | () | method |
public function copyFrom(range:EntityCollection):voidAdds a range to the entityCollection. If an entity of the range exists in the entityCollection, then it is copied to the existing entity and the pointer to the entity is changed to the entity of the entityCollection. If it doesn't exist, it is added and the pointer stays.
Parametersrange:EntityCollection — The EntityCollection to be added
|
| getEntityWithId | () | method |