TextFieldDisplayFormatpublic class FormatPassword extends java.lang.Object implements TextFieldDisplayFormat
| Constructor | Description |
|---|---|
FormatPassword() |
Create a new instance with the default character to hide the real text.
|
FormatPassword(char passwordChar) |
Create a new instance and set the character used to hide the password.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.lang.CharSequence |
getDisplaySequence(java.lang.CharSequence original,
int start,
int end) |
Get a part of the original text converted into the one that is supposed to be displayed.
|
char |
getPasswordChar() |
Get the character that is used to replace the real contents of the text.
|
public FormatPassword()
*.public FormatPassword(char passwordChar)
passwordChar - the character that is displayed instead of the real textpublic char getPasswordChar()
@Nonnull
public java.lang.CharSequence getDisplaySequence(@Nonnull
java.lang.CharSequence original,
int start,
int end)
TextFieldDisplayFormatgetDisplaySequence in interface TextFieldDisplayFormatoriginal - the original textstart - the index of the first character that should be convertedend - the index of the first character after the area that should be convertedCopyright © 2018. All rights reserved.