Class PunchesViewHolder


  • public class PunchesViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    View Holder for the list of Punches Contains all the view to be displayed in each list item
    • Field Summary

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

        itemView
    • Constructor Summary

      Constructors 
      Constructor Description
      PunchesViewHolder​(android.view.View itemView)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Punch data)
      Method that binds the Punch data to the views currently available
      void setPunchImageViewHolder​(int placeHolder)
      Set the default image placeholder for punchcard image
      • 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

      • PunchesViewHolder

        public PunchesViewHolder​(android.view.View itemView)
    • Method Detail

      • bind

        public void bind​(Punch data)
        Method that binds the Punch data to the views currently available
        Parameters:
        data - instance of Punch
      • setPunchImageViewHolder

        public void setPunchImageViewHolder​(int placeHolder)
        Set the default image placeholder for punchcard image
        Parameters:
        placeHolder - id of the drawable to use