java.lang.Object | |
↳ | com.esri.android.map.popup.ArcGISAttachmentsAdapter |
Default adapter for attachments
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
android.widget.Adapter
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected LinkedHashMap<AttachmentInfo, ArcGISAttachmentsAdapter.ATTACHMENT_STATUS> | mAttachmentInfos |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ArcGISAttachmentsAdapter(Context context, Popup popup, File downloadDirectory)
Constructor taking a context, a popup and a download directory.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | areAllItemsEnabled() | ||||||||||
int |
getColumnWidth()
Gets the column width for the grid.
| ||||||||||
int | getCount() | ||||||||||
AttachmentInfo | getItem(int position) | ||||||||||
long | getItemId(int position) | ||||||||||
int | getItemViewType(int position) | ||||||||||
View | getView(int position, View convertView, ViewGroup parent) | ||||||||||
int | getViewTypeCount() | ||||||||||
boolean | hasStableIds() | ||||||||||
boolean | isEmpty() | ||||||||||
boolean | isEnabled(int position) | ||||||||||
void |
notifyDataSetChanged()
Notifies the attached View that the underlying data has been changed and it should refresh itself.
| ||||||||||
void |
notifyDataSetInvalidated()
Notify data set invalidated.
| ||||||||||
void | registerDataSetObserver(DataSetObserver observer) | ||||||||||
void |
setColumnWidth(int columnWidth)
Sets the column width for the grid.
| ||||||||||
void |
setEditMode(boolean editMode)
Sets the edit mode.
| ||||||||||
void | unregisterDataSetObserver(DataSetObserver observer) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.widget.Adapter
| |||||||||||
From interface
android.widget.ListAdapter
| |||||||||||
From interface
com.esri.android.map.popup.PopupEditable
|
Constructor taking a context, a popup and a download directory. If the download directory is not provided, a default one will be used.
context | the context |
---|---|
popup | the popup |
downloadDirectory | the download directory |
Gets the column width for the grid.
Notifies the attached View that the underlying data has been changed and it should refresh itself.
Notify data set invalidated.
Sets the column width for the grid.
columnWidth | the column width |
---|
Sets the edit mode.
editMode | the edits the mode: true to switch to edit mode, false to revert to read-only mode |
---|