Class EditItemAdapter.ItemViewHolder

  • Enclosing class:
    EditItemAdapter<Item>

    public static class EditItemAdapter.ItemViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    Viewholder for the items
    • Field Summary

      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemViewHolder​(android.view.View itemView)
      constructor for creating the view
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.widget.Button getDeleteButton()
      getDeleteButton - gets the delete button
      android.widget.Button getEditButton()
      getEditButton - gets the edit button
      android.widget.TextView getHeadlineTextView()
      getHeadlineTextView - gets the headline text view
      android.widget.TextView getLeadingTextView()
      getLeadingTextView - gets the leading text view
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ItemViewHolder

        public ItemViewHolder​(@NonNull
                              android.view.View itemView)
        constructor for creating the view
        Parameters:
        itemView - view that holds the data
    • Method Detail

      • getLeadingTextView

        public android.widget.TextView getLeadingTextView()
        getLeadingTextView - gets the leading text view
        Returns:
        the leading text view
      • getHeadlineTextView

        public android.widget.TextView getHeadlineTextView()
        getHeadlineTextView - gets the headline text view
        Returns:
        the headline text view
      • getEditButton

        public android.widget.Button getEditButton()
        getEditButton - gets the edit button
        Returns:
        the edit button
      • getDeleteButton

        public android.widget.Button getDeleteButton()
        getDeleteButton - gets the delete button
        Returns:
        the delete button