oak
Class SectionAdapter<T extends Sectionable>

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


Field Summary
 
Fields inherited from class oak.BaseSectionAdapter
PINNED_HEADER_GONE, PINNED_HEADER_PUSHED_UP, PINNED_HEADER_VISIBLE, TAG
 
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
 
Constructor Summary
SectionAdapter()
           
 
Method Summary
 void clear()
           
 int getCount()
           
 android.widget.Filter getFilter()
           
 T getItem(int position)
           
 long getItemId(int position)
           
 int getPositionForSection(int section)
           
 int getSectionForPosition(int position)
           
 String[] getSections()
           
 String[] getSectionsWithFullName()
           
 boolean isPositionBottomOfSection(int position)
           
 boolean isPositionTopOfSection(int position)
           
 void replaceDataInSection(String section, List<T> dataForSection)
           
 void setData(List<T> unSectionedList)
           
 void setDataManually(List<android.util.Pair<String,List<T>>> data)
           
 
Methods inherited from class oak.BaseSectionAdapter
bindSectionHeader, configurePinnedHeader, getAmazingView, getPinnedHeaderState, getView, onScroll, onScrollStateChanged
 
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
 

Constructor Detail

SectionAdapter

public SectionAdapter()
Method Detail

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.