com.github.jobs.adapter
Class SearchJobFragmentAdapter

java.lang.Object
  extended by android.support.v4.view.PagerAdapter
      extended by com.github.jobs.adapter.FragmentStatePagerAdapter
          extended by com.github.jobs.adapter.SearchJobFragmentAdapter

public class SearchJobFragmentAdapter
extends FragmentStatePagerAdapter


Field Summary
 
Fields inherited from class android.support.v4.view.PagerAdapter
POSITION_NONE, POSITION_UNCHANGED
 
Constructor Summary
SearchJobFragmentAdapter(android.content.Context context, android.support.v4.app.FragmentManager fm)
           
 
Method Summary
 void addSearch(SearchPack searchPack)
           
 boolean containsSearch(SearchPack searchPack)
           
 int getCount()
           
 android.support.v4.app.Fragment getItem(int position)
          Return the Fragment associated with a specified position.
 CharSequence getPageTitle(int position)
           
 int positionFor(SearchPack searchPack)
           
 void removeItem(SearchPack searchPack)
           
 
Methods inherited from class com.github.jobs.adapter.FragmentStatePagerAdapter
destroyItem, finishUpdate, getFragment, instantiateItem, isViewFromObject, restoreState, saveState, setPrimaryItem, startUpdate
 
Methods inherited from class android.support.v4.view.PagerAdapter
destroyItem, finishUpdate, getItemPosition, instantiateItem, notifyDataSetChanged, setPrimaryItem, startUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchJobFragmentAdapter

public SearchJobFragmentAdapter(android.content.Context context,
                                android.support.v4.app.FragmentManager fm)
Method Detail

getItem

public android.support.v4.app.Fragment getItem(int position)
Description copied from class: FragmentStatePagerAdapter
Return the Fragment associated with a specified position.

Specified by:
getItem in class FragmentStatePagerAdapter

getCount

public int getCount()
Specified by:
getCount in class android.support.v4.view.PagerAdapter

getPageTitle

public CharSequence getPageTitle(int position)
Overrides:
getPageTitle in class android.support.v4.view.PagerAdapter

positionFor

public int positionFor(SearchPack searchPack)

addSearch

public void addSearch(SearchPack searchPack)

removeItem

public void removeItem(SearchPack searchPack)

containsSearch

public boolean containsSearch(SearchPack searchPack)


Copyright © 2012. All Rights Reserved.