com.stimulsoft.report.components.textFormats
Class StiBooleanFormatService

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

public class StiBooleanFormatService
extends StiFormatService

Describes a service for formatting of the text, like boolean values.


Field Summary
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiBooleanFormatService()
          Creates a new format of the type StiBooleanFormatService.
StiBooleanFormatService(java.lang.String falseValue, java.lang.String trueValue, java.lang.String falseDisplay, java.lang.String trueDisplay, java.lang.String nullDisplay)
          Creates a new format of the type StiBooleanFormatService with specified parameters.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String format(java.lang.String stringFormat, java.lang.Object arg, java.util.Locale locale)
          Formats the specified object on specified rule and returns the line.
 java.lang.String getFalseDisplay()
          Gets or sets the string value to show the value false.
 java.lang.String getFalseValue()
          Gets or sets the string value for identification the value false.
 java.lang.String getNullDisplay()
          Gets or sets the string value to show the value null.
 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 getTrueDisplay()
          Gets or sets the string value to show the value true.
 java.lang.String getTrueValue()
          Gets or sets string value for identification the value true.
 int hashCode()
           
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setFalseDisplay(java.lang.String value)
           
 void setFalseValue(java.lang.String value)
           
 void setNullDisplay(java.lang.String value)
           
 void setTrueDisplay(java.lang.String value)
           
 void setTrueValue(java.lang.String value)
           
 
Methods inherited from class com.stimulsoft.report.components.textFormats.StiFormatService
Format, getIsFormatStringFromVariable, getNativeFormatString, getServiceCategory, getServiceType, getState, getStringFormat, isDefault, LoadFromJsonObjectInternal, setState, setStringFormat, 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

StiBooleanFormatService

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


StiBooleanFormatService

public StiBooleanFormatService(java.lang.String falseValue,
                               java.lang.String trueValue,
                               java.lang.String falseDisplay,
                               java.lang.String trueDisplay,
                               java.lang.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 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

getFalseValue

public final java.lang.String getFalseValue()
Gets or sets the string value for identification the value false.


setFalseValue

public final void setFalseValue(java.lang.String value)

getTrueValue

public final java.lang.String getTrueValue()
Gets or sets string value for identification the value true.


setTrueValue

public final void setTrueValue(java.lang.String value)

getFalseDisplay

public final java.lang.String getFalseDisplay()
Gets or sets the string value to show the value false.


setFalseDisplay

public final void setFalseDisplay(java.lang.String value)

getTrueDisplay

public final java.lang.String getTrueDisplay()
Gets or sets the string value to show the value true.


setTrueDisplay

public final void setTrueDisplay(java.lang.String value)

getNullDisplay

public final java.lang.String getNullDisplay()
Gets or sets the string value to show the value null.


setNullDisplay

public final void setNullDisplay(java.lang.String value)

getSample

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

Specified by:
getSample 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

format

public java.lang.String format(java.lang.String stringFormat,
                               java.lang.Object arg,
                               java.util.Locale locale)
Formats the specified object on specified rule and returns the line.

Overrides:
format in class StiFormatService
Parameters:
format - String of the formatting.
arg - Object for formatting.
Returns:
Formatted string.

SaveToJsonObject

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

LoadFromJsonObject

public void LoadFromJsonObject(JSONObject jObject)
                        throws JSONException
Specified by:
LoadFromJsonObject in interface IStiJsonReportObject
Overrides:
LoadFromJsonObject in class StiFormatService
Throws:
JSONException