Package com.xffffff.wellfed.ingredient
Class EditIngredientAdapter
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
-
- com.xffffff.wellfed.common.ItemAdapter<Item>
-
- com.xffffff.wellfed.common.EditItemAdapter<Ingredient>
-
- com.xffffff.wellfed.ingredient.EditIngredientAdapter
-
public class EditIngredientAdapter extends EditItemAdapter<Ingredient>
Adapter for a recipe ingredient, in the recyclerview for recipe ingredients
-
-
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 EditIngredientAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onBindViewHolder(androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
Binds a viewholder to an ingredient-
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)
Binds a viewholder to an ingredient- Overrides:
onBindViewHolder
in classEditItemAdapter<Ingredient>
- Parameters:
holder1
- the viewholderposition
- the position of the item in the viewholder
-
-