| Package | Description |
|---|---|
| to.etc.domui.component.meta | |
| to.etc.domui.component.meta.impl | |
| to.etc.domui.component.tbl | |
| to.etc.domui.converter |
| Modifier and Type | Method and Description |
|---|---|
NumericPresentation |
PropertyMetaModel.getNumericPresentation()
Used for numeric types, this returns how to present the number and defines the number's class, like
a monetary amount.
|
static NumericPresentation |
NumericPresentation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NumericPresentation[] |
NumericPresentation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
NumericPresentation.isMonetary(NumericPresentation np) |
static boolean |
NumericPresentation.isStripTrailingZeros(NumericPresentation np)
Returns if specified numeric presentation should be rendered without trailing zeros at the end of decimal fraction part.
|
| Modifier and Type | Method and Description |
|---|---|
NumericPresentation |
AbstractPropertyMetaModel.getNumericPresentation() |
NumericPresentation |
BasicPropertyMetaModel.getNumericPresentation() |
NumericPresentation |
PropertyMetaModelWrapper.getNumericPresentation() |
NumericPresentation |
ExpandedDisplayProperty.getNumericPresentation() |
NumericPresentation |
PathPropertyMetaModel.getNumericPresentation() |
| Modifier and Type | Method and Description |
|---|---|
void |
BasicPropertyMetaModel.setNumericPresentation(NumericPresentation numericPresentation) |
| Modifier and Type | Method and Description |
|---|---|
NumericPresentation |
SimpleColumnDef.getNumericPresentation() |
NumericPresentation |
ColumnDef.getNumericPresentation() |
| Modifier and Type | Method and Description |
|---|---|
SimpleColumnDef<T> |
SimpleColumnDef.numeric(NumericPresentation np)
Set the numeric presentation for this column.
|
ColumnDef<I,T> |
ColumnDef.numeric(NumericPresentation np)
Set the numeric presentation for this column.
|
void |
SimpleColumnDef.setNumericPresentation(NumericPresentation numericPresentation) |
| Modifier and Type | Method and Description |
|---|---|
NumericPresentation |
NumberConverter.getPresentation() |
| Modifier and Type | Method and Description |
|---|---|
static IConverter<BigDecimal> |
MoneyConverterFactory.createBigDecimalMoneyConverters(NumericPresentation np)
Returns one of the converter classes for converting a double into one of the numericPresentations.
|
static IConverter<Double> |
MoneyConverterFactory.createDoubleMoneyConverters(NumericPresentation np)
Returns one of the converter classes for converting a double into one of the numericPresentations.
|
static <T extends Number> |
NumericUtil.createNumberConverter(Class<T> type,
NumericPresentation np,
int scale) |
static BigDecimal |
NumericUtil.parseBigDecimal(String input,
int scale,
NumericPresentation np) |
static Double |
NumericUtil.parseDoubleWrapper(String input,
int scale,
NumericPresentation np) |
static <T> T |
NumericUtil.parseNumber(Class<T> type,
String input,
int scale,
NumericPresentation np)
Parse any supported numeric wrapper type.
|
static String |
NumericUtil.renderNumber(Number v,
NumericPresentation np,
int scale) |
| Constructor and Description |
|---|
NumberConverter(Class<T> actualType,
NumericPresentation presentation,
int scale) |
Copyright © 2017 etc.to. All rights reserved.