|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.components.textFormats.StiFormatService
com.stimulsoft.report.components.textFormats.StiNumberFormatService
com.stimulsoft.report.components.textFormats.StiCurrencyFormatService
public class StiCurrencyFormatService
Describes a service for the text formatting as currency values.
| Field Summary |
|---|
| Fields inherited from class com.stimulsoft.base.services.StiService |
|---|
properties |
| Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef |
|---|
REFERENCE_EMPTY, REFERENCE_REPORT |
| Constructor Summary | |
|---|---|
StiCurrencyFormatService()
|
|
StiCurrencyFormatService(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)
Creates a new format of the type StiCurrencyFormatService with specified arguments. |
|
StiCurrencyFormatService(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 StiCurrencyFormatService with specified arguments. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
format(java.lang.String stringFormat,
java.lang.Object arg)
Formats the specified object in order of regulations and returns a string. |
java.lang.String |
getNativeFormatString()
Returns native format string. |
int |
getPosition()
|
int |
getPositivePattern()
Gets or sets the format pattern for positive currency values. |
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. |
java.lang.String |
getSymbol()
Gets or sets a currency symbol. |
int |
hashCode()
|
void |
LoadFromJsonObject(JSONObject jObject)
|
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode)
|
void |
setPositivePattern(int value)
|
void |
setStringFormat(java.lang.String value)
|
void |
setSymbol(java.lang.String value)
|
| Methods inherited from class com.stimulsoft.report.components.textFormats.StiNumberFormatService |
|---|
FillLocalSetting, getDecimalDigits, getDecimalFormatSymbols, getDecimalSeparator, getGroupSeparator, getGroupSize, getNegativePattern, getNullDisplay, getUseGroupSeparator, getUseLocalSetting, setDecimalDigits, setDecimalSeparator, setGroupSeparator, setGroupSize, setNegativePattern, setNullDisplay, setUseGroupSeparator, setUseLocalSetting |
| Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService |
|---|
Format, getIsFormatStringFromVariable, getServiceCategory, getServiceType, getState, isDefault, LoadFromJsonObjectInternal, setState, toString |
| Methods inherited from class com.stimulsoft.base.services.StiService |
|---|
clone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabled |
| Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject |
|---|
cleanReference, getReference, setReference |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StiCurrencyFormatService()
public StiCurrencyFormatService(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 symbol.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 StiCurrencyFormatService(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)
positivePattern - The format pattern for positive currency values.negativePattern - The format pattern for negative numeric values.decimalPlaces - Do not use argument.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 symbol.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.| Method Detail |
|---|
public java.lang.String getServiceName()
getServiceName in class StiNumberFormatServicepublic int getPosition()
getPosition in class StiNumberFormatServicepublic final int getPositivePattern()
public final void setPositivePattern(int value)
public final java.lang.String getSymbol()
public final void setSymbol(java.lang.String value)
public java.lang.String getNativeFormatString()
getNativeFormatString in class StiNumberFormatServicepublic java.lang.Object getSample()
getSample in class StiNumberFormatServicepublic java.lang.String getStringFormat()
getStringFormat in class StiNumberFormatServicepublic void setStringFormat(java.lang.String value)
setStringFormat in class StiNumberFormatServicepublic int hashCode()
hashCode in class StiFormatServicepublic boolean equals(java.lang.Object obj)
equals in class StiNumberFormatService
public java.lang.String format(java.lang.String stringFormat,
java.lang.Object arg)
format in class StiNumberFormatServiceformat - String of formatting.arg - Object for formatting.
public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectSaveToJsonObject in class StiNumberFormatServiceJSONException
public void LoadFromJsonObject(JSONObject jObject)
throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectLoadFromJsonObject in class StiNumberFormatServiceJSONException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||