com.stimulsoft.report.styles
Class StiBaseStyle

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.report.styles.StiBaseStyle
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, java.lang.Cloneable
Direct Known Subclasses:
StiChartStyle, StiCrossTabStyle, StiDialogStyle, StiEmptyStyle, StiGaugeStyle, StiGaugeStyleXF, StiMapStyle, StiStyle, StiTableStyle

public abstract class StiBaseStyle
extends StiSerializedObject
implements java.lang.Cloneable, IStiName, IStiJsonReportObject

Describes the class that contains a base style.


Nested Class Summary
static class StiBaseStyle.StiStyleSaver
           
 
Field Summary
 StiReport report
           
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiBaseStyle()
          Creates a new object of the type StiBaseStyle.
StiBaseStyle(java.lang.String name)
          Creates a new object of the type StiBaseStyle.
StiBaseStyle(java.lang.String name, java.lang.String description)
          Creates a new object of the type StiBaseStyle.
StiBaseStyle(java.lang.String name, java.lang.String description, StiReport report)
          Creates a new object of the type StiBaseStyle.
 
Method Summary
 java.lang.Object clone()
           
 boolean equals(java.lang.Object obj, boolean allowEqualName, boolean allowEqualDescription)
           
 java.lang.String getCollectionName()
           
 StiStyleConditionsCollection getConditions()
           
 java.lang.String getDescription()
          Gets or sets the style description.
 java.lang.String getName()
          Gets or sets a style name.
static StiBaseStyle getStyle(StiComponent component)
           
static StiBaseStyle getStyle(StiComponent component, StiBaseStyle componentStyle)
           
static StiBaseStyle getStyle(StiComponent component, StiStyleElements styleElements)
           
static StiBaseStyle getStyle(StiComponent component, StiStyleElements styleElements, StiBaseStyle componentStyle)
           
abstract  void GetStyleFromComponent(StiComponent component, StiStyleElements styleElements)
          Gets a style from the component.
 void GetStyleFromComponents(StiComponentsCollection comps, StiStyleElements styleElements)
          Gets a style from the components.
 void LoadFromJsonObject(JSONObject jObject)
           
static StiBaseStyle loadStyleFromString(java.lang.String styleStr)
          Loads the style from the string.
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 java.lang.String saveToString()
           
 void setCollectionName(java.lang.String collectionName)
           
 void setConditions(StiStyleConditionsCollection conditions)
           
 void setDescription(java.lang.String value)
           
 void setName(java.lang.String value)
           
abstract  void SetStyleToComponent(StiComponent component)
          Sets style to a component.
 java.lang.String toString()
          Returns style name.
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

report

public StiReport report
Constructor Detail

StiBaseStyle

public StiBaseStyle(java.lang.String name,
                    java.lang.String description,
                    StiReport report)
Creates a new object of the type StiBaseStyle.

Parameters:
name - Style name.
description - Style description.

StiBaseStyle

public StiBaseStyle(java.lang.String name,
                    java.lang.String description)
Creates a new object of the type StiBaseStyle.

Parameters:
name - Style name.
description - Style description.

StiBaseStyle

public StiBaseStyle(java.lang.String name)
Creates a new object of the type StiBaseStyle.

Parameters:
name - Style name.

StiBaseStyle

public StiBaseStyle()
Creates a new object of the type StiBaseStyle.

Method Detail

equals

public boolean equals(java.lang.Object obj,
                      boolean allowEqualName,
                      boolean allowEqualDescription)

getStyle

public static StiBaseStyle getStyle(StiComponent component,
                                    StiStyleElements styleElements)

getStyle

public static StiBaseStyle getStyle(StiComponent component,
                                    StiStyleElements styleElements,
                                    StiBaseStyle componentStyle)

getStyle

public static StiBaseStyle getStyle(StiComponent component)

getStyle

public static StiBaseStyle getStyle(StiComponent component,
                                    StiBaseStyle componentStyle)

GetStyleFromComponents

public final void GetStyleFromComponents(StiComponentsCollection comps,
                                         StiStyleElements styleElements)
Gets a style from the components.

Parameters:
component - Components collection.

toString

public java.lang.String toString()
Returns style name.

Overrides:
toString in class java.lang.Object
Returns:

GetStyleFromComponent

public abstract void GetStyleFromComponent(StiComponent component,
                                           StiStyleElements styleElements)
Gets a style from the component.

Parameters:
component - Component.

SetStyleToComponent

public abstract void SetStyleToComponent(StiComponent component)
Sets style to a component.

Parameters:
component - Component.

getDescription

public final java.lang.String getDescription()
Gets or sets the style description.


setDescription

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

getName

public final java.lang.String getName()
Gets or sets a style name.

Specified by:
getName in interface IStiName

setName

public final void setName(java.lang.String value)
Specified by:
setName in interface IStiName

setConditions

public void setConditions(StiStyleConditionsCollection conditions)

getConditions

public StiStyleConditionsCollection getConditions()

setCollectionName

public void setCollectionName(java.lang.String collectionName)

getCollectionName

public java.lang.String getCollectionName()

SaveToJsonObject

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

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

loadStyleFromString

public static StiBaseStyle loadStyleFromString(java.lang.String styleStr)
Loads the style from the string.

Parameters:
styleStr -
Returns:

saveToString

public java.lang.String saveToString()

LoadFromJsonObject

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