From 137c89bc9a870c4018f4c000494c89af9ceea67a Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 9 Jan 2013 23:34:39 +1300 Subject: Finished archive panel --- .../web/client/model/BaseStoreHandlers.java | 58 ++++++++++++++++++++++ .../traccar/web/client/model/DeviceProperties.java | 5 ++ 2 files changed, 63 insertions(+) create mode 100644 src/org/traccar/web/client/model/BaseStoreHandlers.java (limited to 'src/org/traccar/web/client/model') 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 implements StoreHandlers { + + @Override + public void onAdd(StoreAddEvent event) { + onAnything(); + } + + @Override + public void onRemove(StoreRemoveEvent event) { + onAnything(); + } + + @Override + public void onFilter(StoreFilterEvent event) { + onAnything(); + } + + @Override + public void onClear(StoreClearEvent event) { + onAnything(); + } + + @Override + public void onUpdate(StoreUpdateEvent event) { + onAnything(); + } + + @Override + public void onDataChange(StoreDataChangeEvent event) { + onAnything(); + } + + @Override + public void onRecordChange(StoreRecordChangeEvent event) { + onAnything(); + } + + @Override + public void onSort(StoreSortEvent event) { + onAnything(); + } + + public void onAnything() { + } + +} diff --git a/src/org/traccar/web/client/model/DeviceProperties.java b/src/org/traccar/web/client/model/DeviceProperties.java index 2c56ff6d..2ba4d47f 100644 --- a/src/org/traccar/web/client/model/DeviceProperties.java +++ b/src/org/traccar/web/client/model/DeviceProperties.java @@ -2,7 +2,9 @@ package org.traccar.web.client.model; import org.traccar.web.shared.model.Device; +import com.google.gwt.editor.client.Editor.Path; import com.sencha.gxt.core.client.ValueProvider; +import com.sencha.gxt.data.shared.LabelProvider; import com.sencha.gxt.data.shared.ModelKeyProvider; import com.sencha.gxt.data.shared.PropertyAccess; @@ -14,4 +16,7 @@ public interface DeviceProperties extends PropertyAccess { ValueProvider name(); + @Path("name") + LabelProvider label(); + } -- cgit v1.2.3