Package org.robolectric.shadows
Class ShadowTextView
java.lang.Object
org.robolectric.shadows.ShadowView
org.robolectric.shadows.ShadowTextView
- Direct Known Subclasses:
ShadowCompoundButton
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
Field Summary
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addTextChangedListener
(TextWatcher watcher) protected void
int
int
int
int
int
getPreviousKeyCode
(int index) getPreviousKeyEvent
(int index) int
Returns the text string of thisTextView
.protected boolean
protected boolean
protected void
removeTextChangedListener
(TextWatcher watcher) protected void
setCompoundDrawablesWithIntrinsicBounds
(int left, int top, int right, int bottom) protected void
protected void
setTextAppearance
(Context context, int resid) Methods inherited from class org.robolectric.shadows.ShadowView
__constructor__, __constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearAnimation, clearAnimations, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dump, dumpAttribute, dumpFirstPart, dumpIndent, getAnimations, 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, useRealGraphics, visualize, wasInvalidated
-
Field Details
-
selectionStart
protected int selectionStart -
selectionEnd
protected int selectionEnd
-
-
Constructor Details
-
ShadowTextView
public ShadowTextView()
-
-
Method Details
-
setTextAppearance
-
onKeyDown
-
onKeyUp
-
getPreviousKeyCode
public int getPreviousKeyCode(int index) -
getPreviousKeyEvent
-
innerText
Returns the text string of thisTextView
. Robolectric extension.- Overrides:
innerText
in classShadowView
- Returns:
- String representation of this view.
-
getTextAppearanceId
public int getTextAppearanceId() -
addTextChangedListener
-
removeTextChangedListener
-
getWatchers
- Returns:
- the list of currently registered watchers/listeners
-
getTextServicesLocale
-
dumpAttributes
- Overrides:
dumpAttributes
in classShadowView
-
setOnEditorActionListener
-
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()
-