org.solovyev.android.list
Class ListItemAdapter<LI extends ListItem>

java.lang.Object
  extended by android.widget.BaseAdapter
      extended by org.solovyev.android.list.ListAdapter<LI>
          extended by org.solovyev.android.list.ListItemAdapter<LI>
All Implemented Interfaces:
android.widget.Adapter, android.widget.Filterable, android.widget.ListAdapter, android.widget.SpinnerAdapter

public class ListItemAdapter<LI extends ListItem>
extends ListAdapter<LI>

User: serso Date: 4/14/12 Time: 8:02 PM


Nested Class Summary
 
Nested classes/interfaces inherited from class org.solovyev.android.list.ListAdapter
ListAdapter.AdapterHelper
 
Field Summary
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
protected ListItemAdapter(android.content.Context context, List<? extends LI> listItems)
           
 
Method Summary
static
<LI extends ListItem>
void
attach(android.app.ListActivity listActivity, ListItemAdapter<? extends LI> adapter)
           
static
<LI extends ListItem>
void
attach(ListFragment listFragment, ListItemAdapter<? extends LI> adapter)
           
static
<LI extends ListItem>
void
attach(android.app.ListFragment listFragment, ListItemAdapter<? extends LI> adapter)
           
static
<LI extends ListItem>
void
attach(android.widget.ListView listView, ListItemAdapter<? extends LI> adapter, android.content.Context context)
           
static
<LI extends ListItem>
ListItemAdapter<LI>
createAndAttach(android.app.ListActivity listActivity, List<? extends LI> listItems)
           
static
<LI extends ListItem>
ListItemAdapter<LI>
createAndAttach(ListFragment listFragment, List<? extends LI> listItems)
           
static
<LI extends ListItem>
ListItemAdapter<LI>
createAndAttach(android.app.ListFragment listFragment, List<? extends LI> listItems)
           
static
<LI extends ListItem>
ListItemAdapter<LI>
createAndAttach(android.widget.ListView listView, List<? extends LI> listItems, android.content.Context context)
           
 android.view.View getDropDownView(int position, android.view.View convertView, android.view.ViewGroup parent)
          
 android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
          
static
<LI extends ListItem>
ListItemAdapter<LI>
newInstance(android.content.Context context, List<? extends LI> listItems)
           
 
Methods inherited from class org.solovyev.android.list.ListAdapter
add, addAll, addAll, clear, containsInAll, containsInShown, createFilter, createFromResource, doWork, filter, filter, getAdapterHelper, getAllElements, getComparator, getContext, getCount, getFilter, getFilterText, getItem, getItemId, getPosition, getShownElements, insert, isNotifyOnChange, notifyDataSetChanged, onDataSetChanged, onDataSetChanged, refilter, remove, removeAt, restoreState, saveState, setDropDownViewResource, setNotifyOnChange, sort
 
Methods inherited from class android.widget.BaseAdapter
areAllItemsEnabled, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserver
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListItemAdapter

protected ListItemAdapter(@Nonnull
                          android.content.Context context,
                          @Nonnull
                          List<? extends LI> listItems)
Method Detail

createAndAttach

@Nonnull
public static <LI extends ListItem> ListItemAdapter<LI> createAndAttach(@Nonnull
                                                                                android.app.ListActivity listActivity,
                                                                                @Nonnull
                                                                                List<? extends LI> listItems)

attach

public static <LI extends ListItem> void attach(@Nonnull
                                                android.app.ListActivity listActivity,
                                                @Nonnull
                                                ListItemAdapter<? extends LI> adapter)

createAndAttach

@Nonnull
public static <LI extends ListItem> ListItemAdapter<LI> createAndAttach(@Nonnull
                                                                                ListFragment listFragment,
                                                                                @Nonnull
                                                                                List<? extends LI> listItems)

attach

public static <LI extends ListItem> void attach(@Nonnull
                                                ListFragment listFragment,
                                                @Nonnull
                                                ListItemAdapter<? extends LI> adapter)

createAndAttach

@Nonnull
public static <LI extends ListItem> ListItemAdapter<LI> createAndAttach(@Nonnull
                                                                                android.widget.ListView listView,
                                                                                @Nonnull
                                                                                List<? extends LI> listItems,
                                                                                @Nonnull
                                                                                android.content.Context context)

attach

public static <LI extends ListItem> void attach(@Nonnull
                                                android.widget.ListView listView,
                                                @Nonnull
                                                ListItemAdapter<? extends LI> adapter,
                                                @Nonnull
                                                android.content.Context context)

createAndAttach

@Nonnull
public static <LI extends ListItem> ListItemAdapter<LI> createAndAttach(@Nonnull
                                                                                android.app.ListFragment listFragment,
                                                                                @Nonnull
                                                                                List<? extends LI> listItems)

attach

public static <LI extends ListItem> void attach(@Nonnull
                                                android.app.ListFragment listFragment,
                                                @Nonnull
                                                ListItemAdapter<? extends LI> adapter)

newInstance

@Nonnull
public static <LI extends ListItem> ListItemAdapter<LI> newInstance(@Nonnull
                                                                            android.content.Context context,
                                                                            @Nonnull
                                                                            List<? extends LI> listItems)

getView

public android.view.View getView(int position,
                                 android.view.View convertView,
                                 android.view.ViewGroup parent)
Description copied from class: ListAdapter

Specified by:
getView in interface android.widget.Adapter
Overrides:
getView in class ListAdapter<LI extends ListItem>

getDropDownView

public android.view.View getDropDownView(int position,
                                         android.view.View convertView,
                                         android.view.ViewGroup parent)
Description copied from class: ListAdapter

Specified by:
getDropDownView in interface android.widget.SpinnerAdapter
Overrides:
getDropDownView in class ListAdapter<LI extends ListItem>


Copyright © 2014 se.solovyev. All Rights Reserved.