Object +--mx.controls.listclasses.DataProvider
addEventListener, dispatchEvent, evtDipatcher, length, mixinProps, mixins, reverse, slice, sort, sortOn, splice__proto__, constructor, prototypenew DataProvider()
static mixinProps:Arraystatic evtDipatcherstatic mixins:DataProviderlength:Numbersplice:Functionslice:FunctionsortOn:Functionreverse:Functionsort:FunctionaddEventListener:FunctiondispatchEvent:Functionstatic function Initialize(obj:Object):Boolean
- Parameters
objthe object whose prototype will be initialized
function addItemsAt(index:Number, newItems:Array):Void
- Parameters
indexthe location for the items to be inserted newItemsthe array of new items to add
function removeItemsAt(index:Number, len:Number):Void
- Parameters
indexthe location of the items to remove lenthe number of items to remove
function removeItemAt(index:Number)remove the item at the specified location
- Parameters
indexthe location of the item to remove - Return
- the item being deleted - relaxed return type for string / object
function removeAll(Void):Voidremove the item at the specified location - relaxed return type for string / object
- Parameters
function replaceItemAt(index:Number, itemObj):Voidremove the item at the specified location - relaxed return type for string / object
- Parameters
indexthe location of the item to remove
function getItemAt(index:Number)returns the item at the specified location - relaxed return type for string / object
- Parameters
indexthe location of the item to return - Return
- the item at the location
function sortItemsBy(fieldName, order):VoidSorts the list of items - relaxed parameter types for overloading
- Parameters
fieldNamethe field (or array of fieldNames) upon which to sort ordereither "asc" or "desc", or the options accepted by Array.sort
function sortItems(compareFunc, optionFlags):VoidSorts the list of items - relaxed parameter types for overloading
- Parameters
compareFunc- the function to use for comparing items optionFlagsthe options accepted by Array.sort
function editField(index:Number, fieldName:String, newData):Void
- Parameters
indexthe index of the item fieldNamethe name of the field to edit newDatathe new data for the field