public class MappingAdapter extends android.widget.ArrayAdapter<MappingVM>
Constructor and Description |
---|
MappingAdapter(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
void |
addMapping(java.lang.Class<?> vmType,
java.lang.Class<?> vhType) |
int |
getItemViewType(int position) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
void |
replaceItems(java.util.List<MappingVM> items) |
void |
setEventReceiver(MappingAdapterEventReceiver<MappingVM> receiver) |
add, addAll, addAll, clear, createFromResource, getAutofillOptions, getContext, getCount, getDropDownView, getDropDownViewTheme, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setDropDownViewTheme, setNotifyOnChange, sort
areAllItemsEnabled, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserver
public android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
getView
in interface android.widget.Adapter
getView
in class android.widget.ArrayAdapter<MappingVM>
public int getItemViewType(int position)
getItemViewType
in interface android.widget.Adapter
getItemViewType
in class android.widget.BaseAdapter
public void addMapping(java.lang.Class<?> vmType, java.lang.Class<?> vhType)
public void replaceItems(java.util.List<MappingVM> items)
public void setEventReceiver(MappingAdapterEventReceiver<MappingVM> receiver)