Class mx.controls.listclasses.DataProvider

Object
   +--mx.controls.listclasses.DataProvider

Field Index

addEventListener, dispatchEvent, evtDipatcher, length, mixinProps, mixins, reverse, slice, sort, sortOn, splice
Inherited from Object
__proto__, constructor, prototype

Method Index

new DataProvider()

addItem(), addItemAt(), addItemsAt(), editField(), getEditingData(), getItemAt(), getItemID(), Initialize(), removeAll(), removeItemAt(), removeItemsAt(), replaceItemAt(), sortItems(), sortItemsBy(), updateViews()
Inherited from Object
addProperty(), hasOwnProperty(), isPropertyEnumerable(), isPrototypeOf(), registerClass(), toLocaleString(), toString(), unwatch(), valueOf(), watch()

Constructor Detail

DataProvider

function DataProvider(obj)

Field Detail

mixinProps

static mixinProps:Array

evtDipatcher

static evtDipatcher

mixins

static mixins:DataProvider

length

length:Number

splice

splice:Function

slice

slice:Function

sortOn

sortOn:Function

reverse

reverse:Function

sort

sort:Function

addEventListener

addEventListener:Function

dispatchEvent

dispatchEvent:Function

Method Detail

Initialize

static function Initialize(obj:
Object):Boolean
Parameters
obj the object whose prototype will be initialized

addItemAt

function addItemAt(index:
Number, value):Void

addItem

function addItem(value):Void

addItemsAt

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

removeItemsAt

function removeItemsAt(index:
Number, len:Number):Void
Parameters
index the location of the items to remove
len the number of items to remove

removeItemAt

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

removeAll

function removeAll(Void):Void
remove the item at the specified location - relaxed return type for string / object
Parameters

replaceItemAt

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

getItemAt

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

getItemID

function getItemID(index:
Number):Number
Parameters
index the location of the item

sortItemsBy

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

sortItems

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

editField

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

getEditingData

function getEditingData(index:
Number, fieldName:String)
Parameters
index the index of the item
fieldName the name of the field to edit

updateViews

function updateViews(event, first, last):Void
Parameters