Package org.robolectric.shadows
Class ShadowTextView
- java.lang.Object
-
- org.robolectric.shadows.ShadowView
-
- org.robolectric.shadows.ShadowTextView
-
- Direct Known Subclasses:
ShadowCompoundButton
@Implements(android.widget.TextView.class) public class ShadowTextView extends ShadowView
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
-
Field Summary
Fields Modifier and Type Field Description protected int
selectionEnd
protected int
selectionStart
-
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
-
Constructor Summary
Constructors Constructor Description ShadowTextView()
-
Method Summary
-
Methods inherited from class org.robolectric.shadows.ShadowView
__constructor__, __constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearAnimation, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dump, dumpAttribute, dumpFirstPart, dumpIndent, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getLocationOnScreen, getOnAttachStateChangeListeners, getOnClickListener, getOnCreateContextMenuListener, getOnLayoutChangeListeners, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getSourceLayoutResId, getWindowDisplayFrame, getWindowId, getWindowVisibleDisplayFrame, initialAwakenScrollBars, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, mapRectFromViewToScreenCoords, onLayout, onLayoutWasCalled, onTouchEvent, performClick, performHapticFeedback, performLongClick, post, postDelayed, postInvalidateDelayed, removeCallbacks, removeGlobalPerformClickListener, removeGlobalPerformLongClickListener, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestLayout, reset, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated
-
-
-
-
Method Detail
-
setTextAppearance
@Implementation protected void setTextAppearance(Context context, int resid)
-
onKeyDown
@Implementation protected boolean onKeyDown(int keyCode, KeyEvent event)
-
onKeyUp
@Implementation protected boolean onKeyUp(int keyCode, KeyEvent event)
-
getPreviousKeyCode
public int getPreviousKeyCode(int index)
-
getPreviousKeyEvent
public KeyEvent getPreviousKeyEvent(int index)
-
innerText
public String innerText()
Returns the text string of thisTextView
. Robolectric extension.- Overrides:
innerText
in classShadowView
- Returns:
- String representation of this view.
-
getTextAppearanceId
public int getTextAppearanceId()
-
addTextChangedListener
@Implementation protected void addTextChangedListener(TextWatcher watcher)
-
removeTextChangedListener
@Implementation protected void removeTextChangedListener(TextWatcher watcher)
-
getWatchers
public List<TextWatcher> getWatchers()
- Returns:
- the list of currently registered watchers/listeners
-
getTextServicesLocale
@HiddenApi @Implementation public Locale getTextServicesLocale()
-
dumpAttributes
protected void dumpAttributes(PrintStream out)
- Overrides:
dumpAttributes
in classShadowView
-
getPaintFlags
@Implementation protected int getPaintFlags()
-
setPaintFlags
@Implementation protected void setPaintFlags(int paintFlags)
-
setOnEditorActionListener
@Implementation protected void setOnEditorActionListener(TextView.OnEditorActionListener l)
-
getOnEditorActionListener
public TextView.OnEditorActionListener getOnEditorActionListener()
-
setCompoundDrawablesWithIntrinsicBounds
@Implementation protected void setCompoundDrawablesWithIntrinsicBounds(int left, int top, int right, int bottom)
-
getCompoundDrawablesWithIntrinsicBoundsLeft
public int getCompoundDrawablesWithIntrinsicBoundsLeft()
-
getCompoundDrawablesWithIntrinsicBoundsTop
public int getCompoundDrawablesWithIntrinsicBoundsTop()
-
getCompoundDrawablesWithIntrinsicBoundsRight
public int getCompoundDrawablesWithIntrinsicBoundsRight()
-
getCompoundDrawablesWithIntrinsicBoundsBottom
public int getCompoundDrawablesWithIntrinsicBoundsBottom()
-
-