public class

Popup

extends Object
java.lang.Object
   ↳ com.esri.android.map.popup.Popup

Class Overview

Popup class.

Summary

Nested Classes
interface Popup.PopupListener Interface for a listener triggered by different changes of state of the popup  
Fields
protected FeatureType mFeatureType
Public Constructors
Popup(MapView mapView, PopupInfo popupInfo, Graphic graphic)
The Constructor.
Popup(MapView mapView, Graphic graphic)
The Constructor.
Popup(Context context, PopupInfo popupInfo, Graphic graphic, PopupLayout layout)
The Constructor.
Public Methods
void addAttachment(Uri uri)
Adds the attachment.
List<File> getAddedAttachments()
Gets the added attachments.
List<Integer> getDeletedAttachmentIDs()
Gets the deleted attachment ID's.
Graphic getGraphic()
Gets the graphic.
PopupLayout getLayout()
Gets the layout.
PopupInfo getPopupInfo()
Gets the popup info.
Popup.PopupListener getPopupListener()
Gets the popup listener.
static String getPopupString(String popupString, String defaultValue, Context context)
Gets the popup string.
static String getPopupString(String popupString, Context context)
Gets the popup string.
Map<StringObject> getUpdatedAttributes()
Gets the updated attributes.
boolean isAllowGeometryUpdate()
Checks if is allow geometry update.
boolean isDeletable()
Checks if is deletable.
boolean isEditMode()
Checks if is edit mode.
boolean isEditable()
Checks if is editable.
boolean isPopupValid()
Checks if the popup is valid.
void refresh()
Refresh.
void setAllowGeometryUpdate(boolean mAllowGeometryUpdate)
Sets the allow geometry update.
void setCredentials(UserCredentials credentials)
Sets the credentials.
void setDeletable(boolean mDeletable)
Sets the deletable.
void setEditMode(boolean editMode)
Sets the edit mode.
void setEditable(boolean mEditable)
Sets the editable.
void setLayout(PopupLayout layout)
Sets the layout.
void setPopupListener(Popup.PopupListener popupListener)
Sets the popup listener.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected FeatureType mFeatureType

Public Constructors

public Popup (MapView mapView, PopupInfo popupInfo, Graphic graphic)

The Constructor.

Parameters
popupInfo the popup info
graphic the graphic

public Popup (MapView mapView, Graphic graphic)

The Constructor.

Parameters
graphic the graphic

public Popup (Context context, PopupInfo popupInfo, Graphic graphic, PopupLayout layout)

The Constructor.

Parameters
context the context
popupInfo the popup info
graphic the graphic
layout the layout

Public Methods

public void addAttachment (Uri uri)

Adds the attachment.

Parameters
uri the uri

public List<File> getAddedAttachments ()

Gets the added attachments.

Returns
  • the added attachments

public List<Integer> getDeletedAttachmentIDs ()

Gets the deleted attachment ID's.

Returns
  • the deleted attachment ID's

public Graphic getGraphic ()

Gets the graphic.

Returns
  • the mGraphic

public PopupLayout getLayout ()

Gets the layout.

Returns
  • the layout

public PopupInfo getPopupInfo ()

Gets the popup info.

Returns
  • the popup info

public Popup.PopupListener getPopupListener ()

Gets the popup listener.

Returns
  • the mPopupListener

public static String getPopupString (String popupString, String defaultValue, Context context)

Gets the popup string.

Parameters
popupString the popup string
defaultValue the default value
context the context
Returns
  • the popup string

public static String getPopupString (String popupString, Context context)

Gets the popup string.

Parameters
popupString the popup string
context the context
Returns
  • the popup string

public Map<StringObject> getUpdatedAttributes ()

Gets the updated attributes.

Returns
  • the updated attributes

public boolean isAllowGeometryUpdate ()

Checks if is allow geometry update.

Returns
  • the mAllowGeometryUpdate

public boolean isDeletable ()

Checks if is deletable.

Returns
  • the mDeletable

public boolean isEditMode ()

Checks if is edit mode.

Returns
  • the editMode

public boolean isEditable ()

Checks if is editable.

Returns
  • the mEditable

public boolean isPopupValid ()

Checks if the popup is valid.

Returns
  • true, if the popup is valid

public void refresh ()

Refresh.

public void setAllowGeometryUpdate (boolean mAllowGeometryUpdate)

Sets the allow geometry update.

Parameters
mAllowGeometryUpdate the mAllowGeometryUpdate to set

public void setCredentials (UserCredentials credentials)

Sets the credentials.

Parameters
credentials the credentials

public void setDeletable (boolean mDeletable)

Sets the deletable.

Parameters
mDeletable the mDeletable to set

public void setEditMode (boolean editMode)

Sets the edit mode.

Parameters
editMode the edits the mode

public void setEditable (boolean mEditable)

Sets the editable.

Parameters
mEditable the mEditable to set

public void setLayout (PopupLayout layout)

Sets the layout.

Parameters
layout the layout

public void setPopupListener (Popup.PopupListener popupListener)

Sets the popup listener.

Parameters
popupListener the popupListener to set