com.stimulsoft.report.components.textFormats
Class StiTimeFormatService

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.StiTimeFormatService
All Implemented Interfaces:
IStiDefault, IStiJsonReportObject, IStiSerializable, IStiSerializableRef, java.lang.Cloneable

public class StiTimeFormatService
extends StiFormatService

Describes a service for the text formatting as a time value.


Field Summary
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiTimeFormatService()
          Creates a new format of the type StiTimeFormatService.
StiTimeFormatService(java.lang.String stringFormat)
          Creates a new format of the type StiTimeFormatService.
 
Method Summary
 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)
           
 
Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService
equals, Format, format, getIsFormatStringFromVariable, getServiceCategory, getServiceType, getState, hashCode, 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
 

Constructor Detail

StiTimeFormatService

public StiTimeFormatService()
Creates a new format of the type StiTimeFormatService.


StiTimeFormatService

public StiTimeFormatService(java.lang.String stringFormat)
Creates a new format of the type StiTimeFormatService.

Parameters:
stringFormat - String of formatting.
Method Detail

getServiceName

public java.lang.String getServiceName()
Gets a service name.

Overrides:
getServiceName in class StiService

getPosition

public int getPosition()
Specified by:
getPosition 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

getNativeFormatString

public java.lang.String getNativeFormatString()
Returns native format string.

Overrides:
getNativeFormatString in class StiFormatService

getSample

public java.lang.Object getSample()
Gets value to show a sample of formatting.

Specified by:
getSample in class StiFormatService

SaveToJsonObject

public JSONObject SaveToJsonObject(StiJsonSaveMode mode)
                            throws JSONException
Specified by:
SaveToJsonObject in interface IStiJsonReportObject
Overrides:
SaveToJsonObject in class StiFormatService
Throws:
JSONException