Class StiTimeFormatService
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.components.textFormats.StiFormatService
com.stimulsoft.report.components.textFormats.StiTimeFormatService
- All Implemented Interfaces:
IStiDefault,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiSerializableToDocument,Cloneable
Describes a service for the text formatting as a time value.
-
Field Summary
Fields inherited from class com.stimulsoft.base.services.StiService
propertiesFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new format of the type StiTimeFormatService.StiTimeFormatService(String stringFormat) Creates a new format of the type StiTimeFormatService. -
Method Summary
Modifier and TypeMethodDescriptionReturns native format string.intGets value to show a sample of formatting.Gets a service name.Gets or sets string of formatting.voidsetStringFormat(String value) Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService
deserialize, equals, format, Format, getIsFormatStringFromVariable, getServiceCategory, getServiceType, getState, hashCode, isDefault, LoadFromJsonObject, LoadFromJsonObjectInternal, serialize, setState, toStringMethods inherited from class com.stimulsoft.base.services.StiService
clone, getProperties, getServiceEnabled, getServiceInfo, isPropertyPresent, MemberwiseClone, packService, properties, setProperties, setServiceEnabledMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiTimeFormatService
public StiTimeFormatService()Creates a new format of the type StiTimeFormatService. -
StiTimeFormatService
Creates a new format of the type StiTimeFormatService.- Parameters:
stringFormat- String of formatting.
-
-
Method Details
-
getServiceName
Gets a service name.- Overrides:
getServiceNamein classStiService
-
getPosition
public int getPosition()- Specified by:
getPositionin classStiFormatService
-
getStringFormat
Gets or sets string of formatting.- Overrides:
getStringFormatin classStiFormatService
-
setStringFormat
- Overrides:
setStringFormatin classStiFormatService
-
getNativeFormatString
Returns native format string.- Overrides:
getNativeFormatStringin classStiFormatService
-
getSample
Gets value to show a sample of formatting.- Specified by:
getSamplein classStiFormatService
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiFormatService- Throws:
JSONException
-