Example #1
0
 private void handleMapClick(String id) {
   clientFactory.getGA().trackEvent("Map", "Select Room", id);
   CalendarListResource c = clientFactory.getModelDao().getRoomByD3id(id);
   if (c == null) {
     Dialogs.alert("Sorry", id + " is not a BrightRoom.", null);
     return;
   }
   clientFactory.getPlaceController().goTo(new RoomPlace(c.getId()));
 }
 @UiHandler("nav")
 protected void onNavTaped(TapEvent event) {
   List<OptionsDialogOption> options = new ArrayList<OptionsDialogOption>();
   options.add(new OptionsDialogOption("Accueil", ButtonType.NORMAL));
   options.add(new OptionsDialogOption("Recherche", ButtonType.NORMAL));
   options.add(new OptionsDialogOption("Revenir", ButtonType.NORMAL));
   options.add(new OptionsDialogOption("Cancel", ButtonType.NORMAL));
   Dialogs.options(
       options,
       new Dialogs.OptionCallback() {
         @Override
         public void onOptionSelected(int index) {
           if (index == 1) {
             presenter.goTo(new HomePlace());
           } else if (index == 2) {
             presenter.goTo(new SearchPlace());
           } else if (index == 3) {
             History.back();
           }
         }
       });
 }