diff options
Diffstat (limited to 'src/org/traccar/web/client/controller')
-rw-r--r-- | src/org/traccar/web/client/controller/DeviceController.java | 7 | ||||
-rw-r--r-- | src/org/traccar/web/client/controller/SettingsController.java | 31 |
2 files changed, 34 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())) { diff --git a/src/org/traccar/web/client/controller/SettingsController.java b/src/org/traccar/web/client/controller/SettingsController.java new file mode 100644 index 00000000..b98d1bc8 --- /dev/null +++ b/src/org/traccar/web/client/controller/SettingsController.java @@ -0,0 +1,31 @@ +package org.traccar.web.client.controller; + +import org.traccar.web.client.view.DeviceView; + +public class SettingsController implements DeviceView.SettingsHandler { + + @Override + public void onAccountSelected() { + // TODO Auto-generated method stub + + } + + @Override + public void onPreferencesSelected() { + // TODO Auto-generated method stub + + } + + @Override + public void onUsersSelected() { + // TODO Auto-generated method stub + + } + + @Override + public void onGlobalSelected() { + // TODO Auto-generated method stub + + } + +} |