com.stimulsoft.report.styles.conditions
Class StiStyleCondition

java.lang.Object
  extended by com.stimulsoft.base.serializing.StiSerializedObject
      extended by com.stimulsoft.report.styles.conditions.StiStyleCondition
All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, java.lang.Cloneable

public class StiStyleCondition
extends StiSerializedObject
implements java.lang.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
StiStyleCondition()
          Creates 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, java.lang.String componentName)
          Creates a new object of the type StiStyleCondition.
StiStyleCondition(StiStyleConditionElement[] elements)
          Creates a new object of the type StiStyleCondition.
 
Method Summary
 java.lang.Object clone()
          Creates a new object that is a copy of the current instance.
 boolean equals(java.lang.Object obj)
           
 void FromElements(StiStyleConditionElement[] elements)
           
 java.lang.String getComponentName()
          Gets or sets component name or part of component name.
 StiEnumSet<StiStyleComponentType> getComponentType()
          Gets or sets component type which can be detected by style condition.
 StiEnumSet<StiStyleLocation> getLocation()
          Gets or sets variant of component location on parent component area.
 StiStyleConditionOperation getOperationComponentName()
          Gets or sets type of operation which will be used for comparison of component names.
 StiStyleConditionOperation getOperationComponentType()
          Gets or sets type of operation which will be used for comparison of component types.
 StiStyleConditionOperation getOperationLocation()
          Gets or sets type of operation which will be used for comparison of component locations.
 StiStyleConditionOperation getOperationPlacement()
          Gets or sets type of operation which will be used for comparison of component placements.
 StiStyleConditionOperation getOperationPlacementNestedLevel()
          Gets or sets type of operation which will be used for comparison of component nested level.
 StiEnumSet<StiStyleComponentPlacement> getPlacement()
          Gets or sets type of bands on which component can be placed.
 int getPlacementNestedLevel()
          Gets or sets value which indicates nested level of specified component.
 StiEnumSet<StiStyleConditionType> getType()
          Gets or sets type of this style condition.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setComponentName(java.lang.String value)
           
 void setComponentType(StiEnumSet<StiStyleComponentType> value)
           
 void setLocation(StiEnumSet<StiStyleLocation> value)
           
 void setOperationComponentName(StiStyleConditionOperation value)
           
 void setOperationComponentType(StiStyleConditionOperation value)
           
 void setOperationLocation(StiStyleConditionOperation value)
           
 void setOperationPlacement(StiStyleConditionOperation value)
           
 void setOperationPlacementNestedLevel(StiStyleConditionOperation value)
           
 void setPlacement(StiEnumSet<StiStyleComponentPlacement> placement)
           
 void setPlacementNestedLevel(int value)
           
 void setType(StiEnumSet<StiStyleConditionType> value)
           
 
Methods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference, getReference, setReference
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StiStyleCondition

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


StiStyleCondition

public StiStyleCondition(StiStyleConditionElement[] elements)
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,
                         java.lang.String componentName)
Creates a new object of the type StiStyleCondition.

Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

clone

public final java.lang.Object clone()
Creates a new object that is a copy of the current instance.

Overrides:
clone in class java.lang.Object
Returns:
A new object that is a copy of this instance.

getType

public final StiEnumSet<StiStyleConditionType> getType()
Gets or sets type of this style condition.


setType

public final void setType(StiEnumSet<StiStyleConditionType> value)

getOperationPlacement

public final StiStyleConditionOperation getOperationPlacement()
Gets or sets type of operation which will be used for comparison of component placements.


setOperationPlacement

public final void setOperationPlacement(StiStyleConditionOperation value)

getOperationPlacementNestedLevel

public final StiStyleConditionOperation getOperationPlacementNestedLevel()
Gets or sets type of operation which will be used for comparison of component nested level.


setOperationPlacementNestedLevel

public final void setOperationPlacementNestedLevel(StiStyleConditionOperation value)

getOperationComponentType

public final StiStyleConditionOperation getOperationComponentType()
Gets or sets type of operation which will be used for comparison of component types.


setOperationComponentType

public final void setOperationComponentType(StiStyleConditionOperation value)

getOperationLocation

public final StiStyleConditionOperation getOperationLocation()
Gets or sets type of operation which will be used for comparison of component locations.


setOperationLocation

public final void setOperationLocation(StiStyleConditionOperation value)

getOperationComponentName

public final StiStyleConditionOperation getOperationComponentName()
Gets or sets type of operation which will be used for comparison of component names.


setOperationComponentName

public final void setOperationComponentName(StiStyleConditionOperation value)

getPlacement

public StiEnumSet<StiStyleComponentPlacement> getPlacement()
Gets or sets type of bands on which component can be placed.


setPlacement

public void setPlacement(StiEnumSet<StiStyleComponentPlacement> placement)
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

public final StiEnumSet<StiStyleComponentType> getComponentType()
Gets or sets component type which can be detected by style condition.


setComponentType

public final void setComponentType(StiEnumSet<StiStyleComponentType> value)

getLocation

public final StiEnumSet<StiStyleLocation> getLocation()
Gets or sets variant of component location on parent component area.


setLocation

public final void setLocation(StiEnumSet<StiStyleLocation> value)

getComponentName

public final java.lang.String getComponentName()
Gets or sets component name or part of component name.


setComponentName

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

FromElements

public final void FromElements(StiStyleConditionElement[] elements)

SaveToJsonObject

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

LoadFromJsonObject

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