public class CompositeTextWatcher
extends java.lang.Object
implements android.text.TextWatcher
| Constructor and Description |
|---|
CompositeTextWatcher(java.util.List<android.text.TextWatcher> watchers)
Create a new text watcher based on one or more text watchers.
|
CompositeTextWatcher(android.text.TextWatcher... watchers)
Create a new text watcher based on one or more text watchers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addWatcher(int id,
android.text.TextWatcher watcher)
Add a text watcher with the specifying id
|
void |
addWatcher(int id,
android.text.TextWatcher watcher,
boolean enabled)
Add a
TextWatcher with a specified Id and whether or not it is enabled by default |
int |
addWatcher(android.text.TextWatcher watcher)
Add a
TextWatcher to this composite view |
void |
afterTextChanged(android.text.Editable s) |
void |
beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after)
TextWatcher Methods
|
void |
enableWatcher(int id,
boolean enabled)
Enable or Disable a text watcher for the given Id
|
void |
enableWatcher(android.text.TextWatcher watcher,
boolean enabled)
Enable or Disable a text watcher by reference
|
void |
onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count) |
public CompositeTextWatcher(android.text.TextWatcher... watchers)
watchers - one or more text watchers to compositepublic CompositeTextWatcher(java.util.List<android.text.TextWatcher> watchers)
watchers - one or more text watchers to compositepublic int addWatcher(android.text.TextWatcher watcher)
TextWatcher to this composite viewwatcher - the TextWatcher to addpublic void addWatcher(int id,
android.text.TextWatcher watcher)
id - the id of the TextWatcher to addwatcher - the TextWatcher to addpublic void addWatcher(int id,
android.text.TextWatcher watcher,
boolean enabled)
TextWatcher with a specified Id and whether or not it is enabled by defaultid - the id of the TextWatcher to addwatcher - the TextWatcher to addenabled - whether or not it is enabled by defaultpublic void enableWatcher(int id,
boolean enabled)
id - the id of the TextWatcher to addenabled - whether or not to enable or disablepublic void enableWatcher(android.text.TextWatcher watcher,
boolean enabled)
watcher - The TextWatcher to enable or disableenabled - whether or not to enable or disablepublic void beforeTextChanged(java.lang.CharSequence s,
int start,
int count,
int after)
beforeTextChanged in interface android.text.TextWatcherpublic void onTextChanged(java.lang.CharSequence s,
int start,
int before,
int count)
onTextChanged in interface android.text.TextWatcherpublic void afterTextChanged(android.text.Editable s)
afterTextChanged in interface android.text.TextWatcher