public class DefaultTokenListViewAdapter
extends <any>
DefaultTokenListView which inserts the data into the recycler
view.| Modifier and Type | Class and Description |
|---|---|
class |
DefaultTokenListViewAdapter.ViewHolder
The view holder which holds the view with the tokens.
|
| Constructor and Description |
|---|
DefaultTokenListViewAdapter(java.util.List<TokenVersion> tokens,
TokenListViewFactory.TokenViewListener listener,
java.util.Map<PaymentMethodConfiguration,PaymentMethodIcon> icons)
This method constructs a new adapter.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getItemCount() |
void |
onBindViewHolder(DefaultTokenListViewAdapter.ViewHolder holder,
int position) |
DefaultTokenListViewAdapter.ViewHolder |
onCreateViewHolder(android.view.ViewGroup parent,
int viewType) |
protected void |
triggerClickEvent(int position)
This method triggers click event based up on the position of the entry which has been
clicked.
|
public DefaultTokenListViewAdapter(java.util.List<TokenVersion> tokens, TokenListViewFactory.TokenViewListener listener, java.util.Map<PaymentMethodConfiguration,PaymentMethodIcon> icons)
tokens - the tokens which should be shown.listener - the listener which should act upon the events triggered within the view.icons - the icons which should be used for the payment methods.public DefaultTokenListViewAdapter.ViewHolder onCreateViewHolder(android.view.ViewGroup parent, int viewType)
public void onBindViewHolder(DefaultTokenListViewAdapter.ViewHolder holder, int position)
protected final void triggerClickEvent(int position)
position - the position of the entry which has been clicked.public int getItemCount()