public class StiPercentageFormatService extends StiCurrencyFormatService
propertiesREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiPercentageFormatService() |
StiPercentageFormatService(int positivePattern,
int negativePattern,
int decimalPlaces,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
java.lang.String symbol,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay) |
StiPercentageFormatService(int positivePattern,
int negativePattern,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
java.lang.String symbol,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay)
Creates a new format of the type StiPercentageFormatService with specified parameters.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(java.lang.String stringFormat,
java.lang.Object value)
Formats the specified object in order of regulations and returns a string.
|
java.lang.String |
getNativeFormatString()
Returns native format string.
|
int |
getPosition() |
java.lang.Object |
getSample()
Gets value to show a sample of formatting.
|
java.lang.String |
getServiceName()
Gets a service name.
|
java.lang.String |
getStringFormat()
Gets or sets string of formatting.
|
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
void |
setStringFormat(java.lang.String value) |
equals, getCulture, getDecimalDigits, getDecimalSeparator, getGroupSeparator, getGroupSize, getNegativePattern, getPositivePattern, getSymbol, hashCode, LoadFromJsonObject, setCulture, setPositivePattern, setSymbolFillLocalSetting, getDecimalFormatSymbols, getNullDisplay, getUseGroupSeparator, getUseLocalSetting, setDecimalDigits, setDecimalSeparator, setGroupSeparator, setGroupSize, setNegativePattern, setNullDisplay, setUseGroupSeparator, setUseLocalSettingFormat, getIsFormatStringFromVariable, getServiceCategory, getServiceType, getState, isDefault, LoadFromJsonObjectInternal, setState, toStringclone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledcleanReference, getReference, setReferencepublic StiPercentageFormatService()
public StiPercentageFormatService(int positivePattern,
int negativePattern,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
java.lang.String symbol,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay)
positivePattern - The format pattern for positive currency values.negativePattern - The format pattern for negative numeric values.decimalSeparator - The string to use as the decimal separator in currency values.decimalDigits - The number of decimal places to use in currency values.groupSeparator - The string that separates groups of digits to the left of the decimal in currency
values.groupSize - The number of digits in group to the left of the decimal in currency values.symbol - Currency synbol.useGroupSeparator - Value indicates that it is necessary to use a group separator.useLocalSetting - Value indicates that it is necessary to use local settings.nullDisplay - String value to show the value null.public StiPercentageFormatService(int positivePattern,
int negativePattern,
int decimalPlaces,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
java.lang.String symbol,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay)
public java.lang.String getServiceName()
getServiceName in class StiCurrencyFormatServicepublic int getPosition()
getPosition in class StiCurrencyFormatServicepublic java.lang.String getStringFormat()
getStringFormat in class StiCurrencyFormatServicepublic void setStringFormat(java.lang.String value)
setStringFormat in class StiCurrencyFormatServicepublic java.lang.Object getSample()
getSample in class StiCurrencyFormatServicepublic java.lang.String getNativeFormatString()
getNativeFormatString in class StiCurrencyFormatServicepublic java.lang.String format(java.lang.String stringFormat,
java.lang.Object value)
format in class StiCurrencyFormatServiceformat - String of formatting.arg - Object for formatting.public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectSaveToJsonObject in class StiCurrencyFormatServiceJSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.