public abstract class

ArcGISAttributesAdapter

extends Object
implements Adapter
java.lang.Object
   ↳ com.esri.android.map.popup.ArcGISAttributesAdapter
Known Direct Subclasses

Class Overview

Abstract adapter class to display graphic attributes in the popup.

Summary

Nested Classes
class ArcGISAttributesAdapter.FieldLabelView Default view class to display an attribute label  
class ArcGISAttributesAdapter.SeparatorView Default view class to display a separator  
[Expand]
Inherited Constants
From interface android.widget.Adapter
Fields
protected Map<StringObject> mAttributes
protected Context mContext
protected FeatureType mFeatureType
protected Popup mPopup
protected ArcGISValueFormat mValueFormat
Public Methods
boolean areAllItemsEnabled()
Are all items enabled.
String getAttributeName(int position)
Gets the attribute name.
Object getAttributeValue(String attributeName)
Gets the attribute value.
int getCount()
Object getItem(int position)
long getItemId(int position)
int getItemViewType(int position)
int getViewTypeCount()
boolean hasStableIds()
boolean isEmpty()
boolean isEnabled(int position)
Checks if is enabled.
void notifyDataSetChanged()
Notifies the attached View that the underlying data has been changed and it should refresh itself.
void notifyDataSetInvalidated()
Notify data set invalidated.
abstract void refresh()
Perform housekeeping when needed
void registerDataSetObserver(DataSetObserver observer)
void reset()
Reset the attributes to their initial value.
void unregisterDataSetObserver(DataSetObserver observer)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.widget.Adapter

Fields

protected Map<StringObject> mAttributes

protected Context mContext

protected FeatureType mFeatureType

protected Popup mPopup

protected ArcGISValueFormat mValueFormat

Public Methods

public boolean areAllItemsEnabled ()

Are all items enabled.

Returns
  • true, if are all items enabled

public String getAttributeName (int position)

Gets the attribute name.

Parameters
position the position
Returns
  • the attribute name

public Object getAttributeValue (String attributeName)

Gets the attribute value.

Parameters
attributeName the attribute name
Returns
  • the attribute value

public int getCount ()

public Object getItem (int position)

public long getItemId (int position)

public int getItemViewType (int position)

public int getViewTypeCount ()

public boolean hasStableIds ()

public boolean isEmpty ()

public boolean isEnabled (int position)

Checks if is enabled.

Parameters
position the position
Returns
  • true, if checks if is enabled

public void notifyDataSetChanged ()

Notifies the attached View that the underlying data has been changed and it should refresh itself.

public void notifyDataSetInvalidated ()

Notify data set invalidated.

public abstract void refresh ()

Perform housekeeping when needed

public void registerDataSetObserver (DataSetObserver observer)

public void reset ()

Reset the attributes to their initial value.

public void unregisterDataSetObserver (DataSetObserver observer)