diff options
Diffstat (limited to 'src/org/traccar/web/client/model/BaseStoreHandlers.java')
-rw-r--r-- | src/org/traccar/web/client/model/BaseStoreHandlers.java | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/src/org/traccar/web/client/model/BaseStoreHandlers.java b/src/org/traccar/web/client/model/BaseStoreHandlers.java new file mode 100644 index 00000000..ed4e5419 --- /dev/null +++ b/src/org/traccar/web/client/model/BaseStoreHandlers.java @@ -0,0 +1,58 @@ +package org.traccar.web.client.model; + +import com.sencha.gxt.data.shared.event.StoreAddEvent; +import com.sencha.gxt.data.shared.event.StoreClearEvent; +import com.sencha.gxt.data.shared.event.StoreDataChangeEvent; +import com.sencha.gxt.data.shared.event.StoreFilterEvent; +import com.sencha.gxt.data.shared.event.StoreHandlers; +import com.sencha.gxt.data.shared.event.StoreRecordChangeEvent; +import com.sencha.gxt.data.shared.event.StoreRemoveEvent; +import com.sencha.gxt.data.shared.event.StoreSortEvent; +import com.sencha.gxt.data.shared.event.StoreUpdateEvent; + +public class BaseStoreHandlers<T> implements StoreHandlers<T> { + + @Override + public void onAdd(StoreAddEvent<T> event) { + onAnything(); + } + + @Override + public void onRemove(StoreRemoveEvent<T> event) { + onAnything(); + } + + @Override + public void onFilter(StoreFilterEvent<T> event) { + onAnything(); + } + + @Override + public void onClear(StoreClearEvent<T> event) { + onAnything(); + } + + @Override + public void onUpdate(StoreUpdateEvent<T> event) { + onAnything(); + } + + @Override + public void onDataChange(StoreDataChangeEvent<T> event) { + onAnything(); + } + + @Override + public void onRecordChange(StoreRecordChangeEvent<T> event) { + onAnything(); + } + + @Override + public void onSort(StoreSortEvent<T> event) { + onAnything(); + } + + public void onAnything() { + } + +} |