public final class DefaultNumericFormats
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
format(java.lang.Object value,
java.lang.String format,
java.util.Locale locale)
Formats a given value according to the provided format string and locale.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getAllFormats()
Gets all defined formats.
|
boolean |
getAutoResetFormats()
Gets a value indicating whether the format collections will be reset after a change in the locale.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getBooleanFormats()
Gets the default boolean formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getCurrencyFormats()
Gets the default currency formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getCurrencyFormats(CurrencyCodeInfo c)
Gets the default currency formats from the CurrencyCodeInfo relationship.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getDateFormats()
Gets the default date formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getFractionFormats()
Gets the default fraction formats.
|
java.util.Locale |
getLocale()
Gets the locale.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getNumberFormats()
Gets the default number formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getPercentFormats()
Gets the default percent formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getScientificFormats()
Gets the default scientific formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getTextFormats()
Gets the default text formats.
|
com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> |
getTimeFormats()
Gets the default time formats.
|
void |
reset()
Resets the numeric formats.
|
void |
setAutoResetFormats(boolean value)
Sets a value indicating whether the format collections will be reset after a change in the locale.
|
void |
setLocale(java.util.Locale value)
Sets the locale.
|
public static java.lang.String format(java.lang.Object value,
java.lang.String format,
java.util.Locale locale)
public boolean getAutoResetFormats()
public void setAutoResetFormats(boolean value)
public java.util.Locale getLocale()
public void setLocale(java.util.Locale value)
public void reset()
This method is called automatically after Locale changes if AutoResetFormats is set to true.
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getNumberFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getPercentFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getCurrencyFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getCurrencyFormats(CurrencyCodeInfo c)
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getDateFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getTimeFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getScientificFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getFractionFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getBooleanFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getTextFormats()
public com.mindfusion.common.ExtendedArrayList<NumericFormatInfo> getAllFormats()