Package org.robolectric.shadows
Class ShadowTabHost
- java.lang.Object
-
- org.robolectric.shadows.ShadowView
-
- org.robolectric.shadows.ShadowViewGroup
-
- org.robolectric.shadows.ShadowTabHost
-
@Implements(android.widget.TabHost.class) public class ShadowTabHost extends ShadowViewGroup
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ShadowTabHost.ShadowTabSpec
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper
-
-
Field Summary
-
Fields inherited from class org.robolectric.shadows.ShadowViewGroup
realViewGroup
-
Fields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector
-
-
Constructor Summary
Constructors Constructor Description ShadowTabHost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addTab(TabHost.TabSpec tabSpec)
protected int
getCurrentTab()
TabHost.TabSpec
getCurrentTabSpec()
protected String
getCurrentTabTag()
protected View
getCurrentView()
TabHost.TabSpec
getSpecByTag(String tag)
protected TabWidget
getTabWidget()
protected TabHost.TabSpec
newTabSpec(String tag)
protected void
setCurrentTab(int index)
protected void
setCurrentTabByTag(String tag)
protected void
setOnTabChangedListener(TabHost.OnTabChangeListener listener)
-
Methods inherited from class org.robolectric.shadows.ShadowViewGroup
addView, dump, getDisallowInterceptTouchEvent, getInterceptedTouchEvent, innerText, onInterceptTouchEvent, removedChild, requestDisallowInterceptTouchEvent
-
Methods inherited from class org.robolectric.shadows.ShadowView
__constructor__, __constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearAnimation, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, 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
-
newTabSpec
@Implementation protected TabHost.TabSpec newTabSpec(String tag)
-
addTab
@Implementation protected void addTab(TabHost.TabSpec tabSpec)
-
setCurrentTab
@Implementation protected void setCurrentTab(int index)
-
setCurrentTabByTag
@Implementation protected void setCurrentTabByTag(String tag)
-
getCurrentTab
@Implementation protected int getCurrentTab()
-
getCurrentTabSpec
public TabHost.TabSpec getCurrentTabSpec()
-
getCurrentTabTag
@Implementation protected String getCurrentTabTag()
-
setOnTabChangedListener
@Implementation protected void setOnTabChangedListener(TabHost.OnTabChangeListener listener)
-
getCurrentView
@Implementation protected View getCurrentView()
-
getTabWidget
@Implementation protected TabWidget getTabWidget()
-
getSpecByTag
public TabHost.TabSpec getSpecByTag(String tag)
-
-