Module:libextPackage:wrap.ext.dataParent:ObservableCopyright (c) 2007, 2008 Point5U, LLC
Milescript - ExtJS Wrapper Library: Project Home | Documentation

wrap.ext.data.Store

Inheritance : Object : Observable

Constructors

Signature
public Store(StoreConfig config)

Methods

NameSignature
addvoid add(Array<Record> records)
addSortedvoid addSorted(Record record)
clearFiltervoid clearFilter(boolean suppressEvent)
collectArray<Object> collect(String dataIndex)
collectArray<Object> collect(String dataIndex, boolean allowNull)
collectArray<Object> collect(String dataIndex, boolean allowNull, boolean bypassFilter)
commitChangesvoid commitChanges()
eachvoid each(Function fn)
eachvoid each(Function fn, Object scope)
filtervoid filter(String field, RegExp value)
filtervoid filter(String field, String value)
filtervoid filter(String field, String value, boolean anyMatch)
filtervoid filter(String field, RegExp value, boolean anyMatch)
filtervoid filter(String field, RegExp value, boolean anyMatch, boolean caseSensitive)
filtervoid filter(String field, String value, boolean anyMatch, boolean caseSensitive)
filterByvoid filterBy(Function fn)
filterByvoid filterBy(Function fn, Object scope)
findByint findBy(Function fn)
findByint findBy(Function fn, Object scope)
findByint findBy(Function fn, Object scope, int startIndex)
getAtRecord getAt(int index)
getByIdRecord getById(String id)
getCountint getCount()
getModifiedRecordsArray<Record> getModifiedRecords()
getRangeArray<Record> getRange()
getRangeArray<Record> getRange(int startIndex)
getRangeArray<Record> getRange(int startIndex, int endIndex)
getSortStateObject getSortState()
getTotalCountint getTotalCount()
indexOfint indexOf(Record record)
indexOfIdint indexOfId(String id)
insertvoid insert(int index, Array<Record> records)
isFilteredboolean isFiltered()
loadvoid load()
loadvoid load(StoreLoadConfig options)
loadDatavoid loadData(Object data)
loadDatavoid loadData(Object data, boolean append)
queryMixedCollection query(String field, RegExp value)
queryMixedCollection query(String field, String value)
queryMixedCollection query(String field, RegExp value, boolean anyMatch)
queryMixedCollection query(String field, String value, boolean anyMatch)
queryMixedCollection query(String field, String value, boolean anyMatch, boolean caseSensitive)
queryMixedCollection query(String field, RegExp value, boolean anyMatch, boolean caseSensitive)
queryByMixedCollection queryBy(Function fn)
queryByMixedCollection queryBy(Function fn, Object scope)
rejectChangesvoid rejectChanges()
reloadvoid reload(StoreLoadConfig options)
removevoid remove(Record record)
removeAllvoid removeAll()
setDefaultSortvoid setDefaultSort(String fieldName)
setDefaultSortvoid setDefaultSort(String fieldName, String dir)
sortvoid sort(String fieldName)
sortvoid sort(String fieldName, String dir)
sumfloat sum(String property, int start, int end)

Properties

NameTypeComment
baseParams
core.Object
lastOptions
wrap.ext.data.Store

Constructors

public Store(StoreConfig config)

Parameters

NameTypeDescription
configwrap.ext.data.types.StoreConfig



Methods

add

void add(Array<Record> records)

Parameters

NameTypeDescription
recordscore.Array<wrap.ext.data.Record>

addSorted

void addSorted(Record record)

Parameters

NameTypeDescription
recordwrap.ext.data.Record

clearFilter

void clearFilter(boolean suppressEvent)

Parameters

NameTypeDescription
suppressEventcore.boolean

collect

Array<Object> collect(String dataIndex)

Returns
core.Array<core.Object>

Parameters

NameTypeDescription
dataIndexcore.String

collect

Array<Object> collect(String dataIndex, boolean allowNull)

Returns
core.Array<core.Object>

Parameters

NameTypeDescription
dataIndexcore.String
allowNullcore.boolean

collect

Array<Object> collect(String dataIndex, boolean allowNull, boolean bypassFilter)

Returns
core.Array<core.Object>

Parameters

NameTypeDescription
dataIndexcore.String
allowNullcore.boolean
bypassFiltercore.boolean

commitChanges

void commitChanges()


each

void each(Function fn)

Parameters

NameTypeDescription
fncore.Function

each

void each(Function fn, Object scope)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

filter

void filter(String field, RegExp value)

Parameters

NameTypeDescription
fieldcore.String
valuecore.RegExp

filter

void filter(String field, String value)

Parameters

NameTypeDescription
fieldcore.String
valuecore.String

filter

void filter(String field, String value, boolean anyMatch)

Parameters

NameTypeDescription
fieldcore.String
valuecore.String
anyMatchcore.boolean

filter

void filter(String field, RegExp value, boolean anyMatch)

Parameters

NameTypeDescription
fieldcore.String
valuecore.RegExp
anyMatchcore.boolean

filter

