This is the generic collection class used by Kst to store lists of objects. It behaves mostly like an array in JavaScript. At this time indices are read-only. In addition, if a collection is read-only, mutator methods will throw exceptions. Iteration looks something like this:
for (i = 0; i < collection.length; ++i) { // do something with collection[i] }
Object newObj - The new object to append to the collection.
Object newObj - The new object to prepend to the collection.
number n - The index of the entry to remove.
The number of items in the collection. Items are ordered 0..(length - 1) so it is easy to iterate.
Would you like to make a comment or contribute an update to this page?
Send feedback to the KDE Docs Team