com.xtremelabs.robolectric.shadows
Class ShadowEditText

java.lang.Object
  extended by com.xtremelabs.robolectric.shadows.ShadowView
      extended by com.xtremelabs.robolectric.shadows.ShadowTextView
          extended by com.xtremelabs.robolectric.shadows.ShadowEditText

@Implements(value=android.widget.EditText.class)
public class ShadowEditText
extends ShadowTextView

A shadow for EditText that provides support for listeners


Nested Class Summary
 
Nested classes/interfaces inherited from class com.xtremelabs.robolectric.shadows.ShadowTextView
ShadowTextView.CompoundDrawables
 
Field Summary
 
Fields inherited from class com.xtremelabs.robolectric.shadows.ShadowView
focusable, onKeyListener, realView, UNINITIALIZED_ATTRIBUTE
 
Constructor Summary
ShadowEditText()
           
 
Method Summary
 void addTextChangedListener(android.text.TextWatcher watcher)
           
 android.text.Editable getText()
           
 java.util.List<android.text.TextWatcher> getWatchers()
           
 void setText(java.lang.CharSequence text)
           
 void setText(int textResourceId)
           
 
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowTextView
equals, getCompoundDrawablePadding, getCompoundDrawables, getCompoundDrawablesImpl, getHint, getTextColorHexValue, getTextSize, getUrls, hashCode, innerText, isAutoLinkPhoneNumbers, length, onKeyDown, setAutoLinkMask, setCompoundDrawablePadding, setCompoundDrawables, setCompoundDrawablesWithIntrinsicBounds, setCompoundDrawablesWithIntrinsicBounds, setHint, setTextColor, setTextSize
 
Methods inherited from class com.xtremelabs.robolectric.shadows.ShadowView
__constructor__, __constructor__, clearFocus, clearWasInvalidated, dispatchTouchEvent, dump, dump, dumpFirstPart, dumpIndent, findViewById, getBackgroundResourceId, getBottom, getContext, getHeight, getId, getLayoutParams, getLeft, getMeasuredWidth, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getParent, getResources, getRight, getRootView, getTag, getTag, getTop, getVisibility, getWidth, hasFocus, inflate, invalidate, isClickable, isEnabled, isFocusable, isFocusableInTouchMode, isFocused, isSelected, layout, performClick, requestFocus, requestFocus, setBackgroundResource, setBottom, setClickable, setEnabled, setFocusable, setFocusableInTouchMode, setFocused, setId, setLayoutParams, setLeft, setOnClickListener, setOnFocusChangeListener, setOnKeyListener, setOnTouchListener, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setRight, setSelected, setTag, setTag, setTop, setViewFocus, setVisibility, wasInvalidated
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShadowEditText

public ShadowEditText()
Method Detail

setText

@Implementation
public void setText(java.lang.CharSequence text)
Overrides:
setText in class ShadowTextView

setText

@Implementation
public void setText(int textResourceId)
Overrides:
setText in class ShadowTextView

getText

@Implementation
public android.text.Editable getText()
Overrides:
getText in class ShadowTextView

addTextChangedListener

@Implementation
public void addTextChangedListener(android.text.TextWatcher watcher)

getWatchers

public java.util.List<android.text.TextWatcher> getWatchers()
Returns:
the list of currently registered watchers/listeners