public class StiNumberFormatService extends StiFormatService
propertiesREFERENCE_EMPTY, REFERENCE_REPORT| Constructor and Description |
|---|
StiNumberFormatService() |
StiNumberFormatService(int negativePattern,
int decimalPlaces,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay) |
StiNumberFormatService(int negativePattern,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay)
Creates a new format of the type StiNumberFormatService with specified arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
protected static void |
FillLocalSetting(java.text.DecimalFormat format) |
java.lang.String |
format(java.lang.String stringFormat,
java.lang.Object value)
Formats the specified object in order of regulations and returns a string.
|
int |
getDecimalDigits()
Gets or sets indicates the number of decimal places to use in currency values.
|
protected java.text.DecimalFormatSymbols |
getDecimalFormatSymbols(java.text.DecimalFormat form) |
java.lang.String |
getDecimalSeparator()
Gets or sets the string to use as the decimal separator in currency values.
|
java.lang.String |
getGroupSeparator()
Gets or sets the string that separates groups of digits to the left of the decimal in
currency values.
|
int |
getGroupSize()
Gets or sets the number of digits in group to the left of the decimal in currency values.
|
java.lang.String |
getNativeFormatString()
Returns native format string.
|
int |
getNegativePattern()
Gets or sets the format pattern for negative numeric values.
|
java.lang.String |
getNullDisplay()
Gets or sets string value to show the value null.
|
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.
|
boolean |
getUseGroupSeparator()
Gets or sets value indicates it is necessary to use a group separator.
|
boolean |
getUseLocalSetting()
Gets or sets value indicates it is necessary to use local settings.
|
void |
LoadFromJsonObject(JSONObject jObject) |
JSONObject |
SaveToJsonObject(StiJsonSaveMode mode) |
void |
setDecimalDigits(int value) |
void |
setDecimalSeparator(java.lang.String value) |
void |
setGroupSeparator(java.lang.String value) |
void |
setGroupSize(int value) |
void |
setNegativePattern(int value) |
void |
setNullDisplay(java.lang.String value) |
void |
setStringFormat(java.lang.String value) |
void |
setUseGroupSeparator(boolean value) |
void |
setUseLocalSetting(boolean value) |
Format, getIsFormatStringFromVariable, getServiceCategory, getServiceType, getState, hashCode, isDefault, LoadFromJsonObjectInternal, setState, toStringclone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledcleanReference, getReference, setReferencepublic StiNumberFormatService()
public StiNumberFormatService(int negativePattern,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay)
negativePattern - The format pattern for negative numeric values.decimalPlaces - Do not use this 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.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 StiNumberFormatService(int negativePattern,
int decimalPlaces,
java.lang.String decimalSeparator,
int decimalDigits,
java.lang.String groupSeparator,
int groupSize,
boolean useGroupSeparator,
boolean useLocalSetting,
java.lang.String nullDisplay)
protected static void FillLocalSetting(java.text.DecimalFormat format)
public java.lang.String getServiceName()
getServiceName in class StiServicepublic int getPosition()
getPosition in class StiFormatServicepublic final java.lang.String getNullDisplay()
public final void setNullDisplay(java.lang.String value)
public int getNegativePattern()
public final void setNegativePattern(int value)
public java.lang.String getDecimalSeparator()
public final void setDecimalSeparator(java.lang.String value)
public int getDecimalDigits()
public final void setDecimalDigits(int value)
public java.lang.String getGroupSeparator()
public final void setGroupSeparator(java.lang.String value)
public int getGroupSize()
public final void setGroupSize(int value)
public final boolean getUseGroupSeparator()
public final void setUseGroupSeparator(boolean value)
public final boolean getUseLocalSetting()
public final void setUseLocalSetting(boolean value)
public java.lang.String getStringFormat()
getStringFormat in class StiFormatServicepublic void setStringFormat(java.lang.String value)
setStringFormat in class StiFormatServicepublic java.lang.Object getSample()
getSample in class StiFormatServicepublic java.lang.String getNativeFormatString()
getNativeFormatString in class StiFormatServicepublic boolean equals(java.lang.Object obj)
equals in class StiFormatServicepublic java.lang.String format(java.lang.String stringFormat,
java.lang.Object value)
format in class StiFormatServiceformat - String of formatting.arg - Object for formatting.protected java.text.DecimalFormatSymbols getDecimalFormatSymbols(java.text.DecimalFormat form)
public JSONObject SaveToJsonObject(StiJsonSaveMode mode) throws JSONException
SaveToJsonObject in interface IStiJsonReportObjectSaveToJsonObject in class StiFormatServiceJSONExceptionpublic void LoadFromJsonObject(JSONObject jObject) throws JSONException
LoadFromJsonObject in interface IStiJsonReportObjectLoadFromJsonObject in class StiFormatServiceJSONExceptionCopyright © 2019 Stimulsoft. All Rights Reserved.