com.stimulsoft.report.styles
Class StiDialogStyle

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

public class StiDialogStyle
extends StiBaseStyle

Describes the class that contains a style for dialog controls.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stimulsoft.report.styles.StiBaseStyle
StiBaseStyle.StiStyleSaver
 
Field Summary
 
Fields inherited from class com.stimulsoft.report.styles.StiBaseStyle
report
 
Fields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT
 
Constructor Summary
StiDialogStyle()
          Creates a new object of the type StiStyle.
StiDialogStyle(java.lang.String name)
          Creates a new object of the type StiStyle.
StiDialogStyle(java.lang.String name, java.lang.String description)
          Creates a new object of the type StiStyle.
StiDialogStyle(java.lang.String name, java.lang.String description, StiReport report)
          Creates a new object of the type StiStyle.
 
Method Summary
 java.lang.Object clone()
           
 boolean getAllowUseBackColor()
          Gets or sets a value which indicates whether a report engine can use BackColor for dialog controls.
 boolean getAllowUseFont()
          Gets or sets a value which indicates whether a report engine can use Font for dialog controls.
 boolean getAllowUseForeColor()
          Gets or sets a value which indicates whether a report engine can use ForeColor for dialog controls.
 StiColor getBackColor()
          Gets or sets a background color for drawing this style.
 StiFont getFont()
          Gets or sets the font for drawing this style.
 StiColor getForeColor()
          Gets or sets a foreground color for drawing this style.
 void GetStyleFromComponent(StiComponent component, StiStyleElements styleElements)
          Gets a style from the component.
 void LoadFromJsonObject(JSONObject jObject)
           
 JSONObject SaveToJsonObject(StiJsonSaveMode mode)
           
 void setAllowUseBackColor(boolean value)
           
 void setAllowUseFont(boolean value)
           
 void setAllowUseForeColor(boolean value)
           
 void setBackColor(StiColor value)
           
 void setFont(StiFont value)
           
 void setForeColor(StiColor value)
           
 void SetStyleToComponent(StiComponent component)
          Sets style to a component.
 
Methods inherited from class com.stimulsoft.report.styles.StiBaseStyle
equals, getCollectionName, getConditions, getDescription, getName, getStyle, getStyle, getStyle, getStyle, GetStyleFromComponents, loadStyleFromString, saveToString, setCollectionName, setConditions, setDescription, setName, toString
 
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
 

Constructor Detail

StiDialogStyle

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

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

StiDialogStyle

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

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

StiDialogStyle

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

Parameters:
name - Style name.

StiDialogStyle

public StiDialogStyle()
Creates a new object of the type StiStyle.

Method Detail

clone

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

getFont

public final StiFont getFont()
Gets or sets the font for drawing this style.


setFont

public final void setFont(StiFont value)

getForeColor

public final StiColor getForeColor()
Gets or sets a foreground color for drawing this style.


setForeColor

public final void setForeColor(StiColor value)

getBackColor

public final StiColor getBackColor()
Gets or sets a background color for drawing this style.


setBackColor

public final void setBackColor(StiColor value)

getAllowUseFont

public final boolean getAllowUseFont()
Gets or sets a value which indicates whether a report engine can use Font for dialog controls.


setAllowUseFont

public final void setAllowUseFont(boolean value)

getAllowUseBackColor

public final boolean getAllowUseBackColor()
Gets or sets a value which indicates whether a report engine can use BackColor for dialog controls.


setAllowUseBackColor

public final void setAllowUseBackColor(boolean value)

getAllowUseForeColor

public final boolean getAllowUseForeColor()
Gets or sets a value which indicates whether a report engine can use ForeColor for dialog controls.


setAllowUseForeColor

public final void setAllowUseForeColor(boolean value)

GetStyleFromComponent

public void GetStyleFromComponent(StiComponent component,
                                  StiStyleElements styleElements)
Description copied from class: StiBaseStyle
Gets a style from the component.

Specified by:
GetStyleFromComponent in class StiBaseStyle
Parameters:
component - Component.

SetStyleToComponent

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

Specified by:
SetStyleToComponent in class StiBaseStyle
Parameters:
component - Component.

SaveToJsonObject

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

LoadFromJsonObject

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