org.zkoss.pivot.util
Interface Exports.PivotExportContext

Enclosing class:
Exports

public static interface Exports.PivotExportContext

A context object containing information required for exporting to other files


Method Summary
 Exports.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.
 int getColumnOffset()
          Retrieve the column count of the row field area, which is also the column span of the row title cell.
 int getRowCount(boolean withDataField, boolean withGrandTotal)
          Retrieve the row count of the row field area.
 int getRowOffset()
          Retrieve the row count of the column field area, which is also the row span of the row title cell.
 int getSheetHeight()
          Return sheet height, the total row count.
 int getSheetWidth()
          Return sheet width, the total column count.
 Exports.PivotExportCell getTitleCell(Exports.PivotExportCell.Type type)
          Retrieves one of the title cells.
 

Method Detail

getColumnOffset

int getColumnOffset()
Retrieve the column count of the row field area, which is also the column span of the row title cell.


getRowOffset

int getRowOffset()
Retrieve the row count of the column field area, which is also the row span of the row title cell.


getColumnCount

int getColumnCount(boolean withDataField,
                   boolean withGrandTotal)
Retrieve the column count of the column field area.

Parameters:
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.

getRowCount

int getRowCount(boolean withDataField,
                boolean withGrandTotal)
Retrieve the row count of the row field area.

Parameters:
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.

getSheetWidth

int getSheetWidth()
Return sheet width, the total column count.


getSheetHeight

int getSheetHeight()
Return sheet height, the total row count.


getCell

Exports.PivotExportCell getCell(int rowIndex,
                                int columnIndex)
Retrieve the cell information at given position.


getTitleCell

Exports.PivotExportCell getTitleCell(Exports.PivotExportCell.Type type)
Retrieves one of the title cells.

Parameters:
type - must be TITLE_DATA, TITLE_COLUMN, or TITLE_ROW


Copyright © 2012. All Rights Reserved.