java.lang.Object | ||
↳ | ||
↳ | com.pdftron.pdf.adapter.FormFillAdapter |
Adapter class used in DialogFormFillChoice
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | FormFillAdapter.OnItemSelectListener | Callback interface invoked when an item is selected. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FormFillAdapter(Field field, HashSet<Integer> selectedPositions, FormFillAdapter.OnItemSelectListener listener)
Class constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clearSingleSelectedPosition()
Removes the selected item for single item choice cases
| ||||||||||
int |
getItemCount()
The overloaded implementation of RecyclerView.Adapter#getItemCount().
| ||||||||||
HashSet<Integer> |
getSelectedPositions()
Gets selected position for multiple choice cases
| ||||||||||
int |
getSingleSelectedPosition()
Gets selected position for single choice cases
| ||||||||||
boolean |
hasSingleSelectedPosition()
Whether this form fill is single choice case and is selected
| ||||||||||
void |
onBindViewHolder(FormFillAdapter.ViewHolder holder, int position)
The overloaded implementation of RecyclerView.Adapter#onBindViewHolder(RecyclerView.ViewHolder, int).
| ||||||||||
FormFillAdapter.ViewHolder |
onCreateViewHolder(ViewGroup parent, int viewType)
The overloaded implementation of RecyclerView.Adapter#onCreateViewHolder(ViewGroup, int).
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Class constructor
field | The field |
---|---|
selectedPositions | The selected positions |
listener | The listener |
Removes the selected item for single item choice cases
The overloaded implementation of RecyclerView.Adapter#getItemCount().
Gets selected position for multiple choice cases
Gets selected position for single choice cases
Whether this form fill is single choice case and is selected
The overloaded implementation of RecyclerView.Adapter#onBindViewHolder(RecyclerView.ViewHolder, int).
The overloaded implementation of RecyclerView.Adapter#onCreateViewHolder(ViewGroup, int).