|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.table.DefaultTableFormatter
public class DefaultTableFormatter
DefaultTableFormatter is the default TableFormatter.
It formats objects according to their type, for which purpose, there are 3 different number formats:
Field Summary | |
---|---|
protected NumberFormat |
currencyFormat
the number format for currency values |
protected NumberFormat |
doubleFormat
the number format for double values |
protected NumberFormat |
numberFormat
the number format for numbers other than double and currency |
Constructor Summary | |
---|---|
DefaultTableFormatter()
Constructs a DefaultTableFormatter. |
Method Summary | |
---|---|
String |
format(Object value,
TableMeasure measure,
Locale locale)
Evaluates the string representation of a value, given its measure and a locale. |
NumberFormat |
getCurrencyFormat()
Retrieves the format for currency values. |
NumberFormat |
getDoubleFormat()
Retrieves the format for double values. |
NumberFormat |
getNumberFormat()
Retrieves the format for numbers other than double and currency. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NumberFormat numberFormat
protected NumberFormat doubleFormat
protected NumberFormat currencyFormat
Constructor Detail |
---|
public DefaultTableFormatter()
Method Detail |
---|
public String format(Object value, TableMeasure measure, Locale locale)
format
in interface TableFormatter
value
- the value to formatmeasure
- the measure to which the value belongslocale
- a locale to format into
public NumberFormat getCurrencyFormat()
public NumberFormat getDoubleFormat()
public NumberFormat getNumberFormat()
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |