public class

ArcGISAttributeView

extends LinearLayout
implements AttributeView PopupEditable PopupRefreshable 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<StringObject> 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.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.esri.android.map.popup.AttributeView
From interface com.esri.android.map.popup.PopupEditable
From interface com.esri.android.map.popup.PopupRefreshable
From interface com.esri.android.map.popup.PopupValid

Public Constructors

public ArcGISAttributeView (Context context, Popup popup)

Constructor taking a popup.

Parameters
context the context
popup the popup

Public Methods

public ArcGISAttributesAdapter getEditAdapter ()

Gets the edit adapter.

Returns
  • the mEditAdapter

public ArcGISAttributesAdapter getReadOnlyAdapter ()

Gets the read only adapter.

Returns
  • the mReadOnlyAdapter

public Map<StringObject> getUpdatedAttributes ()

Gets the updated attributes.

Returns
  • 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
  • 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
  • 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 the edits the adapter

public void setEditMode (boolean editMode)

Sets the edit mode.

Parameters
editMode 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 the read only adapter