|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectquadbase.reportdesigner.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.reportdesigner.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.reportdesigner.util.IFormat. Please use quadbase.reportdesigner.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
Currency format |
static int |
NUMBER
Number format |
static int |
PERCENT
Percent format |
| Fields inherited from interface quadbase.reportdesigner.util.IFormat |
|---|
BARCODE, DATETIME, IMAGEURL, LOCALEDATETIME, LOCALENUMERIC, LOGICAL, NUMERIC, STRING, TEXTURL |
| Method Summary | |
|---|---|
static LocaleNumericFormat |
createFormat(java.lang.String text)
For internal use only. |
java.lang.String |
format(java.lang.Object obj)
Define quadbase.reportdesigner.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.reportdesigner.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. |
java.lang.String |
getTextFormat()
For internal use only. |
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)
Sets the format locale |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CURRENCY
public static final int NUMBER
public static final int PERCENT
| Method Detail |
|---|
public void setLocale(java.util.Locale locale)
locale - The locale to become this format 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 instanceNumberFormatpublic java.lang.String getTextFormat()
getTextFormat in interface IFormat
public static LocaleNumericFormat createFormat(java.lang.String text)
throws java.lang.Exception
java.lang.Exception
|
EspressReport 6.3 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||