public class

PopupNumberFormatValue

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

Class Overview

The PopupNumberFormatValue class extends PopupFormatValue and represents the number format.

Summary

Public Constructors
PopupNumberFormatValue()
Default constructor for PopupNumberFormatValue.
PopupNumberFormatValue(int places, boolean digitSeparator)
Constructor for PopupNumberFormatValue that sets some formatting values.
Public Methods
String formattedValue(Object value)
Formats a given number object into a string.
boolean getDigitSeparator()
Returns true if grouping is used in this format, false otherwise.
int getPlaces()
Returns the maximum number of digits allowed in the fraction portion of a number.
void setDigitSeparator(boolean digitSeparator)
Set whether or not grouping will be used in this format.
void setPlaces(int places)
Sets the maximum number of digits allowed in the fraction portion of a number.
[Expand]
Inherited Methods
From class com.esri.core.map.popup.PopupFormatValue
From class java.lang.Object

Public Constructors

public PopupNumberFormatValue ()

Default constructor for PopupNumberFormatValue.

public PopupNumberFormatValue (int places, boolean digitSeparator)

Constructor for PopupNumberFormatValue that sets some formatting values.

Parameters
places int: Sets the maximum number of digits allowed in the fraction portion of a number.
digitSeparator boolean: Set whether or not grouping will be used in this format.

Public Methods

public String formattedValue (Object value)

Formats a given number object into a string.

Parameters
value Object: the value
Returns
String The value formatted as a Number, represented as a String.

public boolean getDigitSeparator ()

Returns true if grouping is used in this format, false otherwise.

Returns
boolean true if grouping is used in this format, false otherwise

public int getPlaces ()

Returns the maximum number of digits allowed in the fraction portion of a number.

Returns
int places

public void setDigitSeparator (boolean digitSeparator)

Set whether or not grouping will be used in this format.

Parameters
digitSeparator boolean: True if grouping should be used, false otherwise

public void setPlaces (int places)

Sets the maximum number of digits allowed in the fraction portion of a number.

Parameters
places int: The maximum number of digits allowed in the fraction portion