com.github.jobs.utils
Class TabListenerAdapter

java.lang.Object
  extended by com.github.jobs.utils.TabListenerAdapter
All Implemented Interfaces:
ActionBar.TabListener

public abstract class TabListenerAdapter
extends Object
implements ActionBar.TabListener

Author:
cristian

Constructor Summary
TabListenerAdapter()
           
 
Method Summary
 void onTabReselected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
          Called when a tab that is already selected is chosen again by the user.
abstract  void onTabSelected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
          Called when a tab enters the selected state.
 void onTabUnselected(ActionBar.Tab tab, android.support.v4.app.FragmentTransaction ft)
          Called when a tab exits the selected state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TabListenerAdapter

public TabListenerAdapter()
Method Detail

onTabSelected

public abstract void onTabSelected(ActionBar.Tab tab,
                                   android.support.v4.app.FragmentTransaction ft)
Description copied from interface: ActionBar.TabListener
Called when a tab enters the selected state.

Specified by:
onTabSelected in interface ActionBar.TabListener
Parameters:
tab - The tab that was selected
ft - A FragmentTransaction for queuing fragment operations to execute during a tab switch. The previous tab's unselect and this tab's select will be executed in a single transaction. This FragmentTransaction does not support being added to the back stack.

onTabUnselected

public void onTabUnselected(ActionBar.Tab tab,
                            android.support.v4.app.FragmentTransaction ft)
Description copied from interface: ActionBar.TabListener
Called when a tab exits the selected state.

Specified by:
onTabUnselected in interface ActionBar.TabListener
Parameters:
tab - The tab that was unselected
ft - A FragmentTransaction for queuing fragment operations to execute during a tab switch. This tab's unselect and the newly selected tab's select will be executed in a single transaction. This FragmentTransaction does not support being added to the back stack.

onTabReselected

public void onTabReselected(ActionBar.Tab tab,
                            android.support.v4.app.FragmentTransaction ft)
Description copied from interface: ActionBar.TabListener
Called when a tab that is already selected is chosen again by the user. Some applications may use this action to return to the top level of a category.

Specified by:
onTabReselected in interface ActionBar.TabListener
Parameters:
tab - The tab that was reselected.
ft - A FragmentTransaction for queuing fragment operations to execute once this method returns. This FragmentTransaction does not support being added to the back stack.


Copyright © 2012. All Rights Reserved.