diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 13:24:07 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-02-17 13:24:07 +1300 |
commit | 9f80fe9b90d9ddb1132c139072cfe3bac5a42491 (patch) | |
tree | fd8234a8cc7d7b5a7174dad6fe4c27c4017c0182 /src/org/traccar/web/client/controller/DeviceController.java | |
parent | 29b57a52c6a66075261d7e6d4797fa1bcc7c8cb8 (diff) | |
download | trackermap-web-9f80fe9b90d9ddb1132c139072cfe3bac5a42491.tar.gz trackermap-web-9f80fe9b90d9ddb1132c139072cfe3bac5a42491.tar.bz2 trackermap-web-9f80fe9b90d9ddb1132c139072cfe3bac5a42491.zip |
Added settings controller
Diffstat (limited to 'src/org/traccar/web/client/controller/DeviceController.java')
-rw-r--r-- | src/org/traccar/web/client/controller/DeviceController.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/org/traccar/web/client/controller/DeviceController.java b/src/org/traccar/web/client/controller/DeviceController.java index 75aa76fa..94c81ed3 100644 --- a/src/org/traccar/web/client/controller/DeviceController.java +++ b/src/org/traccar/web/client/controller/DeviceController.java @@ -30,7 +30,6 @@ import com.sencha.gxt.widget.core.client.ContentPanel; import com.sencha.gxt.widget.core.client.Dialog.PredefinedButton; import com.sencha.gxt.widget.core.client.box.ConfirmMessageBox; import com.sencha.gxt.widget.core.client.event.HideEvent; -import com.sencha.gxt.widget.core.client.event.HideEvent.HideHandler; public class DeviceController implements ContentController, DeviceView.DeviceHandler { @@ -44,11 +43,11 @@ public class DeviceController implements ContentController, DeviceView.DeviceHan private DeviceView deviceView; - public DeviceController(DeviceHandler deviceHandler) { + public DeviceController(DeviceHandler deviceHandler, DeviceView.SettingsHandler settingsHandler) { this.deviceHandler = deviceHandler; DeviceProperties deviceProperties = GWT.create(DeviceProperties.class); deviceStore = new ListStore<Device>(deviceProperties.id()); - deviceView = new DeviceView(this, deviceStore); + deviceView = new DeviceView(this, settingsHandler, deviceStore); } public ListStore<Device> getDeviceStore() { @@ -108,7 +107,7 @@ public class DeviceController implements ContentController, DeviceView.DeviceHan @Override public void onRemove(final Device device) { final ConfirmMessageBox dialog = new ConfirmMessageBox("Confirm", "Are you sure you want remove device?"); - dialog.addHideHandler(new HideHandler() { + dialog.addHideHandler(new HideEvent.HideHandler() { @Override public void onHide(HideEvent event) { if (dialog.getHideButton() == dialog.getButtonById(PredefinedButton.YES.name())) { |