01: /*
02: * GWT-Ext Widget Library
03: * Copyright(c) 2007-2008, GWT-Ext.
04: * licensing@gwt-ext.com
05: *
06: * http://www.gwt-ext.com/license
07: */
08:
09: package com.gwtext.client.data.event;
10:
11: import com.google.gwt.core.client.GWT;
12: import com.gwtext.client.data.Record;
13: import com.gwtext.client.data.Store;
14:
15: /**
16: * Store listener adapter.
17: */
18: public class StoreListenerAdapter implements StoreListener {
19:
20: public void onAdd(Store store, Record[] records, int index) {
21: }
22:
23: public boolean doBeforeLoad(Store store) {
24: return true;
25: }
26:
27: public void onClear(Store store) {
28: }
29:
30: public void onDataChanged(Store store) {
31: }
32:
33: public void onLoad(Store store, Record[] records) {
34: }
35:
36: public void onRemove(Store store, Record record, int index) {
37: }
38:
39: public void onUpdate(Store store, Record record,
40: Record.Operation operation) {
41: }
42:
43: //temporarily here so that users can update thier old code
44: final public void onUpdate(Store store, Record record,
45: String operation) {
46: }
47:
48: public void onLoadException(Throwable error) {
49: GWT.log("An error was encountered loading the store", error);
50: }
51: }
|