com.stimulsoft.report.components.textFormats
Class StiGeneralFormatService
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.components.textFormats.StiFormatService
com.stimulsoft.report.components.textFormats.StiGeneralFormatService
- All Implemented Interfaces:
- IStiDefault, IStiJsonReportObject, IStiSerializable, IStiSerializableRef, java.lang.Cloneable
public class StiGeneralFormatService
- extends StiFormatService
Describes a service for the text formatting by default.
Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService |
format, getIsFormatStringFromVariable, getNativeFormatString, getServiceCategory, getServiceType, getState, isDefault, LoadFromJsonObject, LoadFromJsonObjectInternal, setState, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Default
public static StiGeneralFormatService Default
StiGeneralFormatService
public StiGeneralFormatService()
- Creates format by default.
getServiceName
public java.lang.String getServiceName()
- Gets a service name.
- Overrides:
getServiceName
in class StiService
Format
public java.lang.String Format(java.lang.Object arg,
java.util.Locale locale)
- Description copied from class:
StiFormatService
- Formats the specified object in order of format and returns a string.
- Overrides:
Format
in class StiFormatService
- Parameters:
arg
- Object for formatting.
- Returns:
- Formatted string.
getPosition
public int getPosition()
- Specified by:
getPosition
in class StiFormatService
getSample
public java.lang.Object getSample()
- Gets value to show a sample of formatting.
- Specified by:
getSample
in class StiFormatService
getStringFormat
public java.lang.String getStringFormat()
- Gets or sets string of formatting.
- Overrides:
getStringFormat
in class StiFormatService
setStringFormat
public void setStringFormat(java.lang.String value)
- Overrides:
setStringFormat
in class StiFormatService
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class StiFormatService
hashCode
public int hashCode()
- Overrides:
hashCode
in class StiFormatService
SaveToJsonObject
public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
throws JSONException
- Specified by:
SaveToJsonObject
in interface IStiJsonReportObject
- Overrides:
SaveToJsonObject
in class StiFormatService
- Throws:
JSONException