|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NumericPresentation>
to.etc.domui.component.meta.NumericPresentation
public enum NumericPresentation
Default numeric representations that can be used.
Enum Constant Summary | |
---|---|
MONEY
Default monetary representation. |
|
MONEY_FULL
Display as amount with currency symbol, thousands separators, decimal point and complete fraction (always) |
|
MONEY_FULL_TRUNC
Display as full, but if the fraction (cents) is all zeroes remove them |
|
MONEY_NO_SYMBOL
Display as a number having thousands separator and fraction but without currency symbol |
|
MONEY_NUMERIC
Just the amount, including faction, without any unnecessary adornments |
|
NUMBER
Just a run-of-the-mill number, containing only a fraction separator when needed |
|
NUMBER_FULL
Fully embellished number, with thousand separators and such |
|
NUMBER_SCIENTIFIC
Presented in full precision, moving to scientific (x.xxEyy) mode when needed |
|
UNKNOWN
No explicit presentation set. |
Method Summary | |
---|---|
static boolean |
isMonetary(NumericPresentation np)
|
static NumericPresentation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NumericPresentation[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NumericPresentation UNKNOWN
public static final NumericPresentation NUMBER
public static final NumericPresentation NUMBER_SCIENTIFIC
public static final NumericPresentation NUMBER_FULL
public static final NumericPresentation MONEY
public static final NumericPresentation MONEY_FULL
public static final NumericPresentation MONEY_FULL_TRUNC
public static final NumericPresentation MONEY_NO_SYMBOL
public static final NumericPresentation MONEY_NUMERIC
Method Detail |
---|
public static NumericPresentation[] values()
for (NumericPresentation c : NumericPresentation.values()) System.out.println(c);
public static NumericPresentation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic static boolean isMonetary(NumericPresentation np)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |