Class OrganizerPagerAdapter

java.lang.Object
androidx.recyclerview.widget.RecyclerView.Adapter<androidx.viewpager2.adapter.FragmentViewHolder>
androidx.viewpager2.adapter.FragmentStateAdapter
com.example.breeze_seas.OrganizerPagerAdapter
All Implemented Interfaces:
androidx.viewpager2.adapter.StatefulAdapter

public class OrganizerPagerAdapter extends androidx.viewpager2.adapter.FragmentStateAdapter
Supplies the organizer list fragments for the waiting, pending, accepted, and declined tabs.
  • Nested Class Summary

    Nested classes/interfaces inherited from class androidx.viewpager2.adapter.FragmentStateAdapter

    androidx.viewpager2.adapter.FragmentStateAdapter.ExperimentalFragmentStateAdapterApi, androidx.viewpager2.adapter.FragmentStateAdapter.FragmentTransactionCallback

    Nested classes/interfaces inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

    androidx.recyclerview.widget.RecyclerView.Adapter.StateRestorationPolicy
  • Constructor Summary

    Constructors
    Constructor
    Description
    OrganizerPagerAdapter(androidx.fragment.app.Fragment fragment)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    androidx.fragment.app.Fragment
    createFragment(int position)
     
    int
     

    Methods inherited from class androidx.viewpager2.adapter.FragmentStateAdapter

    containsItem, getItemId, onAttachedToRecyclerView, onBindViewHolder, onCreateViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewRecycled, registerFragmentTransactionCallback, restoreState, saveState, setHasStableIds, unregisterFragmentTransactionCallback

    Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter

    bindViewHolder, createViewHolder, findRelativeAdapterPositionIn, getItemViewType, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onBindViewHolder, onViewDetachedFromWindow, registerAdapterDataObserver, setStateRestorationPolicy, unregisterAdapterDataObserver

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • OrganizerPagerAdapter

      public OrganizerPagerAdapter(@NonNull androidx.fragment.app.Fragment fragment)
  • Method Details

    • createFragment

      @NonNull public androidx.fragment.app.Fragment createFragment(int position)
      Specified by:
      createFragment in class androidx.viewpager2.adapter.FragmentStateAdapter
    • getItemCount

      public int getItemCount()
      Specified by:
      getItemCount in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.viewpager2.adapter.FragmentViewHolder>