de.msponer.android.yac.adapter
Class WorkItemDataExpendableListAdapter

java.lang.Object
  extended by android.widget.BaseExpandableListAdapter
      extended by de.msponer.android.yac.adapter.WorkItemDataExpendableListAdapter
All Implemented Interfaces:
ExpandableListAdapter, HeterogeneousExpandableList

public class WorkItemDataExpendableListAdapter
extends BaseExpandableListAdapter

A work item adapter for an expandable data list.

Author:
msponer

Constructor Summary
WorkItemDataExpendableListAdapter(Context c, org.jdom.Element workItemXmlDataRoot)
          Constructor setting the required fields.
 
Method Summary
 Object getChild(int groupPosition, int childPosition)
           
 long getChildId(int groupPosition, int childPosition)
           
 int getChildrenCount(int groupPosition)
           
 View getChildView(int groupPosition, int childPosition, boolean isLastChild, View convertView, ViewGroup parent)
           
 TextView getGenericView()
          Returns a generic text view.
 Object getGroup(int groupPosition)
           
 int getGroupCount()
           
 long getGroupId(int groupPosition)
           
 View getGroupView(int groupPosition, boolean isExpanded, View convertView, ViewGroup parent)
           
 boolean hasStableIds()
           
 boolean isChildSelectable(int groupPosition, int childPosition)
           
 
Methods inherited from class android.widget.BaseExpandableListAdapter
areAllItemsEnabled, getChildType, getChildTypeCount, getCombinedChildId, getCombinedGroupId, getGroupType, getGroupTypeCount, isEmpty, notifyDataSetChanged, notifyDataSetInvalidated, onGroupCollapsed, onGroupExpanded, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkItemDataExpendableListAdapter

public WorkItemDataExpendableListAdapter(Context c,
                                         org.jdom.Element workItemXmlDataRoot)
Constructor setting the required fields.

Parameters:
c - The application context.
workItemXmlDataRoot - The work item XML data root.
Method Detail

getChild

public Object getChild(int groupPosition,
                       int childPosition)

getChildId

public long getChildId(int groupPosition,
                       int childPosition)

getChildrenCount

public int getChildrenCount(int groupPosition)

getGenericView

public TextView getGenericView()
Returns a generic text view.

Returns:
A generic text view.

getChildView

public View getChildView(int groupPosition,
                         int childPosition,
                         boolean isLastChild,
                         View convertView,
                         ViewGroup parent)

getGroup

public Object getGroup(int groupPosition)

getGroupCount

public int getGroupCount()

getGroupId

public long getGroupId(int groupPosition)

getGroupView

public View getGroupView(int groupPosition,
                         boolean isExpanded,
                         View convertView,
                         ViewGroup parent)

isChildSelectable

public boolean isChildSelectable(int groupPosition,
                                 int childPosition)

hasStableIds

public boolean hasStableIds()