Class StiStyleCondition
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.styles.conditions.StiStyleCondition
- All Implemented Interfaces:
IStiJsonReportObject,IStiSerializable,IStiSerializableRef,Cloneable
public class StiStyleCondition
extends StiSerializedObject
implements Cloneable, IStiJsonReportObject
The class describes the style condition.
-
Field Summary
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new object of the type StiStyleCondition.StiStyleCondition(StiEnumSet<StiStyleConditionType> type, StiStyleConditionOperation operationPlacement, StiStyleConditionOperation operationPlacementNestedLevel, StiStyleConditionOperation operationComponentType, StiStyleConditionOperation operationLocation, StiStyleConditionOperation operationComponentName, StiEnumSet<StiStyleComponentPlacement> placement, int placementNestedLevel, StiEnumSet<StiStyleComponentType> componentType, StiEnumSet<StiStyleLocation> location, String componentName) Creates a new object of the type StiStyleCondition.StiStyleCondition(StiStyleConditionElement[] elements) Creates a new object of the type StiStyleCondition. -
Method Summary
Modifier and TypeMethodDescriptionfinal Objectclone()Creates a new object that is a copy of the current instance.booleanfinal voidFromElements(StiStyleConditionElement[] elements) final StringGets or sets component name or part of component name.final StiEnumSet<StiStyleComponentType> Gets or sets component type which can be detected by style condition.final StiEnumSet<StiStyleLocation> Gets or sets variant of component location on parent component area.Gets or sets type of operation which will be used for comparison of component names.Gets or sets type of operation which will be used for comparison of component types.Gets or sets type of operation which will be used for comparison of component locations.Gets or sets type of operation which will be used for comparison of component placements.Gets or sets type of operation which will be used for comparison of component nested level.Gets or sets type of bands on which component can be placed.final intGets or sets value which indicates nested level of specified component.final StiEnumSet<StiStyleConditionType> getType()Gets or sets type of this style condition.voidLoadFromJsonObject(JSONObject jObject) final voidsetComponentName(String value) final voidfinal voidsetLocation(StiEnumSet<StiStyleLocation> value) final voidfinal voidfinal voidfinal voidfinal voidvoidsetPlacement(StiEnumSet<StiStyleComponentPlacement> placement) final voidsetPlacementNestedLevel(int value) final voidsetType(StiEnumSet<StiStyleConditionType> value) Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
-
Constructor Details
-
StiStyleCondition
public StiStyleCondition()Creates a new object of the type StiStyleCondition. -
StiStyleCondition
Creates a new object of the type StiStyleCondition. -
StiStyleCondition
public StiStyleCondition(StiEnumSet<StiStyleConditionType> type, StiStyleConditionOperation operationPlacement, StiStyleConditionOperation operationPlacementNestedLevel, StiStyleConditionOperation operationComponentType, StiStyleConditionOperation operationLocation, StiStyleConditionOperation operationComponentName, StiEnumSet<StiStyleComponentPlacement> placement, int placementNestedLevel, StiEnumSet<StiStyleComponentType> componentType, StiEnumSet<StiStyleLocation> location, String componentName) Creates a new object of the type StiStyleCondition.
-
-
Method Details
-
equals
-
clone
Creates a new object that is a copy of the current instance. -
getType
Gets or sets type of this style condition. -
setType
-
getOperationPlacement
Gets or sets type of operation which will be used for comparison of component placements. -
setOperationPlacement
-
getOperationPlacementNestedLevel
Gets or sets type of operation which will be used for comparison of component nested level. -
setOperationPlacementNestedLevel
-
getOperationComponentType
Gets or sets type of operation which will be used for comparison of component types. -
setOperationComponentType
-
getOperationLocation
Gets or sets type of operation which will be used for comparison of component locations. -
setOperationLocation
-
getOperationComponentName
Gets or sets type of operation which will be used for comparison of component names. -
setOperationComponentName
-
getPlacement
Gets or sets type of bands on which component can be placed. -
setPlacement
- Parameters:
placement- the placement to set
-
getPlacementNestedLevel
public final int getPlacementNestedLevel()Gets or sets value which indicates nested level of specified component. -
setPlacementNestedLevel
public final void setPlacementNestedLevel(int value) -
getComponentType
Gets or sets component type which can be detected by style condition. -
setComponentType
-
getLocation
Gets or sets variant of component location on parent component area. -
setLocation
-
getComponentName
Gets or sets component name or part of component name. -
setComponentName
-
FromElements
-
SaveToJsonObject
- Specified by:
SaveToJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-
LoadFromJsonObject
- Specified by:
LoadFromJsonObjectin interfaceIStiJsonReportObject- Throws:
JSONException
-