T
- The exact type of numberpublic static class NumberLabel extends Object
ValueLabel
for convenience when dealing with numbers and
NumberFormat
, especially in
UiBinder
templates. (Note
that this class does not accept renderers. To do so use ValueLabel
directly.)
UiBinder
templates, the
NumberFormat
can be specified with one of these attributes:
NumberFormat
instance.NumberFormat#getFormat(String)
. See below for a way of specifying a
currency code.predefinedFormat
attributes are:
NumberFormat#getDecimalFormat()
.NumberFormat#getCurrencyFormat()
. See below for a way of specifying a
currency code.NumberFormat#getPercentFormat()
.NumberFormat#getScientificFormat()
.predefinedFormat="CURRENCY"
or a customFormat
, you
can specify a currency code using either of the following attributes:
CurrencyData
instance.Copyright © 2018. All rights reserved.