public class

ItemSelectionHelper

extends Object
implements ViewHolderBindListener<VH extends ViewHolder>
java.lang.Object
   ↳ com.pdftron.pdf.widget.recyclerview.ItemSelectionHelper

Class Overview

RecyclerView plugin to support item check-states.

Summary

Constants
int CHOICE_MODE_MULTIPLE
int CHOICE_MODE_NONE
int CHOICE_MODE_SINGLE
int INVALID_POSITION
Public Constructors
ItemSelectionHelper()
Public Methods
void attachToRecyclerView(RecyclerView recyclerView)
void clearChoices()
int getCheckedItemCount()
long[] getCheckedItemIds()
int getCheckedItemPosition()
SparseBooleanArray getCheckedItemPositions()
int getChoiceMode()
RecyclerView.AdapterDataObserver getDataObserver()
boolean isItemChecked(int position)
void onBindViewHolder(RecyclerView.ViewHolder holder, int position)
void setChoiceMode(int choiceMode)
void setItemChecked(int position, boolean checked)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pdftron.pdf.widget.recyclerview.ViewHolderBindListener

Constants

public static final int CHOICE_MODE_MULTIPLE

Constant Value: 2 (0x00000002)

public static final int CHOICE_MODE_NONE

Constant Value: 0 (0x00000000)

public static final int CHOICE_MODE_SINGLE

Constant Value: 1 (0x00000001)

public static final int INVALID_POSITION

Constant Value: -1 (0xffffffff)

Public Constructors

public ItemSelectionHelper ()

Public Methods

public void attachToRecyclerView (RecyclerView recyclerView)

public void clearChoices ()

public int getCheckedItemCount ()

public long[] getCheckedItemIds ()

public int getCheckedItemPosition ()

public SparseBooleanArray getCheckedItemPositions ()

public int getChoiceMode ()

public RecyclerView.AdapterDataObserver getDataObserver ()

public boolean isItemChecked (int position)

public void onBindViewHolder (RecyclerView.ViewHolder holder, int position)

public void setChoiceMode (int choiceMode)

public void setItemChecked (int position, boolean checked)