/** * Constructs a PasswordField with given caption. * * @param caption * the caption for the field */ public PasswordField(String caption) { this(); setCaption(caption); }
/** * Constructs a PasswordField with given value and caption. * * @param caption * the caption for the field * @param value * the value for the field, not {@code null} */ public PasswordField(String caption, String value) { setValue(value); setCaption(caption); }
@Override public Field<?> createField(Item item, Object propertyId, Component uiContext) { if (MetaConfigModel.PASSWORD.equals(propertyId)) { PasswordField field = new PasswordField(); field.setNullRepresentation(""); field.setCaption(createCaptionByPropertyId(propertyId)); return field; } return super.createField(item, propertyId, uiContext); } });
m_passwordTextField.setCaption("Password"); m_passwordTextField.setImmediate(true); m_passwordTextField.addListener(new ValueChangeListener() {
passwordField.setCaption("Password"); passwordField.setNullRepresentation(""); passwordField.setDescription("Password for JMX-RMI Authentication");
m_passwordTextField.setCaption("Password"); m_passwordTextField.setImmediate(true); m_passwordTextField.setRequired(true);