Class:
Collection



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]
                }
                



Methods: Properties:

void append ( Object newObj )


void prepend ( Object newObj )


void remove ( number n )


void remove ( Object obj )


void clear ( )


number length [Read-Only]


boolean readOnly [Read-Only]



[Index]
Copyright © 2005-2006 The University of Toronto
Copyright © 2007-2010 The University of British Columbia
Kst http://kst.kde.org/kst1/