public class

ArcGISAttributeView

extends LinearLayout
implements AttributeView PopupRefreshable PopupEditable PopupValid
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.esri.android.map.popup.ArcGISAttributeView

Class Overview

Default view to display graphic's attributes in the popup.
It requires 2 adapters: one for the read-only mode and one for the edit mode.

Summary

[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
ArcGISAttributeView(Context context, Popup popup)
Constructor taking a popup.
Public Methods
ArcGISAttributesAdapter getEditAdapter()
Gets the edit adapter.
ArcGISAttributesAdapter getReadOnlyAdapter()
Gets the read only adapter.
Map<String, Object> getUpdatedAttributes()
Gets the updated attributes.
boolean isAttributesUpdated()
Returns true if any of the feature's attributes have been changed from their original values, false otherwise.
boolean isValid()
Checks if values in the view are valid.
void refresh()
Refresh the view.
void setEditAdapter(ArcGISAttributesAdapter editAdapter)
Sets the edit adapter.
void setEditMode(boolean editMode)
Sets the edit mode.
void setReadOnlyAdapter(ArcGISAttributesAdapter readOnlyAdapter)
Sets the read only adapter.
[Expand]
Inherited Methods
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface com.esri.android.map.popup.AttributeView
From interface com.esri.android.map.popup.PopupRefreshable
From interface com.esri.android.map.popup.PopupEditable
From interface com.esri.android.map.popup.PopupValid

Public Constructors

public ArcGISAttributeView (Context context, Popup popup)

Constructor taking a popup.

Parameters
context Context: the context
popup Popup: the popup

Public Methods

public ArcGISAttributesAdapter getEditAdapter ()

Gets the edit adapter.

Returns
ArcGISAttributesAdapter the mEditAdapter

public ArcGISAttributesAdapter getReadOnlyAdapter ()

Gets the read only adapter.

Returns
ArcGISAttributesAdapter the mReadOnlyAdapter

public Map<String, Object> getUpdatedAttributes ()

Gets the updated attributes.

Returns
Map<String, Object> the updated attributes

public boolean isAttributesUpdated ()

Returns true if any of the feature's attributes have been changed from their original values, false otherwise.

Returns
boolean true if any of the feature's attributes have been changed from their original values, false otherwise

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 ()

Refresh the view.

public void setEditAdapter (ArcGISAttributesAdapter editAdapter)

Sets the edit adapter.

Parameters
editAdapter ArcGISAttributesAdapter: the edits the adapter

public void setEditMode (boolean editMode)

Sets the edit mode.

Parameters
editMode boolean: the edits the mode: true to switch to edit mode, false to revert to read-only mode

public void setReadOnlyAdapter (ArcGISAttributesAdapter readOnlyAdapter)

Sets the read only adapter.

Parameters
readOnlyAdapter ArcGISAttributesAdapter: the read only adapter