Package com.stimulsoft.report.styles
Class StiBaseStyle
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.styles.StiBaseStyle
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,IStiName,Cloneable
- Direct Known Subclasses:
StiChartStyle,StiCrossTabStyle,StiDialogStyle,StiEmptyStyle,StiGaugeStyle,StiGaugeStyleXF,StiIndicatorStyle,StiMapStyle,StiStyle,StiTableStyle
public abstract class StiBaseStyle
extends StiSerializedObject
implements Cloneable, IStiName, IStiJsonReportObject
Describes the class that contains a base style.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object of the type StiBaseStyle.StiBaseStyle(String name) Creates a new object of the type StiBaseStyle.StiBaseStyle(String name, String description) Creates a new object of the type StiBaseStyle.StiBaseStyle(String name, String description, StiReport report) Creates a new object of the type StiBaseStyle. -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanfinal StringGets or sets the style description.final StringgetName()Gets or sets a style name.static StiBaseStylegetStyle(StiComponent component) static StiBaseStylegetStyle(StiComponent component, StiStyleElements styleElements) static StiBaseStylegetStyle(StiComponent component, StiStyleElements styleElements, StiBaseStyle componentStyle) static StiBaseStylegetStyle(StiComponent component, StiBaseStyle componentStyle) abstract voidGetStyleFromComponent(StiComponent component, StiStyleElements styleElements) Gets a style from the component.final voidGetStyleFromComponents(StiComponentsCollection comps, StiStyleElements styleElements) Gets a style from the components.voidLoadFromJsonObject(JSONObject jObject) static StiBaseStyleloadStyleFromString(String styleStr) Loads the style from the string.voidsetCollectionName(String collectionName) voidsetConditions(StiStyleConditionsCollection conditions) final voidsetDescription(String value) final voidabstract voidSetStyleToComponent(StiComponent component) Sets style to a component.toString()Returns style name.Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Field Details
-
report
-
-
Constructor Details
-
StiBaseStyle
Creates a new object of the type StiBaseStyle.- Parameters:
name- Style name.description- Style description.
-
StiBaseStyle
Creates a new object of the type StiBaseStyle.- Parameters:
name- Style name.description- Style description.
-
StiBaseStyle
Creates a new object of the type StiBaseStyle.- Parameters:
name- Style name.
-
StiBaseStyle
public StiBaseStyle()Creates a new object of the type StiBaseStyle.
-
-
Method Details
-
equals
-
getStyle
-
getStyle
public static StiBaseStyle getStyle(StiComponent component, StiStyleElements styleElements, StiBaseStyle componentStyle) -
getStyle
-
getStyle
-
GetStyleFromComponents
public final void GetStyleFromComponents(StiComponentsCollection comps, StiStyleElements styleElements) Gets a style from the components.- Parameters:
component- Components collection.
-
toString
Returns style name. -
GetStyleFromComponent
Gets a style from the component.- Parameters:
component- Component.
-
SetStyleToComponent
Sets style to a component.- Parameters:
component- Component.
-
getDescription
Gets or sets the style description. -
setDescription
-
getName
Gets or sets a style name. -
setName
-
setConditions
-
getConditions
-
setCollectionName
-
getCollectionName
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
clone
-
loadStyleFromString
Loads the style from the string.- Parameters:
styleStr-- Returns:
-
saveToString
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-