|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.actionbarsherlock.app.ActionBar.Tab
com.actionbarsherlock.internal.app.ActionBarWrapper.TabWrapper
public class ActionBarWrapper.TabWrapper
| Field Summary |
|---|
| Fields inherited from class com.actionbarsherlock.app.ActionBar.Tab |
|---|
INVALID_POSITION |
| Constructor Summary | |
|---|---|
ActionBarWrapper.TabWrapper(android.app.ActionBar.Tab nativeTab)
|
|
| Method Summary | |
|---|---|
CharSequence |
getContentDescription()
Gets a brief description of this tab's content for use in accessibility support. |
android.view.View |
getCustomView()
Retrieve a previously set custom view for this tab. |
android.graphics.drawable.Drawable |
getIcon()
Return the icon associated with this tab. |
int |
getPosition()
Return the current position of this tab in the action bar. |
Object |
getTag()
|
CharSequence |
getText()
Return the text of this tab. |
void |
onTabReselected(android.app.ActionBar.Tab tab,
android.app.FragmentTransaction ft)
|
void |
onTabSelected(android.app.ActionBar.Tab tab,
android.app.FragmentTransaction ft)
|
void |
onTabUnselected(android.app.ActionBar.Tab tab,
android.app.FragmentTransaction ft)
|
void |
select()
Select this tab. |
ActionBar.Tab |
setContentDescription(CharSequence contentDesc)
Set a description of this tab's content for use in accessibility support. |
ActionBar.Tab |
setContentDescription(int resId)
Set a description of this tab's content for use in accessibility support. |
ActionBar.Tab |
setCustomView(int layoutResId)
Set a custom view to be used for this tab. |
ActionBar.Tab |
setCustomView(android.view.View view)
Set a custom view to be used for this tab. |
ActionBar.Tab |
setIcon(android.graphics.drawable.Drawable icon)
Set the icon displayed on this tab. |
ActionBar.Tab |
setIcon(int resId)
Set the icon displayed on this tab. |
ActionBar.Tab |
setTabListener(ActionBar.TabListener listener)
Set the ActionBar.TabListener that will handle switching to and from this tab. |
ActionBar.Tab |
setTag(Object obj)
Give this Tab an arbitrary object to hold for later use. |
ActionBar.Tab |
setText(CharSequence text)
Set the text displayed on this tab. |
ActionBar.Tab |
setText(int resId)
Set the text displayed on this tab. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ActionBarWrapper.TabWrapper(android.app.ActionBar.Tab nativeTab)
| Method Detail |
|---|
public int getPosition()
ActionBar.Tab
getPosition in class ActionBar.TabActionBar.Tab.INVALID_POSITION if this tab is not currently in
the action bar.public android.graphics.drawable.Drawable getIcon()
ActionBar.Tab
getIcon in class ActionBar.Tabpublic CharSequence getText()
ActionBar.Tab
getText in class ActionBar.Tabpublic ActionBar.Tab setIcon(android.graphics.drawable.Drawable icon)
ActionBar.Tab
setIcon in class ActionBar.Tabicon - The drawable to use as an icon
public ActionBar.Tab setIcon(int resId)
ActionBar.Tab
setIcon in class ActionBar.TabresId - Resource ID referring to the drawable to use as an icon
public ActionBar.Tab setText(CharSequence text)
ActionBar.Tab
setText in class ActionBar.Tabtext - The text to display
public ActionBar.Tab setText(int resId)
ActionBar.Tab
setText in class ActionBar.TabresId - A resource ID referring to the text that should be displayed
public ActionBar.Tab setCustomView(android.view.View view)
ActionBar.TabActionBar.Tab.setText(CharSequence) and ActionBar.Tab.setIcon(Drawable).
setCustomView in class ActionBar.Tabview - Custom view to be used as a tab.
public ActionBar.Tab setCustomView(int layoutResId)
ActionBar.TabActionBar.Tab.setText(CharSequence) and ActionBar.Tab.setIcon(Drawable).
setCustomView in class ActionBar.TablayoutResId - A layout resource to inflate and use as a custom tab view
public android.view.View getCustomView()
ActionBar.Tab
getCustomView in class ActionBar.TabActionBar.Tab.setCustomView(View).public ActionBar.Tab setTag(Object obj)
ActionBar.Tab
setTag in class ActionBar.Tabobj - Object to store
public Object getTag()
getTag in class ActionBar.Tabpublic ActionBar.Tab setTabListener(ActionBar.TabListener listener)
ActionBar.TabActionBar.TabListener that will handle switching to and from this tab.
All tabs must have a TabListener set before being added to the ActionBar.
setTabListener in class ActionBar.Tablistener - Listener to handle tab selection events
public void select()
ActionBar.Tab
select in class ActionBar.Tabpublic ActionBar.Tab setContentDescription(int resId)
ActionBar.Tab
setContentDescription in class ActionBar.TabresId - A resource ID referring to the description text
ActionBar.Tab.setContentDescription(CharSequence),
ActionBar.Tab.getContentDescription()public ActionBar.Tab setContentDescription(CharSequence contentDesc)
ActionBar.Tab
setContentDescription in class ActionBar.TabcontentDesc - Description of this tab's content
ActionBar.Tab.setContentDescription(int),
ActionBar.Tab.getContentDescription()public CharSequence getContentDescription()
ActionBar.Tab
getContentDescription in class ActionBar.TabActionBar.Tab.setContentDescription(CharSequence),
ActionBar.Tab.setContentDescription(int)
public void onTabReselected(android.app.ActionBar.Tab tab,
android.app.FragmentTransaction ft)
onTabReselected in interface android.app.ActionBar.TabListener
public void onTabSelected(android.app.ActionBar.Tab tab,
android.app.FragmentTransaction ft)
onTabSelected in interface android.app.ActionBar.TabListener
public void onTabUnselected(android.app.ActionBar.Tab tab,
android.app.FragmentTransaction ft)
onTabUnselected in interface android.app.ActionBar.TabListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||