Class ProductComponentViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.products.ui.component.ProductComponentViewHolder
-
public class ProductComponentViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolderTheRecyclerView.ViewHolderclass forProductComponentFragment
-
-
Field Summary
Fields Modifier and Type Field Description SDKCheckedTextViewmCheckedTextViewandroid.widget.SpinnermSpinner
-
Constructor Summary
Constructors Constructor Description ProductComponentViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbind(Component component)Method to bind and display theComponentto theProductComponentViewHoldervoidbindSpinner(Component component, boolean showSpinner)Method to bind and display theComponentto the spinner ofProductComponentViewHoldervoidsetCheck(boolean state)Update the current checkview of the viewholder to the state passed
-
-
-
Field Detail
-
mCheckedTextView
public SDKCheckedTextView mCheckedTextView
-
mSpinner
public android.widget.Spinner mSpinner
-
-
Method Detail
-
bind
public void bind(Component component)
Method to bind and display theComponentto theProductComponentViewHolder- Parameters:
component- theComponentto display
-
bindSpinner
public void bindSpinner(Component component, boolean showSpinner)
Method to bind and display theComponentto the spinner ofProductComponentViewHolder- Parameters:
component- theComponentto displayshowSpinner- 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
-
-