Package com.xffffff.wellfed.recipe
Class EditRecipesAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
-
- com.xffffff.wellfed.common.ItemAdapter<Item>
-
- com.xffffff.wellfed.common.EditItemAdapter<Recipe>
-
- com.xffffff.wellfed.recipe.EditRecipesAdapter
-
public class EditRecipesAdapter extends EditItemAdapter<Recipe>
EditRecipesAdapter is the adapter for the RecyclerView in the EditRecipesActivity. It holds a list of recipes and displays them in a list.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.xffffff.wellfed.common.EditItemAdapter
EditItemAdapter.ItemViewHolder, EditItemAdapter.OnDeleteListener<Item>, EditItemAdapter.OnEditListener<Item>
-
-
Field Summary
-
Fields inherited from class com.xffffff.wellfed.common.EditItemAdapter
deleteListener, editListener
-
Fields inherited from class com.xffffff.wellfed.common.ItemAdapter
items
-
-
Constructor Summary
Constructors Constructor Description EditRecipesAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
OnBindViewHolder binds the view holder to the data.-
Methods inherited from class com.xffffff.wellfed.common.EditItemAdapter
getChanged, hasChanges, onCreateViewHolder, setChanged, setDeleteListener, setEditListener, setItems
-
Methods inherited from class com.xffffff.wellfed.common.ItemAdapter
getItemCount, getItems
-
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
-
-
-
-
Method Detail
-
onBindViewHolder
public void onBindViewHolder(@NonNull androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
OnBindViewHolder binds the view holder to the data. It sets the text of the view holder to the name of the recipe.- Overrides:
onBindViewHolder
in classEditItemAdapter<Recipe>
- Parameters:
holder1
- The view holder to bind.position
- The position of the Recipe in the list.
-
-