Class ProductComponentViewHolder
- java.lang.Object
-
- androidx.recyclerview.widget.RecyclerView.ViewHolder
-
- com.cheetahdigital.products.ui.component.ProductComponentViewHolder
-
public class ProductComponentViewHolder extends androidx.recyclerview.widget.RecyclerView.ViewHolder
TheRecyclerView.ViewHolder
class forProductComponentFragment
-
-
Field Summary
Fields Modifier and Type Field Description SDKCheckedTextView
mCheckedTextView
android.widget.Spinner
mSpinner
-
Constructor Summary
Constructors Constructor Description ProductComponentViewHolder(android.view.View itemView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(Component component)
Method to bind and display theComponent
to theProductComponentViewHolder
void
bindSpinner(Component component, boolean showSpinner)
Method to bind and display theComponent
to the spinner ofProductComponentViewHolder
void
setCheck(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 theComponent
to theProductComponentViewHolder
- Parameters:
component
- theComponent
to display
-
bindSpinner
public void bindSpinner(Component component, boolean showSpinner)
Method to bind and display theComponent
to the spinner ofProductComponentViewHolder
- Parameters:
component
- theComponent
to 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
-
-