void filter(String field, RegExp value, boolean anyMatch, boolean caseSensitive)

Parameters

NameTypeDescription
fieldcore.String
valuecore.RegExp
anyMatchcore.boolean
caseSensitivecore.boolean

filter

void filter(String field, String value, boolean anyMatch, boolean caseSensitive)

Parameters

NameTypeDescription
fieldcore.String
valuecore.String
anyMatchcore.boolean
caseSensitivecore.boolean

filterBy

void filterBy(Function fn)

Parameters

NameTypeDescription
fncore.Function

filterBy

void filterBy(Function fn, Object scope)

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

findBy

int findBy(Function fn)

Returns
core.int

Parameters

NameTypeDescription
fncore.Function

findBy

int findBy(Function fn, Object scope)

Returns
core.int

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

findBy

int findBy(Function fn, Object scope, int startIndex)

Returns
core.int

Parameters

NameTypeDescription
fncore.Function
scopecore.Object
startIndexcore.int

getAt

Record getAt(int index)

Returns
wrap.ext.data.Record

Parameters

NameTypeDescription
indexcore.int

getById

Record getById(String id)

Returns
wrap.ext.data.Record

Parameters

NameTypeDescription
idcore.String

getCount

int getCount()

Returns
core.int

getModifiedRecords

Array<Record> getModifiedRecords()

Returns
core.Array<wrap.ext.data.Record>

getRange

Array<Record> getRange()

Returns
core.Array<wrap.ext.data.Record>

getRange

Array<Record> getRange(int startIndex)

Returns
core.Array<wrap.ext.data.Record>

Parameters

NameTypeDescription
startIndexcore.int

getRange

Array<Record> getRange(int startIndex, int endIndex)

Returns
core.Array<wrap.ext.data.Record>

Parameters

NameTypeDescription
startIndexcore.int
endIndexcore.int

getSortState

Object getSortState()

Returns
core.Object

getTotalCount

int getTotalCount()

Returns
core.int

indexOf

int indexOf(Record record)

Returns
core.int

Parameters

NameTypeDescription
recordwrap.ext.data.Record

indexOfId

int indexOfId(String id)

Returns
core.int

Parameters

NameTypeDescription
idcore.String

insert

void insert(int index, Array<Record> records)

Parameters

NameTypeDescription
indexcore.int
recordscore.Array<wrap.ext.data.Record>

isFiltered

boolean isFiltered()

Returns
core.boolean

load

void load()


load

void load(StoreLoadConfig options)

Parameters

NameTypeDescription
optionswrap.ext.data.types.StoreLoadConfig

loadData

void loadData(Object data)

Parameters

NameTypeDescription
datacore.Object

loadData

void loadData(Object data, boolean append)

Parameters

NameTypeDescription
datacore.Object
appendcore.boolean

query

MixedCollection query(String field, RegExp value)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fieldcore.String
valuecore.RegExp

query

MixedCollection query(String field, String value)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fieldcore.String
valuecore.String

query

MixedCollection query(String field, RegExp value, boolean anyMatch)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fieldcore.String
valuecore.RegExp
anyMatchcore.boolean

query

MixedCollection query(String field, String value, boolean anyMatch)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fieldcore.String
valuecore.String
anyMatchcore.boolean

query

MixedCollection query(String field, String value, boolean anyMatch, boolean caseSensitive)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fieldcore.String
valuecore.String
anyMatchcore.boolean
caseSensitivecore.boolean

query

MixedCollection query(String field, RegExp value, boolean anyMatch, boolean caseSensitive)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fieldcore.String
valuecore.RegExp
anyMatchcore.boolean
caseSensitivecore.boolean

queryBy

MixedCollection queryBy(Function fn)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fncore.Function

queryBy

MixedCollection queryBy(Function fn, Object scope)

Returns
wrap.ext.util.MixedCollection

Parameters

NameTypeDescription
fncore.Function
scopecore.Object

rejectChanges

void rejectChanges()


reload

void reload(StoreLoadConfig options)

Parameters

NameTypeDescription
optionswrap.ext.data.types.StoreLoadConfig

remove

void remove(Record record)

Parameters

NameTypeDescription
recordwrap.ext.data.Record

removeAll

void removeAll()


setDefaultSort

void setDefaultSort(String fieldName)

Parameters

NameTypeDescription
fieldNamecore.String

setDefaultSort

void setDefaultSort(String fieldName, String dir)

Parameters

NameTypeDescription
fieldNamecore.String
dircore.String

sort

void sort(String fieldName)

Parameters

NameTypeDescription
fieldNamecore.String

sort

void sort(String fieldName, String dir)

Parameters

NameTypeDescription
fieldNamecore.String
dircore.String

sum

float sum(String property, int start, int end)

Returns
core.float

Parameters

NameTypeDescription
propertycore.String
startcore.int
endcore.int

Module:libextPackage:wrap.ext.dataParent:ObservableCopyright (c) 2007, 2008 Point5U, LLC
Milescript - ExtJS Wrapper Library: Project Home | Documentation