public class

ArcGISValueFormat

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

Class Overview

Convenient class to format values in the popup.

Summary

Public Constructors
ArcGISValueFormat(Popup popup)
Constructor taking a Popup.
Public Methods
String formatValue(Object value, PopupFieldInfo fieldInfo)
Format the value using the information contained in the PopupFieldInfo.
String formatValue(Object obj)
Format the value based on its type.
String formatValue(FeatureType featureType, Object value, PopupFieldInfo fieldInfo)
Format the value using the information contained in the PopupFieldInfo and the FeatureType provided.
Domain getDomain(FeatureType featureType, PopupFieldInfo fieldInfo, Field field)
Get the domain for the given feature type and field.
Protected Methods
String getCodedValueAndFormat(FeatureType featureType, Object value, PopupFieldInfo fieldInfo)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ArcGISValueFormat (Popup popup)

Constructor taking a Popup.

Parameters
popup Popup: the popup

Public Methods

public String formatValue (Object value, PopupFieldInfo fieldInfo)

Format the value using the information contained in the PopupFieldInfo.

Parameters
value Object: the value
fieldInfo PopupFieldInfo: the field info
Returns
String the string

public String formatValue (Object obj)

Format the value based on its type.

Parameters
obj Object: the obj
Returns
String the string

public String formatValue (FeatureType featureType, Object value, PopupFieldInfo fieldInfo)

Format the value using the information contained in the PopupFieldInfo and the FeatureType provided.

Parameters
featureType FeatureType: the feature type
value Object: the value
fieldInfo PopupFieldInfo: the field info
Returns
String the string

public Domain getDomain (FeatureType featureType, PopupFieldInfo fieldInfo, Field field)

Get the domain for the given feature type and field.

Parameters
featureType FeatureType
fieldInfo PopupFieldInfo: the popup field info
field Field: the given field
Returns
Domain the domain

Protected Methods

protected String getCodedValueAndFormat (FeatureType featureType, Object value, PopupFieldInfo fieldInfo)

Parameters
featureType FeatureType
value Object
fieldInfo PopupFieldInfo
Returns
String