Class DynamicQueryBinder<T,Q,VH extends RecyclerView.ViewHolder>
java.lang.Object
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder<VH>
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder<T,VH>
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicQueryBinder<T,Q,VH>
- Type Parameters:
T
- The type of the data this binder will receive.Q
- The type of the query this binder will receive.VH
- The type of the dynamic recycler view binder.
- Direct Known Subclasses:
EmptyBinder
,InfoBinder
public abstract class DynamicQueryBinder<T,Q,VH extends RecyclerView.ViewHolder>
extends DynamicDataBinder<T,VH>
A
DynamicDataBinder
to bind the generic data with query that can be used
with the DynamicBinderAdapter
.-
Constructor Summary
ConstructorDescriptionDynamicQueryBinder
(DynamicBinderAdapter<?> binderAdapter) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionint
Get the highlight color used by this binder.getQuery()
Get the query used by this binder.void
Initialize the highlight color for this binder.void
Set the data and query for this binder.void
setHighlightColor
(int highlightColor) Set the highlight color for this binder.void
Set the query for this binder.Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder
getData, getItemCount, setData, setData
Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder
getBinderAdapter, getRecyclerViewAdapter, notifyBinderDataSetChanged, notifyBinderItemChanged, notifyBinderItemInserted, notifyBinderItemMoved, notifyBinderItemRangeChanged, notifyBinderItemRangeInserted, notifyBinderItemRangeRemoved, notifyBinderItemRemoved, notifyDataSetChanged, onBindViewHolder, onCreateViewHolder
-
Constructor Details
-
Method Details
-
setData
Set the data and query for this binder.- Parameters:
data
- The data to be set.query
- The query to be set.
-
getQuery
Get the query used by this binder.- Returns:
- The query used by this binder.
-
setQuery
Set the query for this binder.- Parameters:
query
- The query to be set.
-
initHighlightColor
public void initHighlightColor()Initialize the highlight color for this binder. -
getHighlightColor
Get the highlight color used by this binder.- Returns:
- The highlight color used by this binder.
-
setHighlightColor
Set the highlight color for this binder.- Parameters:
highlightColor
- The highlight color to be set.
-