summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/EditText.java
diff options
context:
space:
mode:
authorPhilip Milne <pmilne@dhcp-172-18-103-220.mtv.corp.google.com>2012-09-17 14:25:07 -0700
committerPhilip Milne <pmilne@google.com>2012-09-17 14:31:03 -0700
commit8e1c2b6b71c4e3649dcf59a0b5a33e3e3fe1051a (patch)
tree8c5dccad3eb7a986d62584dea491d7f31df84394 /core/java/android/widget/EditText.java
parent18e876806718e28edaa3cd9bb0262a9b400bc82b (diff)
downloadframeworks_base-8e1c2b6b71c4e3649dcf59a0b5a33e3e3fe1051a.zip
frameworks_base-8e1c2b6b71c4e3649dcf59a0b5a33e3e3fe1051a.tar.gz
frameworks_base-8e1c2b6b71c4e3649dcf59a0b5a33e3e3fe1051a.tar.bz2
Revert "Simple MVC based binding mechanism for android controls." Do not merge.
This reverts commit 989709a973448980f36dacd587b0a58f89ffa11e. Change-Id: Ifc2c511b0d99d4a3a164b4a2281ca140015b366d
Diffstat (limited to 'core/java/android/widget/EditText.java')
-rw-r--r--core/java/android/widget/EditText.java23
1 files changed, 1 insertions, 22 deletions
diff --git a/core/java/android/widget/EditText.java b/core/java/android/widget/EditText.java
index ec81214..57e51c2 100644
--- a/core/java/android/widget/EditText.java
+++ b/core/java/android/widget/EditText.java
@@ -17,7 +17,6 @@
package android.widget;
import android.content.Context;
-import android.graphics.Rect;
import android.text.Editable;
import android.text.Selection;
import android.text.Spannable;
@@ -25,7 +24,6 @@ import android.text.TextUtils;
import android.text.method.ArrowKeyMovementMethod;
import android.text.method.MovementMethod;
import android.util.AttributeSet;
-import android.util.ValueModel;
import android.view.accessibility.AccessibilityEvent;
import android.view.accessibility.AccessibilityNodeInfo;
@@ -49,9 +47,7 @@ import android.view.accessibility.AccessibilityNodeInfo;
* {@link android.R.styleable#TextView TextView Attributes},
* {@link android.R.styleable#View View Attributes}
*/
-public class EditText extends TextView implements ValueEditor<CharSequence> {
- private ValueModel<CharSequence> mValueModel = ValueModel.EMPTY;
-
+public class EditText extends TextView {
public EditText(Context context) {
this(context, null);
}
@@ -132,21 +128,4 @@ public class EditText extends TextView implements ValueEditor<CharSequence> {
super.onInitializeAccessibilityNodeInfo(info);
info.setClassName(EditText.class.getName());
}
-
- @Override
- public ValueModel<CharSequence> getValueModel() {
- return mValueModel;
- }
-
- @Override
- public void setValueModel(ValueModel<CharSequence> valueModel) {
- mValueModel = valueModel;
- setText(mValueModel.get());
- }
-
- @Override
- void sendAfterTextChanged(Editable text) {
- super.sendAfterTextChanged(text);
- mValueModel.set(text);
- }
}