/** * update layout */ public void update(){ ResetPasswordLayout.this.form.validate(); }
@Override public boolean validate() { return dynamicForm.validate(); }
public void onClick(ClickEvent event) { if (LoginLayout.this.form.validate(false)) { login(); } } });
@Override public boolean validateTemplate() { return conditionForm.validate(false); }
public void update() { LoginLayout.this.form.validate(); }
public void onKeyPress(KeyPressEvent event) { if ( (event.getKeyName().equals("Enter")) && (LoginLayout.this.form.validate(false))) { login(); } } });
public void onKeyPress(KeyPressEvent event) { if ( (event.getKeyName().equals("Enter")) && (LoginLayout.this.form.validate(false))) { login(); } } });
public boolean validate() { if (!form.validate()) { SC.say(MESSAGES.formWarnNotvalid()); return false; } return true; }
@Override public boolean isValid() { // don't check first time, otherwise errors are immediately shown if (first) { first = !first; return false; } else { return form.validate() && featureForm.validate() && maxBoundsForm.validate(); } }
public boolean validate() { if (!form.validate()) { SC.say(MESSAGES.formWarnNotvalid()); return false; } return true; }
private void saved() { if (form.validate()) { hide(); if (callback != null) { HashMap<String, Object> map = new HashMap<String, Object>(); map.put("userApplication", userappName.getValueAsString()); map.put("public", publik.getValue()); map.put("name", blueprintName.getValueAsString()); callback.execute(map); } destroy(); } } }
public void onClick(ClickEvent event) { if (ResetPasswordLayout.this.form.validate()) { String name = ResetPasswordLayout.this.nameItem.getValue().toString(); String email = ResetPasswordLayout.this.emailItem.getValue().toString(); EventBus.getMainEventBus().fireEvent(new NewPasswordEvent(name, email)); } } });
@Override public boolean onSaveClick(ClickEvent event) { if (form.validate()) { UserDto userDto = validateDriver(); if (userDto != null) { handler.onSave(userDto, password.getValueAsString()); } } setNewUserSettings(false); return true; }
protected void register() { form.validate(true); if (RegisterLayout.this.form.validate() && (Boolean) RegisterLayout.this.acceptBox.getValue()) { String userName = (String) RegisterLayout.this.userNameItem.getValue(); String name = (String) RegisterLayout.this.nameItem.getValue(); String password = DataControlsSes.createMD5((String) RegisterLayout.this.passwordItem.getValue()); String eMail = (String) RegisterLayout.this.emailItem.getValue(); boolean activated = false; if (name == null || name.equals("")) { name = ""; } // create user without parameterId and register UserDTO u = new UserDTO(userName, name, password, eMail, NOT_REGISTERED_USER, activated, new Date()); EventBus.getMainEventBus().fireEvent(new RegisterUserEvent(u)); } else if (RegisterLayout.this.form.validate() && !(Boolean) RegisterLayout.this.acceptBox.getValue()) { SC.say(i18n.acceptTermsOfUseInfo()); } }
private void saved() { if (form.validate()) { hide(); if (callback != null) { callback.execute(blueprints.getValueAsString()); } destroy(); } } }
public void onClick(ClickEvent event) { if (form.validate()) { addWindow.hide(); fav.setName(nameItem.getValueAsString()); fav.setShared(sharedItem.getValueAsBoolean()); FavouritesCommService.saveSearchFavourite(fav, new DataCallback<SearchFavourite>() { public void execute(SearchFavourite result) { fireAddEvent(new FavouriteEvent(null, result, FavouritesController.this)); addWindow.destroy(); } }); } } });
public void onClick(ClickEvent event) { if (form.validate(false)) { String userName = (String) userNameItem.getValue(); String name = (String) nameItem.getValue(); // String password = (String) passwordItem.getValue(); String email = (String) emailItem.getValue(); UserRole role; String roleString = (String) roleItem.getValue(); if (roleString.equals(UserRole.ADMIN.toString())) { role = UserRole.ADMIN; } else { role = UserRole.USER; } // create new User UserDTO user = new UserDTO(Integer.valueOf(EditUserWindow.record.getId()), userName, name, null, email, role, new Date()); user.setActivated(true); EventBus.getMainEventBus().fireEvent(new UpdateUserEvent(currentSession(), user)); EditUserWindow.window.destroy(); } } });