Class StiBooleanFormatService
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.base.services.StiService
com.stimulsoft.report.components.textFormats.StiFormatService
com.stimulsoft.report.components.textFormats.StiBooleanFormatService
- All Implemented Interfaces:
IStiDefault,IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiSerializableToDocument,Cloneable
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanFormats the specified object on specified rule and returns the line.final StringGets or sets the string value to show the value false.final StringGets or sets the string value for identification the value false.final StringGets or sets the string value to show the value null.intGets value to show a sample of formatting.Gets a service name.final StringGets or sets the string value to show the value true.final StringGets or sets string value for identification the value true.inthashCode()voidLoadFromJsonObject(JSONObject jObject) final voidsetFalseDisplay(String value) final voidsetFalseValue(String value) final voidsetNullDisplay(String value) final voidsetTrueDisplay(String value) final voidsetTrueValue(String value) Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService
deserialize, Format, getIsFormatStringFromVariable, getNativeFormatString, getServiceCategory, getServiceType, getState, getStringFormat, isDefault, LoadFromJsonObjectInternal, serialize, setState, setStringFormat, 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
-
StiBooleanFormatService
public StiBooleanFormatService()Creates a new format of the type StiBooleanFormatService. -
StiBooleanFormatService
public StiBooleanFormatService(String falseValue, String trueValue, String falseDisplay, String trueDisplay, String nullDisplay) Creates a new format of the type StiBooleanFormatService with specified parameters.- Parameters:
falseValue- String value to define the value false.trueValue- String value to define the value true.falseDisplay- String value to show the value false.trueDisplay- String value to show the value true.nullDisplay- String value to show the value null.
-
-
Method Details
-
getServiceName
Gets a service name.- Overrides:
getServiceNamein classStiService
-
getPosition
public int getPosition()- Specified by:
getPositionin classStiFormatService
-
getFalseValue
Gets or sets the string value for identification the value false. -
setFalseValue
-
getTrueValue
Gets or sets string value for identification the value true. -
setTrueValue
-
getFalseDisplay
Gets or sets the string value to show the value false. -
setFalseDisplay
-
getTrueDisplay
Gets or sets the string value to show the value true. -
setTrueDisplay
-
getNullDisplay
Gets or sets the string value to show the value null. -
setNullDisplay
-
getSample
Gets value to show a sample of formatting.- Specified by:
getSamplein classStiFormatService
-
equals
- Overrides:
equalsin classStiFormatService
-
hashCode
public int hashCode()- Overrides:
hashCodein classStiFormatService
-
format
Formats the specified object on specified rule and returns the line.- Overrides:
formatin classStiFormatService- Parameters:
stringFormat- String of formatting.arg- Object for formatting.format- String of the formatting.- Returns:
- Formatted string.
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Overrides:
SaveToJsonObjectin classStiFormatService- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Overrides:
LoadFromJsonObjectin classStiFormatService- Throws:
JSONException
-