|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StoreListener
Store
listener interface.
Method Summary | |
---|---|
boolean |
doBeforeLoad(Store store)
Fires before a request is made for a new data object. |
void |
onAdd(Store store,
Record[] records,
int index)
Fires when Records have been added to the Store |
void |
onClear(Store store)
Fires when the data cache has been cleared. |
void |
onDataChanged(Store store)
Fires when the data cache has changed, and a widget which is using this Store as a Record cache should refresh its view. |
void |
onLoad(Store store,
Record[] records)
Fires after a new set of Records has been loaded. |
void |
onLoadException(java.lang.Throwable error)
Fires if an exception occurs in the Proxy during loading. |
void |
onRemove(Store store,
Record record,
int index)
Fires when a Record has been removed from the Store. |
void |
onUpdate(Store store,
Record record,
Record.Operation operation)
Fires when a Record has been updated. |
Method Detail |
---|
void onAdd(Store store, Record[] records, int index)
store
- thisrecords
- the records addedindex
- the index at which the record(s) were addedboolean doBeforeLoad(Store store)
store
- this
void onClear(Store store)
store
- thisvoid onDataChanged(Store store)
store
- thisvoid onLoad(Store store, Record[] records)
store
- thisrecords
- the Records that were loadedvoid onLoadException(java.lang.Throwable error)
HttpStoreLoadException
is raised if an exception occurs.
error
- the errorvoid onRemove(Store store, Record record, int index)
store
- thisrecord
- the Record that was removedindex
- the index at which the record was removedvoid onUpdate(Store store, Record record, Record.Operation operation)
store
- thisrecord
- the Record that was updatedoperation
- the update operation being performedRecord.EDIT
,
Record.REJECT
,
Record.COMMIT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |