Class ProductComponentViewHolder


  • public class ProductComponentViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The RecyclerView.ViewHolder class for ProductComponentFragment
    • Field Summary

      Fields 
      Modifier and Type Field Description
      SDKCheckedTextView mCheckedTextView  
      android.widget.Spinner mSpinner  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Component component)
      Method to bind and display the Component to the ProductComponentViewHolder
      void bindSpinner​(Component component, boolean showSpinner)
      Method to bind and display the Component to the spinner of ProductComponentViewHolder
      void setCheck​(boolean state)
      Update the current checkview of the viewholder to the state passed
      • 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
    • Field Detail

      • mSpinner

        public android.widget.Spinner mSpinner
    • Constructor Detail

      • ProductComponentViewHolder

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

      • bindSpinner

        public void bindSpinner​(Component component,
                                boolean showSpinner)
        Method to bind and display the Component to the spinner of ProductComponentViewHolder
        Parameters:
        component - the Component to display
        showSpinner - true to bind data and showSpinner, else false
      • setCheck

        public void setCheck​(boolean state)
        Update the current checkview of the viewholder to the state passed
        Parameters:
        state - true to set the view to check state, else false