Class StiTable

All Implemented Interfaces:
IStiAppExpressionCollection, IStiJsonReportObject, IStiForceSerializable, IStiSerializable, IStiSerializableRef, IStiSerializableToAttributes, IStiName, IStiBorder, IStiBreakable, IStiBrush, IStiBusinessObject, IStiCanGrow, IStiCanShrink, IStiComponentGuid, IStiConditions, IStiDataRelation, IStiDataSource, IStiFilter, IStiGrowToHeight, IStiInteraction, IStiKeepDetailsTogether, IStiKeepFooterTogether, IStiKeepGroupTogether, IStiKeepHeaderTogether, IStiMasterComponent, IStiOddEvenStyles, IStiPageBreak, IStiPrintAtBottom, IStiPrintIfDetailEmpty, IStiPrintOn, IStiPrintOnAllPages, IStiRenderMaster, IStiResetPageNumber, IStiSelect, IStiShift, IStiSort, IStiStartNewPage, IStiUnitConvert, IStiTableComponent, IStiEnumerator, IStiReportProperty, IStiIgnoryStyle, IStiInherited, IStiStateSaveRestore, Cloneable

public class StiTable extends StiDataBand implements IStiTableComponent
  • Field Details

    • IsConverted

      public boolean IsConverted
    • autoWidthType

      public StiTableAutoWidthType autoWidthType
    • enabled

      public boolean enabled
  • Constructor Details

    • StiTable

      public StiTable()
      Creates an object of the type StiDataBand.
    • StiTable

      public StiTable(StiRectangle rect)
      Creates an object of the type StiDataBand.
      Parameters:
      rect - The rectangle decribes size and position of the component.
  • Method Details

    • clone

      public Object clone(boolean cloneProperties, boolean cloneComponents)
      Creates a new object that is a copy of the current instance.
      Overrides:
      clone in class StiDataBand
      Returns:
      A new object that is a copy of this instance.
    • convert

      public void convert(StiUnit oldUnit, StiUnit newUnit)
      Converts a component out of one unit into another.
      Specified by:
      convert in interface IStiUnitConvert
      Overrides:
      convert in class StiDataBand
      Parameters:
      oldUnit - Old units.
      newUnit - New units.
    • getCanGrow

      public boolean getCanGrow()
      Description copied from class: StiBand
      Gets or sets value indicates that this object can grow.
      Specified by:
      getCanGrow in interface IStiCanGrow
      Overrides:
      getCanGrow in class StiBand
    • setCanGrow

      public void setCanGrow(boolean value)
      Specified by:
      setCanGrow in interface IStiCanGrow
      Overrides:
      setCanGrow in class StiBand
    • getLocalizedName

      public String getLocalizedName()
      Gets a localized component name.
      Overrides:
      getLocalizedName in class StiDataBand
    • getLocalizedCategory

      public String getLocalizedCategory()
      Description copied from class: StiBand
      Gets a localized name of the component category.
      Overrides:
      getLocalizedCategory in class StiBand
    • getToolboxPosition

      public int getToolboxPosition()
      Description copied from class: StiDataBand
      Gets value to sort a position in the toolbox.
      Overrides:
      getToolboxPosition in class StiDataBand
    • getDockableTable

      public final boolean getDockableTable()
    • setDockableTable

      public final void setDockableTable(boolean value)
    • getAutoWidth

      public final StiTableAutoWidth getAutoWidth()
      Gets or sets which range use table component for adjusting columns width.
    • setAutoWidth

      public final void setAutoWidth(StiTableAutoWidth value)
    • getAutoWidthType

      public final StiTableAutoWidthType getAutoWidthType()
      Gets or sets how to table component adjust columns width.
    • setAutoWidthType

      public final void setAutoWidthType(StiTableAutoWidthType value)
    • getRowCount

      public final int getRowCount()
      Get or sets a number of rows in the table.
    • setRowCount

      public final void setRowCount(int value)
    • getColumnCount

      public final int getColumnCount()
      Get or sets a number of columns in the table.
    • setColumnCount

      public final void setColumnCount(int value)
    • getFooterRowsCount

      public final int getFooterRowsCount()
      Get or sets a number of footer rows in the table.
    • setFooterRowsCount

      public final void setFooterRowsCount(int value)
    • getHeaderRowsCount

      public final int getHeaderRowsCount()
      Get or sets a number of header rows in the table.
    • setHeaderRowsCount

      public final void setHeaderRowsCount(int value)
    • getDefaultHeightCell

      public final double getDefaultHeightCell()
    • getHeaderPrintOn

      public final StiPrintOnType getHeaderPrintOn()
      Gets or sets a value which indicates how header of table will be print on pages.
    • setHeaderPrintOn

      public final void setHeaderPrintOn(StiPrintOnType value)
    • getHeaderCanGrow

      public final boolean getHeaderCanGrow()
      Gets or sets value indicates that header of table can grow its height.
    • setHeaderCanGrow

      public final void setHeaderCanGrow(boolean value)
    • getHeaderCanShrink

      public final boolean getHeaderCanShrink()
      Gets or sets value which indicates that this header can shrink its height.
    • setHeaderCanShrink

      public final void setHeaderCanShrink(boolean value)
    • getHeaderCanBreak

      public final boolean getHeaderCanBreak()
      Gets or sets value which indicates that this header can break its content.
    • setHeaderCanBreak

      public final void setHeaderCanBreak(boolean value)
    • getHeaderPrintAtBottom

      public final boolean getHeaderPrintAtBottom()
      Gets or sets value indicates that the header of table will be print at bottom of page.
    • setHeaderPrintAtBottom

      public final void setHeaderPrintAtBottom(boolean value)
    • getHeaderPrintIfEmpty

      public final boolean getHeaderPrintIfEmpty()
      Gets or sets value indicates that the header will be print if data not present in table.
    • setHeaderPrintIfEmpty

      public final void setHeaderPrintIfEmpty(boolean value)
    • getHeaderPrintOnAllPages

      public boolean getHeaderPrintOnAllPages()
      Gets or sets value indicates that the header of table will be printed on all pages.
    • setHeaderPrintOnAllPages

      public void setHeaderPrintOnAllPages(boolean value)
    • getHeaderPrintOnEvenOddPages

      public StiPrintOnEvenOddPagesType getHeaderPrintOnEvenOddPages()
      Gets or sets value indicates how the header of table will be printed on even-odd pages.
    • setHeaderPrintOnEvenOddPages

      public void setHeaderPrintOnEvenOddPages(StiPrintOnEvenOddPagesType value)
    • getFooterPrintOn

      public final StiPrintOnType getFooterPrintOn()
      Gets or sets a value which indicates how footer of table will be print on pages.
    • setFooterPrintOn

      public final void setFooterPrintOn(StiPrintOnType value)
    • getFooterCanGrow

      public final boolean getFooterCanGrow()
      Gets or sets value indicates that footer of table can grow its height.
    • setFooterCanGrow

      public final void setFooterCanGrow(boolean value)
    • getFooterCanShrink

      public final boolean getFooterCanShrink()
      Gets or sets value which indicates that this footer can shrink its height.
    • setFooterCanShrink

      public final void setFooterCanShrink(boolean value)
    • getFooterCanBreak

      public final boolean getFooterCanBreak()
      Gets or sets value which indicates that this footer can break its content.
    • setFooterCanBreak

      public final void setFooterCanBreak(boolean value)
    • getFooterPrintAtBottom

      public final boolean getFooterPrintAtBottom()
      Gets or sets value indicates that the footer of table will be print at bottom of page.
    • setFooterPrintAtBottom

      public final void setFooterPrintAtBottom(boolean value)
    • getFooterPrintIfEmpty

      public final boolean getFooterPrintIfEmpty()
      Gets or sets value indicates that the footer will be print if data not present in table.
    • setFooterPrintIfEmpty

      public final void setFooterPrintIfEmpty(boolean value)
    • getFooterPrintOnAllPages

      public boolean getFooterPrintOnAllPages()
      Gets or sets value indicates that the footer of table will be printed on all pages.
    • setFooterPrintOnAllPages

      public void setFooterPrintOnAllPages(boolean value)
    • getFooterPrintOnEvenOddPages

      public StiPrintOnEvenOddPagesType getFooterPrintOnEvenOddPages()
      Gets or sets value indicates how the footer of table will be printed on even-odd pages.
    • setFooterPrintOnEvenOddPages

      public void setFooterPrintOnEvenOddPages(StiPrintOnEvenOddPagesType value)
    • getNumberID

      public final int getNumberID()
    • setNumberID

      public final void setNumberID(int value)
    • getColumns

      public int getColumns()
      Description copied from class: StiDataBand
      Gets or sets columns count.
      Overrides:
      getColumns in class StiDataBand
    • getColumnWidth

      public double getColumnWidth()
      Description copied from class: StiDataBand
      Gets or sets width of column.
      Overrides:
      getColumnWidth in class StiDataBand
    • getColumnGaps

      public double getColumnGaps()
      Description copied from class: StiDataBand
      Gets or sets distance between two columns.
      Overrides:
      getColumnGaps in class StiDataBand
    • getColumnDirection

      public StiColumnDirection getColumnDirection()
      Description copied from class: StiDataBand
      Gets or sets direction of the rendeting columns.
      Overrides:
      getColumnDirection in class StiDataBand
    • getMinRowsInColumn

      public int getMinRowsInColumn()
      Description copied from class: StiDataBand
      Gets or sets minimum count of the rows in one column.
      Overrides:
      getMinRowsInColumn in class StiDataBand
    • getMinHeight

      public double getMinHeight()
      Description copied from class: StiBand
      Gets or sets minimal height of band.
      Overrides:
      getMinHeight in class StiBand
    • setMinHeight

      public void setMinHeight(double value)
      Overrides:
      setMinHeight in class StiBand
    • getMaxHeight

      public double getMaxHeight()
      Description copied from class: StiBand
      Gets or sets maximal height of band.
      Overrides:
      getMaxHeight in class StiBand
    • setMaxHeight

      public void setMaxHeight(double value)
      Overrides:
      setMaxHeight in class StiBand
    • getMinSize

      public StiSize getMinSize()
      Description copied from class: StiComponent
      gets or sets minimal size.
      Overrides:
      getMinSize in class StiBand
    • setMinSize

      public void setMinSize(StiSize value)
      Overrides:
      setMinSize in class StiBand
    • getRightToLeft

      public boolean getRightToLeft()
      Description copied from class: StiDataBand
      Gets or sets horizontal column direction.
      Overrides:
      getRightToLeft in class StiDataBand
    • setRightToLeft

      public void setRightToLeft(boolean value)
      Overrides:
      setRightToLeft in class StiDataBand
    • getWidth

      public double getWidth()
      Description copied from class: StiComponent
      gets or sets width of a component.
      Overrides:
      getWidth in class StiBand
    • setWidth

      public void setWidth(double value)
      Overrides:
      setWidth in class StiBand
    • getHeight

      public double getHeight()
      Overrides:
      getHeight in class StiComponent
    • setHeight

      public void setHeight(double value)
      Overrides:
      setHeight in class StiComponent
    • getDefaultClientRectangle

      public StiRectangle getDefaultClientRectangle()
      Description copied from class: StiBand
      Gets or sets the default client area of a component.
      Overrides:
      getDefaultClientRectangle in class StiBand
    • getDockable

      public boolean getDockable()
      Description copied from class: StiComponent
      gets or sets a value which indicates whether the component will be docked or not.
      Overrides:
      getDockable in class StiComponent
    • setDockable

      public void setDockable(boolean value)
      Overrides:
      setDockable in class StiComponent
    • getHeaderStartStiColor

      public StiColor getHeaderStartStiColor()
    • getHeaderEndStiColor

      public StiColor getHeaderEndStiColor()
    • ChangeGrowToHeightAtCell

      public final void ChangeGrowToHeightAtCell(StiComponent cell)
    • getTableStyle

      public final StiTableStyle getTableStyle()
    • setTableStyle

      public final void setTableStyle(StiTableStyle value)
    • ApplyStyleNone

      public final void ApplyStyleNone()
    • createJoin

      public final ArrayList<Integer> createJoin(StiRefObject<Double> sumWidth, StiRefObject<Double> sumHeight, StiRefObject<Integer> joinWidth, StiRefObject<Integer> joinHeight)
      Join of the allocated cells
    • ChangeTableCellContentInImage

      public final void ChangeTableCellContentInImage(StiTableCell cellText)
    • ChangeTableCellContentInImage

      public final void ChangeTableCellContentInImage(StiTableCellCheckBox cellCheckBox)
    • ChangeTableCellContentInImage

      public final void ChangeTableCellContentInImage(StiTableCellRichText cellRichText)
    • ChangeTableCellContentInText

      public final void ChangeTableCellContentInText(StiTableCellImage cellImage)
    • ChangeTableCellContentInText

      public final void ChangeTableCellContentInText(StiTableCellCheckBox cellCheckBox)
    • ChangeTableCellContentInText

      public final void ChangeTableCellContentInText(StiTableCellRichText cellRichText)
    • ChangeTableCellContentInCheckBox

      public final void ChangeTableCellContentInCheckBox(StiTableCellImage cellImage)
    • ChangeTableCellContentInCheckBox

      public final void ChangeTableCellContentInCheckBox(StiTableCell cellText)
    • ChangeTableCellContentInCheckBox

      public final void ChangeTableCellContentInCheckBox(StiTableCellRichText cellRichText)
    • ChangeTableCellContentInRichText

      public final void ChangeTableCellContentInRichText(StiTableCell cellText)
    • ChangeTableCellContentInRichText

      public final void ChangeTableCellContentInRichText(StiTableCellImage cellImage)
    • ChangeTableCellContentInRichText

      public final void ChangeTableCellContentInRichText(StiTableCellCheckBox cellCheckBox)
    • GetColumnForCell

      public final int GetColumnForCell(IStiTableCell cell)
    • CreateCell

      public final void CreateCell()
    • InsertColumnToLeft

      public final void InsertColumnToLeft(int numberColumn)
    • InsertColumnToRight

      public final void InsertColumnToRight(int numberColumn)
    • InsertRowAbove

      public final void InsertRowAbove(int numberRow)
    • InsertRowBelow

      public final void InsertRowBelow(int numberRow)
    • DeleteRows

      public final void DeleteRows(int firstRow, int lastRow)
    • DeleteColumns

      public final void DeleteColumns(int firstColumn, int lastColumn)
    • DistributeRows

      public final void DistributeRows()
    • DistributeColumns

      public final void DistributeColumns()
    • AutoSizeCells

      public final void AutoSizeCells()
    • StartRenderTableBand

      public final StiDataBand StartRenderTableBand(Hashtable newTableComponents)
    • SaveToJsonObject

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

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