Class StiDialogStyle

All Implemented Interfaces:
IStiJsonReportObject, IStiSerializable, IStiSerializableRef, IStiName, Cloneable

public class StiDialogStyle extends StiBaseStyle
Describes the class that contains a style for dialog controls.
  • Constructor Details

    • StiDialogStyle

      public StiDialogStyle(String name, String description, StiReport report)
      Creates a new object of the type StiStyle.
      Parameters:
      name - Style name.
      description - Style description.
    • StiDialogStyle

      public StiDialogStyle(String name, String description)
      Creates a new object of the type StiStyle.
      Parameters:
      name - Style name.
      description - Style description.
    • StiDialogStyle

      public StiDialogStyle(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 Details

    • clone

      public 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