public class

SearchResultsAdapter

extends
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.controls.SearchResultsAdapter
Known Direct Subclasses

Class Overview

A TextSearchResult array adapter for showing search results

Summary

Nested Classes
class SearchResultsAdapter.ViewHolder  
Public Constructors
SearchResultsAdapter(Context context, int resource, ArrayList<TextSearchResult> objects, ArrayList<String> titles)
Class constructor
Public Methods
TextSearchResult getItem(int position)
int getItemCount()
void onBindViewHolder(RecyclerView.ViewHolder vh, int position)
SearchResultsAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
void setWholeWord(boolean wholeWord)
Sets whether to use whole world
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public SearchResultsAdapter (Context context, int resource, ArrayList<TextSearchResult> objects, ArrayList<String> titles)

Class constructor

Parameters
context The context
resource The resource ID for a layout file containing a TextView to use when instantiating views.
objects The objects to represent in the ListView.
titles The section titles

Public Methods

public TextSearchResult getItem (int position)

Parameters
position Position of the item whose data we want within the adapter's search result set.
Returns
  • The search result at the specified position. Gets the TextSearchResult item associated with the specified position in the search result set.

public int getItemCount ()

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

public SearchResultsAdapter.ViewHolder onCreateViewHolder (ViewGroup parent, int viewType)

public void setWholeWord (boolean wholeWord)

Sets whether to use whole world

Parameters
wholeWord true if whole word, false otherwise