DataSourceCollection
A collection of DataSource instances.
See also
Properties
An event that is raised when a data source is added to the collection. Event handlers are passed the data source that was added.
An event that is raised when a data source changes position in the collection. Event handlers are passed the data source that was moved, its new index after the move, and its old index prior to the move.
An event that is raised when a data source is removed from the collection. Event handlers are passed the data source that was removed.
Functions
Adds a data source to the collection.
Checks to see if the collection contains a given data source.
Destroys the resources held by all data sources in this collection. Explicitly destroying this object allows for deterministic release of WebGL resources, instead of relying on the garbage collector. Once this object is destroyed, it should not be used; calling any function other than isDestroyed
will result in a DeveloperError exception. Therefore, assign the return value (undefined
) to the object as done in the example.
Gets a data source by index from the collection.
Gets a data source by name from the collection.
Determines the index of a given data source in the collection.
Returns true if this object was destroyed; otherwise, false. If this object was destroyed, it should not be used; calling any function other than isDestroyed
will result in a DeveloperError exception.
Lowers a data source down one position in the collection.
Lowers a data source to the bottom of the collection.
Raises a data source up one position in the collection.
Raises a data source to the top of the collection.
Removes a data source from this collection, if present.