public interface PivotExportContext
Modifier and Type | Method and Description |
---|---|
PivotField[] |
getAllFields()
Returns all fields.
|
PivotExportCell |
getCell(int rowIndex,
int columnIndex)
Retrieve the cell information at given position.
|
int |
getColumnCount(boolean withDataField,
boolean withGrandTotal)
Retrieve the column count of the column field area.
|
PivotField[] |
getColumnFields()
Returns column fields.
|
int |
getColumnOffset()
Retrieve the column count of the row field area, which is also the
column span of the row title cell.
|
PivotField[] |
getDataFields()
Returns data fields.
|
Iterable<String> |
getRawColumns()
Returns raw fields.
|
Iterable<? extends List<?>> |
getRawData()
Returns raw data.
|
int |
getRowCount(boolean withDataField,
boolean withGrandTotal)
Retrieve the row count of the row field area.
|
PivotField[] |
getRowFields()
Returns row fields.
|
int |
getRowOffset()
Retrieve the row count of the column field area, which is also the
row span of the row title cell.
|
PivotExportSheetConfig |
getSheetConfig() |
int |
getSheetHeight()
Return sheet height, the total row count.
|
int |
getSheetWidth()
Return sheet width, the total column count.
|
PivotExportCell |
getTitleCell(PivotExportCell.Type type)
Retrieves one of the title cells.
|
boolean |
isDataFieldColumnOrient()
Returns data fields.
|
boolean |
isOpen()
open all row/column headers when exporting
|
int getColumnOffset()
int getRowOffset()
int getColumnCount(boolean withDataField, boolean withGrandTotal)
withDataField
- whether to concern data field. If true and there
are multiple data fields, the count is multiplied by the number of
data fields.withGrandTotal
- whether to include grand total fields.int getRowCount(boolean withDataField, boolean withGrandTotal)
withDataField
- whether to concern data field. If true and there
are multiple data fields, the count is multiplied by the number of
data fields.withGrandTotal
- whether to include grand total fields.int getSheetWidth()
int getSheetHeight()
PivotExportCell getCell(int rowIndex, int columnIndex)
PivotExportCell getTitleCell(PivotExportCell.Type type)
type
- must be TITLE_DATA, TITLE_COLUMN, or TITLE_ROWPivotField[] getRowFields()
PivotField[] getColumnFields()
PivotField[] getDataFields()
PivotField[] getAllFields()
boolean isDataFieldColumnOrient()
boolean isOpen()
PivotExportSheetConfig getSheetConfig()
Copyright © 2017. All rights reserved.