de.msponer.android.yac.adapter
Class WorkItemSyncAdapter
java.lang.Object
android.widget.BaseAdapter
android.widget.ArrayAdapter<MobileWorkItem>
de.msponer.android.yac.adapter.WorkItemSyncAdapter
- All Implemented Interfaces:
- Adapter, Filterable, ListAdapter, SpinnerAdapter
public class WorkItemSyncAdapter
- extends ArrayAdapter<MobileWorkItem>
An adapter class for work item to sync.
- Author:
- msponer
Methods inherited from class android.widget.ArrayAdapter |
add, clear, createFromResource, getContext, getCount, getDropDownView, getFilter, getItem, getItemId, getPosition, insert, notifyDataSetChanged, remove, setDropDownViewResource, setNotifyOnChange, sort |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WorkItemSyncAdapter
public WorkItemSyncAdapter(Context context,
int textViewResourceId,
List<MobileWorkItem> workitemList)
- Constructor setting the required fields.
- Parameters:
context
- The application context.textViewResourceId
- The view id.workitemList
- The work item list.
getView
public View getView(int position,
View convertView,
ViewGroup parent)
- Specified by:
getView
in interface Adapter
- Overrides:
getView
in class ArrayAdapter<MobileWorkItem>
setWorkitemList
public void setWorkitemList(List<MobileWorkItem> workitemList)
- Sets the work item list.
- Parameters:
workitemList
- The work item list to set.
getWorkitemList
public List<MobileWorkItem> getWorkitemList()
- Returns the work item list.
- Returns:
- The work item list.