@Override public void onChanged(ChangedEvent event) { setFieldEnable((String)event.getValue(), (Boolean)propMultiValue.getValue()); } });
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(); } } }
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()); } }
property.setName(propName.getValue().toString()); property.setType(type.getTypeNum()); if (!(Boolean)propMultiValue.getValue()) { if (type == PropertyDataTypes.BOOLEAN) { property.setBooleanValue((Boolean)propBooleanValue.getValue()); } else if (type == PropertyDataTypes.DATE) { property.setDateValue(propDateValue.getValueAsDate());
propName.focusInItem(); if (prop != null) setFieldsFromProperty(prop); setFieldEnable((String)propType.getValue(), (Boolean)propMultiValue.getValue()); return editPropertyWindow;