|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.map.popup.PopupFormatValue com.esri.core.map.popup.PopupNumberFormatValue
public class PopupNumberFormatValue
The PopupNumberFormatValue class extends PopupFormatValue
and represents the number format.
Constructor Summary | |
---|---|
PopupNumberFormatValue()
Default constructor for PopupNumberFormatValue |
|
PopupNumberFormatValue(int places,
boolean digitSeparator)
Constructor for PopupNumberFormatValue that sets some formatting values. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.esri.core.map.popup.PopupFormatValue |
---|
fromJson |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PopupNumberFormatValue()
public PopupNumberFormatValue(int places, boolean digitSeparator)
places
- Sets the maximum number of digits allowed in the fraction portion of a number.digitSeparator
- Set whether or not grouping will be used in this format.Method Detail |
---|
public int getPlaces()
public void setPlaces(int places)
places
- The maximum number of digits allowed in the fraction portionpublic boolean getDigitSeparator()
public void setDigitSeparator(boolean digitSeparator)
digitSeparator
- True if grouping should be used, false otherwisepublic String formattedValue(Object value)
formattedValue
in class PopupFormatValue
value
- The value to be formatted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |