Klasse CrossTabBody
java.lang.Object
com.inet.report.CrossTabBody
- Alle implementierten Schnittstellen:
Serializable
This is the body of the CrossTab.
- Seit:
- 12.0
- Siehe auch:
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungaddSummaryField(@Nonnull Field field, int operation) Add a summary to the crosstab.@Nonnull CrossTabBodyCellgetCell(int idx) Get the ith cell of the body.@Nonnull CrossTabBodyCellgetCell(int rowIdx, int columnIdx) Get the cell that is related to the row header and column header.intGet the count of cells in the body.@Nonnull SummaryFieldgetSummaryField(int index) Returns the i-th summary fields of the crosstab.intReturns the number of summary fields of the crosstab.voidmoveSummaryField(int from, int to) Move the position of a summary fieldvoidremoveSummaryField(int index) Removes the ith summary field in from the crosstab.
-
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
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() -1to- 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
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
Add a summary to the crosstab.- Parameter:
field- the that should be to sum.operation- the summary operation. Must be a valid constant fromSummaryField- Gibt zurück:
- a SummaryField to set additional information
- Seit:
- 12.0
-
getCell
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
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
-