public class

PopupDateFormatValue

extends PopupFormatValue
java.lang.Object
   ↳ com.esri.core.map.popup.PopupFormatValue
     ↳ com.esri.core.map.popup.PopupDateFormatValue

Class Overview

The PopupDateFormatValue class extends PopupFormatValue and represents the date format.

Summary

Nested Classes
enum PopupDateFormatValue.DATE_FORMAT Enumeration of all the date formats that are supported by a popup. 
Public Constructors
PopupDateFormatValue()
Default constructor for PopupDateFormatValue
PopupDateFormatValue(PopupDateFormatValue.DATE_FORMAT format)
Constructor for PopupDateFormatValue that sets an initial PopupDateFormatValue.DATE_FORMAT.
Public Methods
String formattedValue(Object value)
Formats a given date object into a string.
SimpleDateFormat getFormat()
Returns the SimpleDateFormat of this PopupDateFormatValue.
void setFormat(PopupDateFormatValue.DATE_FORMAT format)
Sets the date format using a PopupDateFormatValue.DATE_FORMAT.
void setFormat(SimpleDateFormat format)
Sets the date format according to the given SimpleDateFormat object.
[Expand]
Inherited Methods
From class com.esri.core.map.popup.PopupFormatValue
From class java.lang.Object

Public Constructors

public PopupDateFormatValue ()

Default constructor for PopupDateFormatValue

public PopupDateFormatValue (PopupDateFormatValue.DATE_FORMAT format)

Constructor for PopupDateFormatValue that sets an initial PopupDateFormatValue.DATE_FORMAT.

Parameters
format A PopupDateFormatValue.DATE_FORMAT.

Public Methods

public String formattedValue (Object value)

Formats a given date object into a string. Examples of date objects are a date value expressed in milliseconds and a Date object.

Parameters
value The value to be formatted
Returns
  • The value formatted as a Date, represented as a String.

public SimpleDateFormat getFormat ()

Returns the SimpleDateFormat of this PopupDateFormatValue.

Returns
  • A SimpleDateFormat object.

public void setFormat (PopupDateFormatValue.DATE_FORMAT format)

Sets the date format using a PopupDateFormatValue.DATE_FORMAT.

Parameters
format The format as a PopupDateFormatValue.DATE_FORMAT

public void setFormat (SimpleDateFormat format)

Sets the date format according to the given SimpleDateFormat object. The SimpleDateFormat will be mapped to a PopupDateFormatValue.DATE_FORMAT.

Parameters
format The format as a SimpleDateFormat