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, Feature feature)
The Constructor.
Popup(MapView mapView, PopupInfo popupInfo, Feature feature)
The Constructor.
Popup(MapView mapView, PopupInfo popupInfo, Feature feature, PopupLayout popupLayout)
The Constructor.
Popup(MapView mapView, PopupInfo popupInfo, Feature feature, PopupLayout popupLayout, boolean useDefaultViews)
The Constructor.
Popup(MapView mapView, PopupInfo popupInfo, Feature feature, PopupLayout popupLayout, boolean useDefaultViews, UserCredentials credentials)
Popup(Context context, PopupInfo popupInfo, Feature feature, PopupLayout layout)
This constructor is deprecated. please use constructor Popup(MapView, PopupInfo, Feature, PopupLayout) for replacement.
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.
Feature getFeature()
Gets the feature.
Graphic getGraphic()
This method is deprecated. please use getFeature() for replacement.
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<String, Object> 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, Feature feature)

The Constructor.

Parameters
feature Feature: the feature

public Popup (MapView mapView, PopupInfo popupInfo, Feature feature)

The Constructor.

Parameters
popupInfo PopupInfo: the popup info
feature Feature: the feature

public Popup (MapView mapView, PopupInfo popupInfo, Feature feature, PopupLayout popupLayout)

The Constructor.

Parameters
popupInfo PopupInfo: the popup info
feature Feature: the feature
popupLayout PopupLayout: the popup layout. If null the default layout will be used.

public Popup (MapView mapView, PopupInfo popupInfo, Feature feature, PopupLayout popupLayout, boolean useDefaultViews)

The Constructor.

Parameters
popupInfo PopupInfo: the popup info
feature Feature: the feature
popupLayout PopupLayout: the popup layout. If null the default layout will be used.
useDefaultViews boolean: if true the provided default views will be used. Otherwise developers should create their own views.

public Popup (MapView mapView, PopupInfo popupInfo, Feature feature, PopupLayout popupLayout, boolean useDefaultViews, UserCredentials credentials)

Parameters
mapView MapView
popupInfo PopupInfo
feature Feature
popupLayout PopupLayout
useDefaultViews boolean
credentials UserCredentials

public Popup (Context context, PopupInfo popupInfo, Feature feature, PopupLayout layout)

This constructor is deprecated.
please use constructor Popup(MapView, PopupInfo, Feature, PopupLayout) for replacement.

The Constructor.

Parameters
context Context: the context
popupInfo PopupInfo: the popup info
feature Feature: the feature
layout PopupLayout: the layout

Public Methods

public void addAttachment (Uri uri)

Adds the attachment.

Parameters
uri Uri: the uri

public List<File> getAddedAttachments ()

Gets the added attachments.

Returns
List<File> the added attachments

public List<Integer> getDeletedAttachmentIDs ()

Gets the deleted attachment ID's.

Returns
List<Integer> the deleted attachment ID's

public Feature getFeature ()

Gets the feature.

Returns
Feature the feature

public Graphic getGraphic ()

This method is deprecated.
please use getFeature() for replacement.

Gets the graphic. This method was deprecated in 10.2, use getFeature instead.

Returns
Graphic the mGraphic

public PopupLayout getLayout ()

Gets the layout.

Returns
PopupLayout the layout

public PopupInfo getPopupInfo ()

Gets the popup info.

Returns
PopupInfo the popup info

public Popup.PopupListener getPopupListener ()

Gets the popup listener.

Returns
Popup.PopupListener the mPopupListener

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

Gets the popup string.

Parameters
popupString String: the popup string
defaultValue String: the default value
context Context: the context
Returns
String the popup string

public static String getPopupString (String popupString, Context context)

Gets the popup string.

Parameters
popupString String: the popup string
context Context: the context
Returns
String the popup string

public Map<String, Object> getUpdatedAttributes ()

Gets the updated attributes.

Returns
Map<String, Object> the updated attributes

public boolean isAllowGeometryUpdate ()

Checks if is allow geometry update.

Returns
boolean the mAllowGeometryUpdate

public boolean isDeletable ()

Checks if is deletable.

Returns
boolean the mDeletable

public boolean isEditMode ()

Checks if is edit mode.

Returns
boolean the editMode

public boolean isEditable ()

Checks if is editable.

Returns
boolean the mEditable

public boolean isPopupValid ()

Checks if the popup is valid.

Returns
boolean true, if the popup is valid

public void refresh ()

Refresh.

public void setAllowGeometryUpdate (boolean mAllowGeometryUpdate)

Sets the allow geometry update.

Parameters
mAllowGeometryUpdate boolean: the mAllowGeometryUpdate to set

public void setCredentials (UserCredentials credentials)

Sets the credentials.

Parameters
credentials UserCredentials: the credentials

public void setDeletable (boolean mDeletable)

Sets the deletable.

Parameters
mDeletable boolean: the mDeletable to set

public void setEditMode (boolean editMode)

Sets the edit mode.

Parameters
editMode boolean: the edits the mode

public void setEditable (boolean mEditable)

Sets the editable.

Parameters
mEditable boolean: the mEditable to set

public void setLayout (PopupLayout layout)

Sets the layout.

Parameters
layout PopupLayout: the layout

public void setPopupListener (Popup.PopupListener popupListener)

Sets the popup listener.

Parameters
popupListener Popup.PopupListener: the popupListener to set