Directory

← Back

PasswordFieldExtension

Extension of the PasswordField

Author

Rating

Popularity

<100

The PasswordField component in Vaadin is extended by the PasswordFieldExtension component. The password strength near the component is visible as a password strength resource and a password strength text.

Sample code

PasswordFieldExtension passwordFieldExtension = new PasswordFieldExtension("Password field caption");

passwordFieldExtension.setMinimumRequirement(true); // default false; first switch on then change text 
passwordFieldExtension.setMinimumRequirementCaption("Minimum requirement"); 
// Minimum requirement is 8 letters, 1 upper case, 1 lower case, 1 digit and 1 special char. 
passwordFieldExtension.setMinimumRequirementText("8 letters<br>1 upper case<br>1 lower case<br>1 digit<br>1 special char");

passwordFieldExtension.setPasswordStrengthText(true); // default true 
passwordFieldExtension.setPasswordWeakText("weak"); 
passwordFieldExtension.setPasswordMiddleText("middle"); 
passwordFieldExtension.setPasswordStrongText("strong"); 
passwordFieldExtension.setPasswordStrongestText("strongest");
 
passwordFieldExtension.setPasswordStrengthResource(true); //default true 
passwordFieldExtension.setPasswordWeakResource(new ThemeResource("images/weak.png")); 
passwordFieldExtension.setPasswordMiddleResource(new ThemeResource("images/middle.png")); 
passwordFieldExtension.setPasswordStrongResource(new ThemeResource("images/strong.png")); 
passwordFieldExtension.setPasswordStrongestResource(new ThemeResource("images/strongest.png")); 

passwordFieldExtension.setProgressBar(true); // default false

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Released
2017-03-03
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.7+
Browser
Firefox

PasswordFieldExtension - Vaadin Add-on Directory

Extension of the PasswordField PasswordFieldExtension - Vaadin Add-on Directory
The PasswordField component in Vaadin is extended by the PasswordFieldExtension component. The password strength near the component is visible as a password strength resource and a password strength text.
Online