public class TextViewBinding extends ViewBinding<android.widget.TextView> implements android.text.TextWatcher
ViewBinding.ClickListenerclickListener, errorMessage, view| Modifier | Constructor and Description |
|---|---|
protected |
TextViewBinding() |
|
TextViewBinding(android.widget.TextView view) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTextChanged(android.text.Editable editable) |
protected void |
attachListeners(android.widget.TextView view)
Invoked to attach the listeners to the given
View. |
void |
beforeTextChanged(java.lang.CharSequence sequence,
int start,
int count,
int after) |
boolean |
canBind(android.view.View view)
Tests if the given
View can be bound to this ViewBinding. |
protected void |
detachListeners(android.widget.TextView view)
Invoked to detach the listeners from the given
View. |
protected void |
editableCommitted(android.text.Editable editable)
This method should be overridden for delegating
TextWatcher.afterTextChanged(Editable)
events with Editable parameter. |
java.lang.String |
getText()
Gets the text of the bound
TextView. |
protected void |
invalidTextChanged(java.lang.CharSequence sequence,
int start,
int before,
int count)
This method should be overridden for delegating
TextWatcher.onTextChanged(CharSequence, int, int, int) events. |
protected void |
invalidTextCommitted(java.lang.String text)
This method should be overridden for delegating
TextWatcher.afterTextChanged(Editable)
events with String parameter. |
protected boolean |
isValidValue(java.lang.String text)
Tests if the given text represents a valid input value for the assigned
View. |
void |
onTextChanged(java.lang.CharSequence sequence,
int start,
int before,
int count) |
void |
setText(java.lang.String text)
Set text of the bound
TextView. |
protected java.lang.Object |
setValue(java.lang.String text)
Sets the given value via this
TextViewBinding to target. |
protected void |
textChanged(java.lang.CharSequence sequence,
int start,
int before,
int count)
This method should be overridden for delegating
TextWatcher.onTextChanged(CharSequence, int, int, int) events. |
protected void |
textChanging(java.lang.String text,
int start,
int count,
int after)
This method should be overridden for delegating
TextWatcher.beforeTextChanged(CharSequence, int, int, int) events. |
protected void |
textCommitted(java.lang.String text)
This method should be overridden for delegating
TextWatcher.afterTextChanged(Editable)
events with String parameter. |
clearErrorMessage, clicked, getClickListener, getView, getViewTag, getViewTag, getViewVisibility, isViewEnabled, onClick, requestFocus, setClickListener, setErrorMessage, setErrorMessage, setView, setViewEnabled, setViewTag, setViewTag, setViewVisibilitypublic TextViewBinding(android.widget.TextView view)
protected TextViewBinding()
public java.lang.String getText()
TextView.String.public void setText(java.lang.String text)
TextView.text - A String containing the text.public final boolean canBind(android.view.View view)
ViewBindingView can be bound to this ViewBinding.canBind in class ViewBinding<android.widget.TextView>view - A View.boolean value.protected final void attachListeners(android.widget.TextView view)
ViewBindingView. Methods overriding this method
has to call super.attachListener(view).attachListeners in class ViewBinding<android.widget.TextView>view - A View.protected final void detachListeners(android.widget.TextView view)
ViewBindingView. Methods overriding this method
has to call super.detachListeners(view).detachListeners in class ViewBinding<android.widget.TextView>view - A View.public final void beforeTextChanged(java.lang.CharSequence sequence,
int start,
int count,
int after)
beforeTextChanged in interface android.text.TextWatcherpublic final void onTextChanged(java.lang.CharSequence sequence,
int start,
int before,
int count)
onTextChanged in interface android.text.TextWatcherpublic final void afterTextChanged(android.text.Editable editable)
afterTextChanged in interface android.text.TextWatcherprotected void editableCommitted(android.text.Editable editable)
TextWatcher.afterTextChanged(Editable)
events with Editable parameter.protected void textCommitted(java.lang.String text)
TextWatcher.afterTextChanged(Editable)
events with String parameter.protected void invalidTextCommitted(java.lang.String text)
TextWatcher.afterTextChanged(Editable)
events with String parameter.protected void textChanging(java.lang.String text,
int start,
int count,
int after)
TextWatcher.beforeTextChanged(CharSequence, int, int, int) events.protected void textChanged(java.lang.CharSequence sequence,
int start,
int before,
int count)
TextWatcher.onTextChanged(CharSequence, int, int, int) events.protected void invalidTextChanged(java.lang.CharSequence sequence,
int start,
int before,
int count)
TextWatcher.onTextChanged(CharSequence, int, int, int) events.protected java.lang.Object setValue(java.lang.String text)
TextViewBinding to target.text - A String representing the value.Object. By default this value is null.protected boolean isValidValue(java.lang.String text)
View.text - The input value given as a String.boolean value.