Package com.stimulsoft.lib.utils
Class StiCurrencyFormat
java.lang.Object
com.stimulsoft.lib.utils.StiCurrencyFormat
Describes a service for the text formatting as currency values.
-
Constructor Summary
ConstructorsConstructorDescriptionStiCurrencyFormat(int positivePattern, int negativePattern, String decimalSeparator, int decimalDigits, String groupSeparator, int[] groupSizes, String symbol, boolean useGroupSeparator, boolean useLocalSetting, String nullDisplay) -
Method Summary
Modifier and TypeMethodDescriptionintintintint[]booleanbooleanvoidsetCurrencyNegativePattern(int currencyNegativePattern) voidsetCurrencyPositivePattern(int currencyPositivePattern) voidsetDecimalDigits(int decimalDigits) voidsetDecimalSeparator(String decimalSeparator) voidsetGroupSeparator(String groupSeparator) voidsetGroupSize(int[] groupSizes) voidsetNullDisplay(String nullDisplay) voidvoidsetUseGroupSeparator(boolean useGroupSeparator) voidsetUseLocalSetting(boolean useLocalSetting)
-
Constructor Details
-
StiCurrencyFormat
public StiCurrencyFormat(int positivePattern, int negativePattern, String decimalSeparator, int decimalDigits, String groupSeparator, int[] groupSizes, String symbol, boolean useGroupSeparator, boolean useLocalSetting, String nullDisplay) - Parameters:
positivePattern-negativePattern-decimalSeparator-decimalDigits-groupSeparator-symbol-useGroupSeparator-useLocalSetting-nullDisplay-groupSize-
-
-
Method Details
-
getDecimalSeparator
- Returns:
- the decimalSeparator
-
getCurrencyPositivePattern
public int getCurrencyPositivePattern()- Returns:
- the currencyPositivePattern
-
setCurrencyPositivePattern
public void setCurrencyPositivePattern(int currencyPositivePattern) - Parameters:
currencyPositivePattern- the currencyPositivePattern to set
-
getCurrencyNegativePattern
public int getCurrencyNegativePattern()- Returns:
- the currencyNegativePattern
-
setCurrencyNegativePattern
public void setCurrencyNegativePattern(int currencyNegativePattern) - Parameters:
currencyNegativePattern- the currencyNegativePattern to set
-
setDecimalSeparator
- Parameters:
decimalSeparator- the decimalSeparator to set
-
getDecimalDigits
public int getDecimalDigits()- Returns:
- the decimalDigits
-
setDecimalDigits
public void setDecimalDigits(int decimalDigits) - Parameters:
decimalDigits- the decimalDigits to set
-
getGroupSeparator
- Returns:
- the groupSeparator
-
setGroupSeparator
- Parameters:
groupSeparator- the groupSeparator to set
-
getGroupSizes
public int[] getGroupSizes()- Returns:
- the groupSize
-
setGroupSize
public void setGroupSize(int[] groupSizes) - Parameters:
groupSize- the groupSize to set
-
getSymbol
- Returns:
- the symbol
-
setSymbol
- Parameters:
symbol- the symbol to set
-
isUseGroupSeparator
public boolean isUseGroupSeparator()- Returns:
- the useGroupSeparator
-
setUseGroupSeparator
public void setUseGroupSeparator(boolean useGroupSeparator) - Parameters:
useGroupSeparator- the useGroupSeparator to set
-
isUseLocalSetting
public boolean isUseLocalSetting()- Returns:
- the useLocalSetting
-
setUseLocalSetting
public void setUseLocalSetting(boolean useLocalSetting) - Parameters:
useLocalSetting- the useLocalSetting to set
-
getNullDisplay
- Returns:
- the nullDisplay
-
setNullDisplay
- Parameters:
nullDisplay- the nullDisplay to set
-