public final class BoletoBancarioTextWatcher
extends java.lang.Object
implements android.text.TextWatcher
TextWatcher responsável por formatar e validar um EditText para boletos.
Para usar este componente basta criar uma instância e chamar
TextView.addTextChangedListener(TextWatcher).| Constructor and Description |
|---|
BoletoBancarioTextWatcher(EventoDeValidacao callbackErros)
TODO Javadoc pendente
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterTextChanged(android.text.Editable s) |
void |
beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after) |
Validador.ResultadoParcial |
getResultadoParcial() |
void |
onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count) |
public BoletoBancarioTextWatcher(EventoDeValidacao callbackErros)
callbackErros - a descreverpublic final void beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after)
beforeTextChanged in interface android.text.TextWatcherpublic final void onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count)
onTextChanged in interface android.text.TextWatcherpublic final void afterTextChanged(android.text.Editable s)
afterTextChanged in interface android.text.TextWatcherpublic Validador.ResultadoParcial getResultadoParcial()