@Override protected void initContent(VerticalLayout layout) throws Exception { label = new Label(message); label.setContentMode(Label.CONTENT_XHTML); layout.addComponent(label); textField = new PasswordField(); textField.setValue(txtInput); textField.setWidth("100%"); textField.focus(); textField.addShortcutListener(new ShortcutListener("Confirm", ShortcutAction.KeyCode.ENTER, null) { private static final long serialVersionUID = 1L; @Override public void handleAction(Object sender, Object target) { confirm.doAction(PasswordInputDialog.this); } }); textField.setImmediate(true); layout.addComponent(textField); txtInput = null; }
m_form.getOldPasswordField().setImmediate(true); m_form.getPassword1Field().setImmediate(true); m_form.getPassword2Field().setImmediate(true);
addField("userName", userName); final PasswordField password = new PasswordField(passwordCaption); password.setImmediate(true); addField("password", password); Button submit = new Button(submitCaption);
m_passwordTextField.setImmediate(true); m_passwordTextField.addListener(new ValueChangeListener() { @Override
passwordField.setImmediate(true); passwordField.setWidth("100%");
m_passwordTextField.setImmediate(true); m_passwordTextField.setRequired(true); m_passwordTextField.addListener(changeListener);