public class

ArcGISEditAttributesAdapter

extends ArcGISAttributesAdapter
implements PopupValid
java.lang.Object
   ↳ com.esri.android.map.popup.ArcGISAttributesAdapter
     ↳ com.esri.android.map.popup.ArcGISEditAttributesAdapter

Class Overview

Default attribute adapter to display graphic's attributes in edit mode.
Applications can either override this class to change the display of attributes in edit mode or use the setXXXLayoutResourceId setters to define new layouts based on the type of the field

Summary

Nested Classes
class ArcGISEditAttributesAdapter.CodedValueSpinnerAdapter  
class ArcGISEditAttributesAdapter.DateButtonOnClickListener  
class ArcGISEditAttributesAdapter.DateTimePickerDialog Dialog to display and edit date and time attribute. 
class ArcGISEditAttributesAdapter.DefaultAttributeValueEditText  
class ArcGISEditAttributesAdapter.EditTextBackgroundDrawable  
class ArcGISEditAttributesAdapter.RangeSpinnerAdapter  
interface ArcGISEditAttributesAdapter.Required Interface used to define the behavior of a view when an attribute is required (nullable = false) 
class ArcGISEditAttributesAdapter.SpinnerBackgroundDrawable  
class ArcGISEditAttributesAdapter.TextViewSpinner  
Constants
String NULL
[Expand]
Inherited Constants
From class com.esri.android.map.popup.ArcGISAttributesAdapter
From interface android.widget.Adapter
Fields
public int mDateTimeViewId
[Expand]
Inherited Fields
From class com.esri.android.map.popup.ArcGISAttributesAdapter
Public Constructors
ArcGISEditAttributesAdapter(Context context, Popup popup)
Constructor taking a context and a poup.
Public Methods
Map<String, Object> getAttributes()
Gets the attributes.
View getView(int position, View convertView, ViewGroup parent)
boolean isValid()
Checks if values in the view are valid.
void refresh()
Perform housekeeping when needed
Protected Methods
ViewGroup createDefaultLayout(ArcGISAttributesAdapter.FIELD_TYPE fieldType)
Creates a default layout for this adapter based on the field type
void setBehavior(EditText editText, String attributeName, int maxLength, int type)
void setRequiredState(View view, boolean required)
Sets the required state for a view if necessary and if a view implements the ArcGISEditAttributesAdapter.Required interface
[Expand]
Inherited Methods
From class com.esri.android.map.popup.ArcGISAttributesAdapter
From class java.lang.Object
From interface android.widget.Adapter
From interface com.esri.android.map.popup.PopupValid

Constants

protected static final String NULL

Constant Value: ""

Fields

public int mDateTimeViewId

Public Constructors

public ArcGISEditAttributesAdapter (Context context, Popup popup)

Constructor taking a context and a poup.

Parameters
context Context: the context
popup Popup: the popup

Public Methods

public Map<String, Object> getAttributes ()

Gets the attributes.

Returns
Map<String, Object> the attributes

public View getView (int position, View convertView, ViewGroup parent)

Parameters
position int
convertView View
parent ViewGroup
Returns
View

public boolean isValid ()

Checks if values in the view are valid.

Returns
boolean true, if all the criteria defined for this view were met.

public void refresh ()

Perform housekeeping when needed

Protected Methods

protected ViewGroup createDefaultLayout (ArcGISAttributesAdapter.FIELD_TYPE fieldType)

Creates a default layout for this adapter based on the field type

Parameters
fieldType ArcGISAttributesAdapter.FIELD_TYPE: the ArcGISAttributesAdapter.FIELD_TYPE
Returns
ViewGroup a layout (ViewGroup)

protected void setBehavior (EditText editText, String attributeName, int maxLength, int type)

Parameters
editText EditText
attributeName String
maxLength int
type int

protected void setRequiredState (View view, boolean required)

Sets the required state for a view if necessary and if a view implements the ArcGISEditAttributesAdapter.Required interface

Parameters
view View: the view
required boolean: the state to be set