com.esri.android.action
Class IdentifyResultSpinnerAdapter

java.lang.Object
  extended by com.esri.android.action.IdentifyResultSpinnerAdapter
All Implemented Interfaces:
android.widget.Adapter, android.widget.SpinnerAdapter

public class IdentifyResultSpinnerAdapter
extends Object
implements android.widget.SpinnerAdapter

Convenient class to display a List of IdentifyResults in a Spinner


Field Summary
 
Fields inherited from interface android.widget.Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION
 
Constructor Summary
IdentifyResultSpinnerAdapter(android.content.Context context, List<IdentifyResult> results)
          Constructor taking in a List of results intended to be displayed in a IdentifyResultSpinner
 
Method Summary
 int getCount()
           
 android.view.View getDropDownView(int position, android.view.View convertView, android.view.ViewGroup parent)
           
 Object getItem(int position)
           
 long getItemId(int position)
           
 int getItemViewType(int position)
           
 android.view.View getView(int position, android.view.View convertView, android.view.ViewGroup parent)
           
 int getViewTypeCount()
           
 boolean hasStableIds()
           
 boolean isEmpty()
           
 void registerDataSetObserver(android.database.DataSetObserver observer)
           
 void unregisterDataSetObserver(android.database.DataSetObserver observer)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentifyResultSpinnerAdapter

public IdentifyResultSpinnerAdapter(android.content.Context context,
                                    List<IdentifyResult> results)
Constructor taking in a List of results intended to be displayed in a IdentifyResultSpinner

Parameters:
context - the context of the application
results - the results to be displayed
Method Detail

getCount

public int getCount()
Specified by:
getCount in interface android.widget.Adapter

getItem

public Object 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

getView

public android.view.View getView(int position,
                                 android.view.View convertView,
                                 android.view.ViewGroup parent)
Specified by:
getView in interface android.widget.Adapter

getDropDownView

public android.view.View getDropDownView(int position,
                                         android.view.View convertView,
                                         android.view.ViewGroup parent)
Specified by:
getDropDownView in interface android.widget.SpinnerAdapter

getItemViewType

public int getItemViewType(int position)
Specified by:
getItemViewType in interface android.widget.Adapter

getViewTypeCount

public int getViewTypeCount()
Specified by:
getViewTypeCount in interface android.widget.Adapter

hasStableIds

public boolean hasStableIds()
Specified by:
hasStableIds in interface android.widget.Adapter

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface android.widget.Adapter

registerDataSetObserver

public void registerDataSetObserver(android.database.DataSetObserver observer)
Specified by:
registerDataSetObserver in interface android.widget.Adapter

unregisterDataSetObserver

public void unregisterDataSetObserver(android.database.DataSetObserver observer)
Specified by:
unregisterDataSetObserver in interface android.widget.Adapter


Copyright © 2012. All Rights Reserved.