de.msponer.android.yac.adapter
Class WorkItemSyncAdapter

java.lang.Object
  extended by android.widget.BaseAdapter
      extended by android.widget.ArrayAdapter<MobileWorkItem>
          extended by 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

Field Summary
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
WorkItemSyncAdapter(Context context, int textViewResourceId, List<MobileWorkItem> workitemList)
          Constructor setting the required fields.
 
Method Summary
 View getView(int position, View convertView, ViewGroup parent)
           
 List<MobileWorkItem> getWorkitemList()
          Returns the work item list.
 void setWorkitemList(List<MobileWorkItem> workitemList)
          Sets the work item list.
 
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 android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.