public class FloatStyleBuilder extends Object implements DataStyleBuilder<FloatStyle,FloatStyleBuilder>, NumberStyleBuilder<FloatStyle,FloatStyleBuilder>, DecimalStyleBuilder<FloatStyleBuilder>
| Constructor and Description |
|---|
FloatStyleBuilder(String name,
Locale locale)
The builder
|
| Modifier and Type | Method and Description |
|---|---|
FloatStyle |
build() |
FloatStyleBuilder |
country(String countryCode)
Set the country code
|
FloatStyleBuilder |
decimalPlaces(int decimalPlaces)
20.250 style:decimal-places
Set how many digits are to the right of the decimal symbol.
|
FloatStyleBuilder |
groupThousands(boolean grouping) |
FloatStyleBuilder |
language(String languageCode)
Set the language code
|
FloatStyleBuilder |
locale(Locale locale)
Set the locale
|
FloatStyleBuilder |
minIntegerDigits(int minIntegerDigits) |
FloatStyleBuilder |
negativeValueColor(Color negativeValueColor) |
FloatStyleBuilder |
negativeValueRed()
Sets the red color for negative values
|
FloatStyleBuilder |
visible()
Make this style visible, ie part of common styles
|
FloatStyleBuilder |
volatileStyle(boolean volatileStyle)
19.517 style:volatile
"The style:volatile attribute specifies whether unused style in a document are retained or
discarded by consumers."
|
public FloatStyle build()
build in interface StyleBuilder<FloatStyle>public FloatStyleBuilder visible()
ShowableBuildervisible in interface ShowableBuilder<FloatStyleBuilder>public FloatStyleBuilder decimalPlaces(int decimalPlaces)
DecimalStyleBuilderdecimalPlaces in interface DecimalStyleBuilder<FloatStyleBuilder>decimalPlaces - "the maximum number of decimal places that are displayed if numbers
are formatted by a data style that has no setting for number of
decimal places itself"public FloatStyleBuilder groupThousands(boolean grouping)
groupThousands in interface NumberStyleBuilder<FloatStyle,FloatStyleBuilder>grouping - if true, the thousands separator is shown.public FloatStyleBuilder minIntegerDigits(int minIntegerDigits)
minIntegerDigits in interface NumberStyleBuilder<FloatStyle,FloatStyleBuilder>minIntegerDigits - The number of digits for integer partpublic FloatStyleBuilder negativeValueColor(Color negativeValueColor)
negativeValueColor in interface NumberStyleBuilder<FloatStyle,FloatStyleBuilder>negativeValueColor - the color for negative values, null if nonepublic FloatStyleBuilder negativeValueRed()
NumberStyleBuildernegativeValueRed in interface NumberStyleBuilder<FloatStyle,FloatStyleBuilder>public FloatStyleBuilder country(String countryCode)
LocalizedBuildercountry in interface LocalizedBuilder<FloatStyleBuilder>countryCode - The two letter country code, e.g. 'US'public FloatStyleBuilder language(String languageCode)
LocalizedBuilderlanguage in interface LocalizedBuilder<FloatStyleBuilder>languageCode - The two letter language code, e.g. 'en'. See http://www.ietf
.org/rfc/rfc3066.txtpublic FloatStyleBuilder locale(Locale locale)
LocalizedBuilderlocale in interface LocalizedBuilder<FloatStyleBuilder>locale - the localepublic FloatStyleBuilder volatileStyle(boolean volatileStyle)
IsVolatileBuildervolatileStyle in interface IsVolatileBuilder<FloatStyleBuilder>volatileStyle - true if "consumers should keep unused styles", false otherwise.Copyright © 2016–2021. All rights reserved.