public class

CustomStampAdapter

extends SimpleRecyclerViewAdapter<T, VH extends ViewHolder>
java.lang.Object
   ↳
     ↳ com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter<T, VH extends RecyclerView.ViewHolder>
       ↳ com.pdftron.pdf.adapter.CustomStampAdapter

Summary

Public Constructors
CustomStampAdapter(Context context, ViewHolderBindListener bindListener)
Class constructor
Public Methods
void add(Bitmap item)
Adds the item.
Bitmap getItem(int position)
Returns the item in the specified position.
int getItemCount()
void insert(Bitmap item, int position)
Inserts the item at the specified position.
void onBindViewHolder(CustomStampAdapter.ViewHolder holder, int position)
CustomStampAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType)
void onCustomStampUpdated(Bitmap item, int position)
should be called when a custom rubber stamp has been updated.
void onItemDismiss(int position)
void onItemDrop(int fromPosition, int toPosition)
boolean onItemMove(int fromPosition, int toPosition)
boolean remove(Bitmap item)
Removes the item.
Bitmap removeAt(int position)
Removes the item at the specified position.
void updateSpanCount(int count)
Updates span count.
[Expand]
Inherited Methods
From class com.pdftron.pdf.widget.recyclerview.SimpleRecyclerViewAdapter
From class java.lang.Object

Public Constructors

public CustomStampAdapter (Context context, ViewHolderBindListener bindListener)

Class constructor

Parameters
context The context

Public Methods

public void add (Bitmap item)

Adds the item.

Parameters
item The item

public Bitmap getItem (int position)

Returns the item in the specified position.

Parameters
position The position
Returns
  • The item

public int getItemCount ()

public void insert (Bitmap item, int position)

Inserts the item at the specified position.

Parameters
item The item
position The position

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

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

public void onCustomStampUpdated (Bitmap item, int position)

should be called when a custom rubber stamp has been updated.

Parameters
item The bitmap of the updated custom rubber stamp
position The zero-indexed position of custom rubber stamp in the adapter

public void onItemDismiss (int position)

public void onItemDrop (int fromPosition, int toPosition)

public boolean onItemMove (int fromPosition, int toPosition)

public boolean remove (Bitmap item)

Removes the item.

Parameters
item The item
Returns
  • True if the item is removed

public Bitmap removeAt (int position)

Removes the item at the specified position.

Parameters
position The position
Returns
  • The removed item

public void updateSpanCount (int count)

Updates span count.

Parameters
count The span count