User Guide
336 Components Dictionary
Method summary for the DataSet class
The following table lists the methods of the DataSet class.
Method Description
DataSet.addItem() Adds the specified item to the collection.
DataSet.addItemAt() Adds an item to the data set at the specified position.
DataSet.addSort() Creates a new sorted view of the items in the collection.
DataSet.applyUpdates() Signals that the deltaPacket property has a value that you can
access using data binding or ActionScript.
DataSet.changesPending() Indicates whether the collection has changes pending that
have not yet been sent in a delta packet.
DataSet.clear() Clears all items from the current view of the collection.
DataSet.createItem() Returns a newly initialized collection item.
DataSet.disableEvents() Stops sending DataSet events to listeners.
DataSet.enableEvents() Resumes sending DataSet events to listeners.
DataSet.find() Locates an item in the current view of the collection.
DataSet.findFirst() Locates the first occurrence of an item in the current view of
the collection.
DataSet.findLast() Locates the last occurrence of an item in the current view of
the collection.
DataSet.first() Moves to the first item in the current view of the collection.
DataSet.getItemId() Returns the unique ID for the specified item.
DataSet.getIterator() Returns a clone of the current iterator.
DataSet.getLength() Returns the number of items in the data set.
DataSet.hasNext() Indicates whether the current iterator is at the end of its view
of the collection.
DataSet.hasPrevious() Indicates whether the current iterator is at the beginning of its
view of the collection.
DataSet.hasSort() Indicates whether the specified sort exists.
DataSet.isEmpty() Indicates whether the collection contains any items.
DataSet.last() Moves to the last item in the current view of the collection.
DataSet.loadFromSharedObj() Loads all of the relevant data needed to restore the DataSet
collection from a shared object.
DataSet.locateById() Moves the current iterator to the item with the specified ID.