public class

ArcGISAttachmentsView

extends ArcGISAbstractMediaView
implements AttachmentView PopupRefreshable PopupEditable
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.esri.android.map.popup.ArcGISAbstractMediaView
           ↳ com.esri.android.map.popup.ArcGISAttachmentsView

Class Overview

Default view to display attachments in the popup.

Summary

[Expand]
Inherited Constants
From class com.esri.android.map.popup.ArcGISAbstractMediaView
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
Fields
protected ArcGISReadOnlyAttributesAdapter.FieldValueView mSpecialMessage
[Expand]
Inherited Fields
From class com.esri.android.map.popup.ArcGISAbstractMediaView
From class android.view.View
Public Constructors
ArcGISAttachmentsView(Context context, Popup popup)
Constructor taking a Context and a Popup.
Public Methods
void addAttachment(Uri uri)
Adds an attachment.
List<File> getAddedAttachments()
Returns the added attachments
List<Integer> getDeletedAttachmentIDs()
Returns the ID's of the deleted attachments.
void refresh()
Refresh the view.
void setEditMode(boolean editMode)
Sets the edit mode.
Protected Methods
void displayMessage(String message, boolean hideGrid)
void onAttachedToWindow()
wait until popup view is ready (attached to window) then update the status.
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[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.AttachmentView
From interface com.esri.android.map.popup.PopupRefreshable
From interface com.esri.android.map.popup.PopupEditable

Fields

Public Constructors

public ArcGISAttachmentsView (Context context, Popup popup)

Constructor taking a Context and a Popup.

Parameters
context Context: the context
popup Popup: the popup

Public Methods

public void addAttachment (Uri uri)

Adds an attachment.

Parameters
uri Uri: the uri of the attachment to be added

public List<File> getAddedAttachments ()

Returns the added attachments

Returns
List<File> a List of added files

public List<Integer> getDeletedAttachmentIDs ()

Returns the ID's of the deleted attachments.

Returns
List<Integer> a List of ID's of the deleted attachments

public void refresh ()

Refresh the view.

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

Protected Methods

protected void displayMessage (String message, boolean hideGrid)

Parameters
message String
hideGrid boolean

protected void onAttachedToWindow ()

wait until popup view is ready (attached to window) then update the status. A simple view.post() would be ignored if the view is not ready. this happens in feature layer when the query for attachment comes back so fast that view is not ready to consume it.

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Parameters
widthMeasureSpec int
heightMeasureSpec int