public class FormatPassword extends Object implements TextFieldDisplayFormat
| Constructor and 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 and Description |
|---|---|
CharSequence |
getDisplaySequence(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()
public CharSequence getDisplaySequence(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 © 2013. All Rights Reserved.