oak
Class SectionAdapter<T extends Sectionable>
java.lang.Object
android.widget.BaseAdapter
oak.BaseSectionAdapter
oak.SectionAdapter<T>
- All Implemented Interfaces:
- android.widget.AbsListView.OnScrollListener, android.widget.Adapter, android.widget.Filterable, android.widget.ListAdapter, android.widget.SectionIndexer, android.widget.SpinnerAdapter
public abstract class SectionAdapter<T extends Sectionable>
- extends BaseSectionAdapter
- implements android.widget.Filterable
User: Michael Lake Date: 5/17/11 Time: 11:13 AM
| Fields inherited from interface android.widget.AbsListView.OnScrollListener |
SCROLL_STATE_FLING, SCROLL_STATE_IDLE, SCROLL_STATE_TOUCH_SCROLL |
| Fields inherited from interface android.widget.Adapter |
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
| Methods inherited from class android.widget.BaseAdapter |
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SectionAdapter
public SectionAdapter()
setDataManually
public void setDataManually(List<android.util.Pair<String,List<T>>> data)
setData
public void setData(List<T> unSectionedList)
clear
public void clear()
replaceDataInSection
public void replaceDataInSection(String section,
List<T> dataForSection)
getCount
public int getCount()
- Specified by:
getCount in interface android.widget.Adapter
getItem
public T getItem(int position)
- Specified by:
getItem in interface android.widget.Adapter
getItemId
public long getItemId(int position)
- Specified by:
getItemId in interface android.widget.Adapter
getPositionForSection
public int getPositionForSection(int section)
- Specified by:
getPositionForSection in interface android.widget.SectionIndexer- Specified by:
getPositionForSection in class BaseSectionAdapter
getSectionForPosition
public int getSectionForPosition(int position)
- Specified by:
getSectionForPosition in interface android.widget.SectionIndexer- Specified by:
getSectionForPosition in class BaseSectionAdapter
getSections
public String[] getSections()
- Specified by:
getSections in interface android.widget.SectionIndexer- Specified by:
getSections in class BaseSectionAdapter
getSectionsWithFullName
public String[] getSectionsWithFullName()
isPositionTopOfSection
public boolean isPositionTopOfSection(int position)
isPositionBottomOfSection
public boolean isPositionBottomOfSection(int position)
getFilter
public android.widget.Filter getFilter()
- Specified by:
getFilter in interface android.widget.Filterable
Copyright © 2011-2014. All Rights Reserved.