@Override
 public void onTouchStart(TouchStartEvent event) {
   MessageDialog.confirm(
       "Abmelden",
       "Wollen Sie sich wirklich abmelden?",
       "Ja",
       "Nein",
       new SignOutConfirmCallback());
   event.stopPropagation();
   event.preventDefault();
 }
 @Override
 public void onTouchStart(TouchStartEvent event) {
   String user = ((OptionView) view).getTxtEditUser().getText();
   MessageDialog.confirm(
       "Löschen",
       "Wollen Sie diesen User wirklich löschen?",
       "Ja",
       "Nein",
       new DeleteConfirmCallback(user));
   event.stopPropagation();
   event.preventDefault();
 }
    @Override
    public void onTouchStart(TouchStartEvent event) {
      String password = ((OptionView) view).getPwtxtEditPassword().getText();
      String user = ((OptionView) view).getTxtEditUser().getText();
      ListBox listRole = ((OptionView) view).getListRole();
      String selectedValue = listRole.getSelectedValue();
      Role role = Role.valueOf(selectedValue);
      appController.getUIMananger().lock();

      remoteCaller.createUser(user, password, role, new CreateUserCallback());
      event.stopPropagation();
      event.preventDefault();
    }
 @Override
 public void addHandler() {
   ((OptionView) view)
       .getBtnSignOut()
       .addDomHandler(new SignOutTouchHandler(), TouchStartEvent.getType());
   ((OptionView) view)
       .getBtnCreateUser()
       .addDomHandler(new CreateUserTouchHandler(), TouchStartEvent.getType());
   ((OptionView) view)
       .getBtnRemoveUser()
       .addDomHandler(new RemoveUserTouchHandler(), TouchStartEvent.getType());
   ((OptionView) view)
       .getBtnEditUser()
       .addDomHandler(new EditUserTouchHandler(), TouchStartEvent.getType());
 }
    @Override
    public void onTouchStart(TouchStartEvent event) {

      String password = ((OptionView) view).getPwtxtPassword().getText();
      String passwordRepeat = ((OptionView) view).getPwtxtPasswordRepeat().getText();
      ((OptionView) view).getPwtxtPassword().setText("");
      ((OptionView) view).getPwtxtPasswordRepeat().setText("");
      if (passwordRepeat.equals(password)) {
        MessageDialog.confirm(
            "Ändern",
            "Wollen Sie ihr Passwort wirklich ändern?",
            "Ja",
            "Nein",
            new ChangeConfirmCallback(password));
      } else {
        MessageDialog.alert(
            "Ändern",
            "Die beiden Passwörter stimmen nicht überein. Bitte versuchen Sie es erneut.",
            "Ok",
            null);
      }
      event.stopPropagation();
      event.preventDefault();
    }
예제 #6
0
 public HandlerRegistration addTouchStartHandler(TouchStartHandler handler) {
   return addDomHandler(handler, TouchStartEvent.getType());
 }
예제 #7
0
 private void addDomHandlers(Widget w) {
   w.addDomHandler(this, MouseDownEvent.getType());
   w.addDomHandler(this, MouseUpEvent.getType());
   w.addDomHandler(this, TouchStartEvent.getType());
   w.addDomHandler(this, TouchEndEvent.getType());
 }