|
ESPRESSCHART 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.util.LocaleNumericFormat
public class LocaleNumericFormat
This class formats and parses numbers in a locale-specific way. Because it is a wrapper class of java.text.NumberFormat, it is not intended for displaying very large or very small numbers that require exponential notation. Please use quadbase.util.NumberFormat for these cases. This class cannot directly extand java.text.NumberFormat because java.text.NumberFormat is an abstract class. All formats implement quadbase.util.IFormat. Please use quadbase.util.IDataPointSet.setLabelFormat(int colIndex, IFormat format) to set the label format of a data column.
NumericFormat,
DateTimeFormat,
LocaleDateTimeFormat,
LogicalFormat,
IFormat| Field Summary | |
|---|---|
static int |
CURRENCY
|
static int |
NUMBER
|
static int |
PERCENT
|
| Fields inherited from interface quadbase.util.IFormat |
|---|
DATETIME, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC |
| Method Summary | |
|---|---|
java.lang.String |
format(java.lang.Object obj)
Define quadbase.util.IFormat. |
static LocaleNumericFormat |
getCurrencyInstance()
Create an instance of currency format for the default locale. |
static LocaleNumericFormat |
getCurrencyInstance(java.util.Locale locale)
Create an instance of currency format for the specified locale. |
int |
getFormatType()
Define quadbase.util.IFormat. |
int |
getInstanceType()
Get the type of the instance. |
java.text.NumberFormat |
getNumberFormat()
/** This method returns the java object from LocaleNumberFormat, and the returned value can later be used to setup the format of the current instance. |
static LocaleNumericFormat |
getNumberInstance()
Create an instance of numeric format for the default locale. |
static LocaleNumericFormat |
getNumberInstance(java.util.Locale locale)
Create an instance of numeric format for the specified locale. |
static LocaleNumericFormat |
getPercentInstance()
Create an instance of percentage format for the default locale. |
static LocaleNumericFormat |
getPercentInstance(java.util.Locale locale)
Create an instance of percentage format for the specified locale. |
void |
setFormat(LocaleNumericFormat obj)
Copy the following attributes of the object to this: maximum fraction digits, minimum fraction digits, maximum integer digits, minimum integer digits, grouping and parse integer only. |
void |
setLocale(java.util.Locale locale)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static int CURRENCY
public static int NUMBER
public static int PERCENT
| Method Detail |
|---|
public void setLocale(java.util.Locale locale)
public int getFormatType()
getFormatType in interface IFormatpublic java.lang.String format(java.lang.Object obj)
format in interface IFormatobj - The target object
public static LocaleNumericFormat getCurrencyInstance()
public static LocaleNumericFormat getCurrencyInstance(java.util.Locale locale)
locale - the specified locale
public static LocaleNumericFormat getNumberInstance()
public static LocaleNumericFormat getNumberInstance(java.util.Locale locale)
locale - the specified locale
public static LocaleNumericFormat getPercentInstance()
public static LocaleNumericFormat getPercentInstance(java.util.Locale locale)
locale - the specified locale
public java.text.NumberFormat getNumberFormat()
public int getInstanceType()
public void setFormat(LocaleNumericFormat obj)
obj - Another LocaleNumericFormat instanceNumberFormat
|
ESPRESSCHART 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||