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 classShadowTabHost.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
-
-
Constructor Summary
Constructors Constructor Description ShadowTabHost()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddTab(android.widget.TabHost.TabSpec tabSpec)protected intgetCurrentTab()android.widget.TabHost.TabSpecgetCurrentTabSpec()protected java.lang.StringgetCurrentTabTag()protected android.view.ViewgetCurrentView()android.widget.TabHost.TabSpecgetSpecByTag(java.lang.String tag)protected android.widget.TabWidgetgetTabWidget()protected android.widget.TabHost.TabSpecnewTabSpec(java.lang.String tag)protected voidsetCurrentTab(int index)protected voidsetCurrentTabByTag(java.lang.String tag)protected voidsetOnTabChangedListener(android.widget.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__, addOnAttachStateChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getOnAttachStateChangeListeners, getOnClickListener, getOnCreateContextMenuListener, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getWindowDisplayFrame, getWindowId, getWindowVisibleDisplayFrame, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, onLayout, onLayoutWasCalled, onTouchEvent, performHapticFeedback, post, postDelayed, postInvalidateDelayed, removeCallbacks, removeOnAttachStateChangeListener, requestLayout, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated
-
-
-
-
Method Detail
-
newTabSpec
@Implementation protected android.widget.TabHost.TabSpec newTabSpec(java.lang.String tag)
-
addTab
@Implementation protected void addTab(android.widget.TabHost.TabSpec tabSpec)
-
setCurrentTab
@Implementation protected void setCurrentTab(int index)
-
setCurrentTabByTag
@Implementation protected void setCurrentTabByTag(java.lang.String tag)
-
getCurrentTab
@Implementation protected int getCurrentTab()
-
getCurrentTabSpec
public android.widget.TabHost.TabSpec getCurrentTabSpec()
-
getCurrentTabTag
@Implementation protected java.lang.String getCurrentTabTag()
-
setOnTabChangedListener
@Implementation protected void setOnTabChangedListener(android.widget.TabHost.OnTabChangeListener listener)
-
getCurrentView
@Implementation protected android.view.View getCurrentView()
-
getTabWidget
@Implementation protected android.widget.TabWidget getTabWidget()
-
getSpecByTag
public android.widget.TabHost.TabSpec getSpecByTag(java.lang.String tag)
-
-