Class ProductAttributesAdapter
- java.lang.Object
 - 
- androidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
 - 
- com.cheetahdigital.products.ui.productattribute.ProductAttributesAdapter
 
 
 
- 
public class ProductAttributesAdapter extends androidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
The adapter forProductAttributesActivity 
- 
- 
Constructor Summary
Constructors Constructor Description ProductAttributesAdapter(Component component, OnAttributeItemClickListener listener)Default Constructor 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetItemCount()voidonBindViewHolder(ProductAttributesViewHolder holder, int position)ProductAttributesViewHolderonCreateViewHolder(android.view.ViewGroup parent, int viewType)- 
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ProductAttributesAdapter
public ProductAttributesAdapter(Component component, OnAttributeItemClickListener listener)
Default Constructor- Parameters:
 component-Componentuse to display necessary information on the adapterlistener- theOnAttributeItemClickListenerto use
 
 - 
 
- 
Method Detail
- 
onCreateViewHolder
public ProductAttributesViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
- Specified by:
 onCreateViewHolderin classandroidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
 
- 
onBindViewHolder
public void onBindViewHolder(@NonNull ProductAttributesViewHolder holder, int position)- Specified by:
 onBindViewHolderin classandroidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
 
- 
getItemCount
public int getItemCount()
- Specified by:
 getItemCountin classandroidx.recyclerview.widget.RecyclerView.Adapter<ProductAttributesViewHolder>
 
 - 
 
 -