Object +--mx.controls.listclasses.DataProvider
addEventListener
, dispatchEvent
, evtDipatcher
, length
, mixinProps
, mixins
, reverse
, slice
, sort
, sortOn
, splice
__proto__
, constructor
, prototype
new DataProvider()
static mixinProps:Array
static evtDipatcher
static mixins:DataProvider
length:Number
splice:Function
slice:Function
sortOn:Function
reverse:Function
sort:Function
addEventListener:Function
dispatchEvent:Function
static function Initialize(obj:Object):Boolean
- Parameters
obj
the object whose prototype will be initialized
function addItemsAt(index:Number, newItems:Array):Void
- Parameters
index
the location for the items to be inserted newItems
the array of new items to add
function removeItemsAt(index:Number, len:Number):Void
- Parameters
index
the location of the items to remove len
the number of items to remove
function removeItemAt(index:Number)
remove the item at the specified location
- Parameters
index
the location of the item to remove - Return
- the item being deleted - relaxed return type for string / object
function removeAll(Void):Void
remove the item at the specified location - relaxed return type for string / object
- Parameters
function replaceItemAt(index:Number, itemObj):Void
remove the item at the specified location - relaxed return type for string / object
- Parameters
index
the location of the item to remove
function getItemAt(index:Number)
returns the item at the specified location - relaxed return type for string / object
- Parameters
index
the location of the item to return - Return
- the item at the location
function sortItemsBy(fieldName, order):Void
Sorts the list of items - relaxed parameter types for overloading
- Parameters
fieldName
the field (or array of fieldNames) upon which to sort order
either "asc" or "desc", or the options accepted by Array.sort
function sortItems(compareFunc, optionFlags):Void
Sorts the list of items - relaxed parameter types for overloading
- Parameters
compareFunc
- the function to use for comparing items optionFlags
the options accepted by Array.sort
function editField(index:Number, fieldName:String, newData):Void
- Parameters
index
the index of the item fieldName
the name of the field to edit newData
the new data for the field