public abstract class GroupDataProcessor<D,ChildD> extends DataProcessor<D>
GroupDataProcessor,corresponding to GenericExpandableListAdapter,to
process GenericExpandableListAdapter data and return the needs result
DataProcessor.ViewHolder| 构造器和说明 |
|---|
GroupDataProcessor() |
GroupDataProcessor(int viewTypeCount,
int childViewTypeCount) |
| 限定符和类型 | 方法和说明 |
|---|---|
abstract java.util.ArrayList<ChildD> |
getChildItemsQuickly(D data)
Get child items from parent Object.
|
long |
getChildItemStableId(int groupPosition,
int position,
ChildD childData)
corresponding to
GenericExpandableListAdapter.getChildId(int, int) |
int |
getChildItemViewType(int groupPosition,
int position,
ChildD childData)
corresponding to
GenericExpandableListAdapter.getChildType(int, int),if
mChildViewTypeCount > 1,should override this method to implement multiple
type |
int |
getChildViewTypeCount() |
boolean |
isCurrentItemExpanded() |
abstract void |
onBindChildView(android.content.Context context,
int groupPosition,
int position,
android.view.View view,
ChildD childData)
corresponding to
GenericExpandableListAdapter.getChildView(int, int, boolean, View, android.view.ViewGroup),call
this method when view should be updated |
abstract android.view.View |
onCreateChildView(android.content.Context context,
int groupPosition,
int position,
ChildD childData)
corresponding to
GenericExpandableListAdapter.getChildView(int, int, boolean, View, android.view.ViewGroup),call
this method when view should be created |
getItemStableId, getItemViewType, getViewTypeCount, onBindView, onCreateViewpublic GroupDataProcessor()
public GroupDataProcessor(int viewTypeCount,
int childViewTypeCount)
viewTypeCount - corresponding to
GenericExpandableListAdapter.getGroupTypeCount()childViewTypeCount - corresponding to
GenericExpandableListAdapter.getChildTypeCount()public long getChildItemStableId(int groupPosition,
int position,
ChildD childData)
GenericExpandableListAdapter.getChildId(int, int)groupPosition - position - childData - public abstract android.view.View onCreateChildView(android.content.Context context,
int groupPosition,
int position,
ChildD childData)
GenericExpandableListAdapter.getChildView(int, int, boolean, View, android.view.ViewGroup),call
this method when view should be createdcontext - groupPosition - position - childData - public abstract void onBindChildView(android.content.Context context,
int groupPosition,
int position,
android.view.View view,
ChildD childData)
GenericExpandableListAdapter.getChildView(int, int, boolean, View, android.view.ViewGroup),call
this method when view should be updatedcontext - groupPosition - position - view - childData - public abstract java.util.ArrayList<ChildD> getChildItemsQuickly(D data)
data - public int getChildItemViewType(int groupPosition,
int position,
ChildD childData)
GenericExpandableListAdapter.getChildType(int, int),if
mChildViewTypeCount > 1,should override this method to implement multiple
typegroupPosition - position - childData - public final int getChildViewTypeCount()
public boolean isCurrentItemExpanded()