public class GroupDataProcessor<D,ChildD>
extends DataProcessor
GroupDataProcessor,corresponding to GenericExpandableListAdapter,to process GenericExpandableListAdapter data and return the needs result
DataProcessor.ViewHolder| 构造器和说明 |
|---|
GroupDataProcessor() |
GroupDataProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getChildItemStableId()
corresponding to
|
int |
getChildItemViewType()
corresponding to
,if mChildViewTypeCount > 1,should override this method to implement multiple type |
java.util.ArrayList<ChildD> |
getChildItemsQuickly()
Get child items from parent Object. The usual implementation is to return one member variable in parent Object. Should return ArrayList,because the result would be queried by index. This method is in quick-ui action,so should return result quickly,do not do any more in this method,such as convert List to ArrayList,and so on...
|
int |
getChildViewTypeCount() |
boolean |
isCurrentItemExpanded() |
void |
onBindChildView()
corresponding to
,call this method when view should be updated |
android.view.View |
onCreateChildView()
corresponding to
,call this method when view should be created |
getItemStableId, getItemViewType, getViewTypeCount, onBindView, onCreateViewpublic GroupDataProcessor()
public GroupDataProcessor()
public long getChildItemStableId()
corresponding to GenericExpandableListAdapter.getChildId
GenericExpandableListAdapter.getChildIdpublic android.view.View onCreateChildView()
corresponding to ,call this method when view should be createdGenericExpandableListAdapter.getChildView
public void onBindChildView()
corresponding to ,call this method when view should be updatedGenericExpandableListAdapter.getChildView
public java.util.ArrayList<ChildD> getChildItemsQuickly()
Get child items from parent Object. The usual implementation is to return one member variable in parent Object. Should return ArrayList,because the result would be queried by index. This method is in quick-ui action,so should return result quickly,do not do any more in this method,such as convert List to ArrayList,and so on...
public int getChildItemViewType()
corresponding to ,if mChildViewTypeCount > 1,should override this method to implement multiple typeGenericExpandableListAdapter.getChildType
public int getChildViewTypeCount()
public boolean isCurrentItemExpanded()