Klasse CrossTabBody

java.lang.Object
com.inet.report.CrossTabBody
Alle implementierten Schnittstellen:
Serializable

public class CrossTabBody extends Object implements Serializable
This is the body of the CrossTab.
Seit:
12.0
Siehe auch:
  • Methodendetails

    • getCellCount

      public int getCellCount()
      Get the count of cells in the body. This should be row count times column count.
      Gibt zurück:
      the cell count
      Seit:
      12.0
    • removeSummaryField

      public void removeSummaryField(int index) throws ReportException
      Removes the ith summary field in from the crosstab.
      Parameter:
      index - Index of the summary field.
      Löst aus:
      ReportException - if crosstab has no summary field or index is out of bounds.
      IllegalArgumentException - in case the index is negative.
      Seit:
      12.0
    • moveSummaryField

      public void moveSummaryField(int from, int to)
      Move the position of a summary field
      Parameter:
      from - original position in the range from 0 to getSummaryFieldsCount() -1
      to - new position in the range from 0 to getSummaryFieldsCount() -1
      Löst aus:
      IllegalArgumentException - if a index is out of range
      Seit:
      14.1
    • getSummaryField

      public @Nonnull SummaryField getSummaryField(int index)
      Returns the i-th summary fields of the crosstab.
      Parameter:
      index - The 0-based index of the required field.
      Gibt zurück:
      The i-th summary field.
      Seit:
      12.0
    • getSummaryFieldsCount

      public int getSummaryFieldsCount()
      Returns the number of summary fields of the crosstab.
      Gibt zurück:
      The number of summary fields.
      Seit:
      12.0
    • addSummaryField

      public SummaryField addSummaryField(@Nonnull Field field, int operation)
      Add a summary to the crosstab.
      Parameter:
      field - the that should be to sum.
      operation - the summary operation. Must be a valid constant from SummaryField
      Gibt zurück:
      a SummaryField to set additional information
      Seit:
      12.0
    • getCell

      public @Nonnull CrossTabBodyCell getCell(int idx)
      Get the ith cell of the body. The order is undefined. You can use this method to iterate over all cells.
      Parameter:
      idx - the 0 based index.
      Gibt zurück:
      CrossTabBodyCell, never null
      Seit:
      12.0
      Siehe auch:
    • getCell

      public @Nonnull CrossTabBodyCell getCell(int rowIdx, int columnIdx)
      Get the cell that is related to the row header and column header.
      Parameter:
      rowIdx - the 0 based index of the rows.
      columnIdx - the 0 based index of the columns
      Gibt zurück:
      the cell, never null
      Löst aus:
      IllegalStateException - if the crosstab is corrupt and the cell can not be found.
      Seit:
      12.0