com.xtremelabs.robolectric.shadows
Class ShadowTextView
java.lang.Object
com.xtremelabs.robolectric.shadows.ShadowView
com.xtremelabs.robolectric.shadows.ShadowTextView
- Direct Known Subclasses:
- ShadowCompoundButton, ShadowEditText
@Implements(value=android.widget.TextView.class)
public class ShadowTextView
- extends ShadowView
Method Summary |
boolean |
equals(java.lang.Object o)
|
int |
getCompoundDrawablePadding()
|
android.graphics.drawable.Drawable[] |
getCompoundDrawables()
|
ShadowTextView.CompoundDrawables |
getCompoundDrawablesImpl()
|
java.lang.CharSequence |
getHint()
|
java.lang.CharSequence |
getText()
|
int |
getTextColorHexValue()
|
int |
getTextSize()
|
android.text.style.URLSpan[] |
getUrls()
|
int |
hashCode()
|
java.lang.String |
innerText()
|
boolean |
isAutoLinkPhoneNumbers()
|
int |
length()
|
boolean |
onKeyDown(int keyCode,
android.view.KeyEvent event)
|
void |
setAutoLinkMask(int mask)
|
void |
setCompoundDrawablePadding(int compoundDrawablePadding)
|
void |
setCompoundDrawables(android.graphics.drawable.Drawable left,
android.graphics.drawable.Drawable top,
android.graphics.drawable.Drawable right,
android.graphics.drawable.Drawable bottom)
|
void |
setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable left,
android.graphics.drawable.Drawable top,
android.graphics.drawable.Drawable right,
android.graphics.drawable.Drawable bottom)
|
void |
setCompoundDrawablesWithIntrinsicBounds(int left,
int top,
int right,
int bottom)
|
void |
setHint(int resId)
|
void |
setText(java.lang.CharSequence text)
|
void |
setText(int textResourceId)
|
void |
setTextColor(int color)
|
void |
setTextSize(float size)
|
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 |
ShadowTextView
public ShadowTextView()
setText
@Implementation
public void setText(java.lang.CharSequence text)
setText
@Implementation
public void setText(int textResourceId)
getText
@Implementation
public java.lang.CharSequence getText()
length
@Implementation
public int length()
setTextColor
@Implementation
public void setTextColor(int color)
setTextSize
@Implementation
public void setTextSize(float size)
setHint
@Implementation
public final void setHint(int resId)
getHint
@Implementation
public java.lang.CharSequence getHint()
getUrls
@Implementation
public android.text.style.URLSpan[] getUrls()
setAutoLinkMask
@Implementation
public final void setAutoLinkMask(int mask)
setCompoundDrawablesWithIntrinsicBounds
@Implementation
public void setCompoundDrawablesWithIntrinsicBounds(int left,
int top,
int right,
int bottom)
setCompoundDrawablesWithIntrinsicBounds
@Implementation
public void setCompoundDrawablesWithIntrinsicBounds(android.graphics.drawable.Drawable left,
android.graphics.drawable.Drawable top,
android.graphics.drawable.Drawable right,
android.graphics.drawable.Drawable bottom)
setCompoundDrawables
@Implementation
public void setCompoundDrawables(android.graphics.drawable.Drawable left,
android.graphics.drawable.Drawable top,
android.graphics.drawable.Drawable right,
android.graphics.drawable.Drawable bottom)
getCompoundDrawables
@Implementation
public android.graphics.drawable.Drawable[] getCompoundDrawables()
setCompoundDrawablePadding
@Implementation
public void setCompoundDrawablePadding(int compoundDrawablePadding)
getCompoundDrawablePadding
@Implementation
public int getCompoundDrawablePadding()
onKeyDown
@Implementation
public boolean onKeyDown(int keyCode,
android.view.KeyEvent event)
innerText
public java.lang.String innerText()
- Overrides:
innerText
in class ShadowView
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
getCompoundDrawablesImpl
public ShadowTextView.CompoundDrawables getCompoundDrawablesImpl()
getTextColorHexValue
public int getTextColorHexValue()
getTextSize
public int getTextSize()
isAutoLinkPhoneNumbers
public boolean isAutoLinkPhoneNumbers()