com.stimulsoft.report.components.textFormats
Class StiGeneralFormatService

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.base.services.StiService
          extended by com.stimulsoft.report.components.textFormats.StiFormatService
              extended by 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.


Field Summary
static StiGeneralFormatService Default
           
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiGeneralFormatService()
          Creates format by default.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String Format(java.lang.Object arg, java.util.Locale locale)
          Formats the specified object in order of format and returns a 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.
 int hashCode()
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setStringFormat(java.lang.String value)
           
 
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 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
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Default

public static StiGeneralFormatService Default
Constructor Detail

StiGeneralFormatService

public StiGeneralFormatService()
Creates format by default.

Method Detail

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