Class StiDynamicBand

All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiForceSerializable, IStiSerializable, IStiSerializableRef, IStiSerializableToAttributes, IStiName, IStiBorder, IStiBreakable, IStiBrush, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiGrowToHeight, IStiInteraction, IStiPageBreak, IStiPrintAtBottom, IStiPrintOn, IStiResetPageNumber, IStiSelect, IStiShift, IStiUnitConvert, IStiReportProperty, IStiIgnoryStyle, IStiInherited, IStiStateSaveRestore, Cloneable
Direct Known Subclasses:
StiChildBand, StiDataBand, StiFooterBand, StiGroupFooterBand, StiGroupHeaderBand, StiHeaderBand, StiReportSummaryBand

public abstract class StiDynamicBand extends StiBand implements IStiPageBreak, IStiBreakable, IStiPrintAtBottom
  • Constructor Details

    • StiDynamicBand

      public StiDynamicBand()
      Creates a new dynamic band.
    • StiDynamicBand

      public StiDynamicBand(StiRectangle rect)
      Creates a new dynamic band.
      Parameters:
      rect - The rectangle describes size and position of the component.
  • Method Details

    • getPrintAtBottom

      public boolean getPrintAtBottom()
      Gets or sets value indicates that the footer is printed at bottom of page.
      Specified by:
      getPrintAtBottom in interface IStiPrintAtBottom
    • setPrintAtBottom

      public void setPrintAtBottom(boolean value)
      Specified by:
      setPrintAtBottom in interface IStiPrintAtBottom
    • setCanBreak

      public void setCanBreak(boolean value)
      Gets or sets value which indicates whether the component can or cannot break its contents on several pages.
      Specified by:
      setCanBreak in interface IStiBreakable
      Overrides:
      setCanBreak in class StiContainer
    • Break

      public boolean Break(StiComponent dividedComponent, double devideFactor, StiRefObject<Double> divLine, StiRefObject<Boolean> haveBreaked)
      Divides content of components in two parts. Returns result of dividing. If true, then component is successful divided.
      Specified by:
      Break in interface IStiBreakable
      Overrides:
      Break in class StiContainer
      Parameters:
      dividedComponent - Component for store part of content.
      Returns:
      If true, then component is successful divided.
    • getNewPageBefore

      public boolean getNewPageBefore()
      If the value of this property is true, then, before output of a band, a new page will be generated. Output of a band will be continued on the next page.
      Specified by:
      getNewPageBefore in interface IStiPageBreak
    • setNewPageBefore

      public void setNewPageBefore(boolean value)
      Specified by:
      setNewPageBefore in interface IStiPageBreak
    • getNewPageAfter

      public boolean getNewPageAfter()
      If the value of this property is true, then, after output of a band, a new page will be generated.
      Specified by:
      getNewPageAfter in interface IStiPageBreak
    • setNewPageAfter

      public void setNewPageAfter(boolean value)
      Specified by:
      setNewPageAfter in interface IStiPageBreak
    • getNewColumnBefore

      public boolean getNewColumnBefore()
      If the value of this property is true, then, before output of a band, a new column will be generated. Output of a band will be continued on the next column.
      Specified by:
      getNewColumnBefore in interface IStiPageBreak
    • setNewColumnBefore

      public void setNewColumnBefore(boolean value)
      Specified by:
      setNewColumnBefore in interface IStiPageBreak
    • getNewColumnAfter

      public boolean getNewColumnAfter()
      If the value of this property is true, then, after output of a band, a new column will be generated.
      Specified by:
      getNewColumnAfter in interface IStiPageBreak
    • setNewColumnAfter

      public void setNewColumnAfter(boolean value)
      Specified by:
      setNewColumnAfter in interface IStiPageBreak
    • getSkipFirst

      public boolean getSkipFirst()
      If the value of this property is true, then, a new page/column will be generated only starting from the second case.
      Specified by:
      getSkipFirst in interface IStiPageBreak
    • setSkipFirst

      public void setSkipFirst(boolean value)
      Specified by:
      setSkipFirst in interface IStiPageBreak
    • getBreakIfLessThan

      public float getBreakIfLessThan()
      Gets or sets value which indicates how much free space is on a page (in per cent) should be reserved for formation of a new page or a new column. The value should be set in the range from 0 to 100. If the value is 100 then, in any case, a new page or a new column will be formed. This property is used together with NewPageBefore, NewPageAfter, NewColumnBefore, NewColumnAfter properties.
      Specified by:
      getBreakIfLessThan in interface IStiPageBreak
    • setBreakIfLessThan

      public void setBreakIfLessThan(float value)
      Specified by:
      setBreakIfLessThan in interface IStiPageBreak
    • SaveToJsonObject

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

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