| Package | com.yworks.util |
| Class | public class CompositeCollectionModel |
| Inheritance | CompositeCollectionModel flash.events.EventDispatcher |
| Implements | ICollectionModel |
ICollectionModel implementation that is the composite of two models.
See also
| Method | Defined by | ||
|---|---|---|---|
|
Constructor takes the two models.
| CompositeCollectionModel | ||
|
addAll(collection:Collection):void
Adds all of the elements in the specified collection to this collection (optional operation).
| CompositeCollectionModel | ||
|
addItem(item:Object):Boolean
Adds the specified item to this collection.
| CompositeCollectionModel | ||
|
clear():void
Removes all of the elements from this collection.
| CompositeCollectionModel | ||
|
contains(item:Object):Boolean
Returns true if this collection contains the specified element.
| CompositeCollectionModel | ||
|
dispose():void
| CompositeCollectionModel | ||
|
getItemAt(index:int):Object
Returns the element at the specified position in this collection.
| CompositeCollectionModel | ||
|
isEmpty():Boolean
| CompositeCollectionModel | ||
|
Returns an iterator over a set of elements.
| CompositeCollectionModel | ||
|
length():uint
Returns the number of elements in this collection.
| CompositeCollectionModel | ||
|
removeItem(item:Object):Boolean
Removes a single instance of the specified element from this collection, if it is present (optional operation).
| CompositeCollectionModel | ||
|
toArray():Array
Returns an array containing all of the elements in this collection.
| CompositeCollectionModel | ||
| CompositeCollectionModel | () | constructor |
public function CompositeCollectionModel(collection1:ICollectionModel, collection2:ICollectionModel)Constructor takes the two models.
Parameterscollection1:ICollectionModel — A model.
|
|
collection2:ICollectionModel — Another model.
|
| addAll | () | method |
public function addAll(collection:Collection):voidAdds all of the elements in the specified collection to this collection (optional operation).
Parameterscollection:Collection — the collection containing elements to be added to this collection
|
| addItem | () | method |
public function addItem(item:Object):BooleanAdds the specified item to this collection. Returns true if this collection changed as a result of the call. (Returns false if this collection does not permit duplicates and already contains the specified element.)
Parametersitem:Object — element whose presence in this collection is to be ensured
|
Boolean — true if this collection changed as a result of the call
|
| clear | () | method |
public function clear():voidRemoves all of the elements from this collection. The collection will be empty after this method returns.
| contains | () | method |
public function contains(item:Object):BooleanReturns true if this collection contains the specified element.
Parametersitem:Object — element whose presence in this collection is to be tested
|
Boolean — true if this collection contains the specified element
|
| dispose | () | method |
public function dispose():void
| getItemAt | () | method |
public function getItemAt(index:int):ObjectReturns the element at the specified position in this collection.
Parametersindex:int — the index of the element to return
|
Object — the element at the specified position in this list
|
| isEmpty | () | method |
public function isEmpty():Boolean
Returns
Boolean |
| iterator | () | method |
public function iterator():IteratorReturns an iterator over a set of elements.
ReturnsIterator —
an Iterator.
|
| length | () | method |
public function length():uintReturns the number of elements in this collection.
Returnsuint — the number of elements in this collection
|
| removeItem | () | method |
public function removeItem(item:Object):BooleanRemoves a single instance of the specified element from this collection, if it is present (optional operation).
Parametersitem:Object — element to be removed from this collection, if present
|
Boolean — true if an element was removed as a result of this call
|
| toArray | () | method |
public function toArray():ArrayReturns an array containing all of the elements in this collection.
ReturnsArray — an array containing all of the elements in this collection
|