|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.spire.xls.core.spreadsheet.XlsObject
com.spire.xls.core.spreadsheet.pivottables.XlsPivotTable
public class XlsPivotTable
| Constructor Summary | |
|---|---|
XlsPivotTable(java.lang.Object parent)
|
|
XlsPivotTable(java.lang.Object parent,
int cacheIndex,
IXLSRange location)
|
|
| Method Summary | |
|---|---|
void |
calculateData()
Calculates pivottable's data to cells. |
void |
clear()
This method clears all the fields, deletes all filtering and sorting applied to the PivotTable. |
void |
clearColumnFieldFilter(java.lang.String fieldName)
clear the column field filter. |
void |
clearFilter(java.lang.String fieldName)
clear the row and column field filter depends on field name. |
void |
clearRowFieldFilter(java.lang.String fieldName)
clear the row field filter. |
java.lang.Object |
deepClone(java.lang.Object parent)
|
java.lang.Object |
deepClone(java.lang.Object parent,
int cacheIndex,
java.util.HashMap hashWorksheetNames)
|
boolean |
getAllSubTotalTop()
Indicated whether diplay all subtotal at top of group,Change will cover every field's setting |
PivotBuiltInStyles |
getBuiltInStyle()
Gets/sets built-in pivot style. |
PivotCache |
getCache()
Returns cache used by this pivot table. |
int |
getCacheIndex()
Gets Index of the pivot Cache.Read-only. |
IPivotCalculatedFields |
getCalculatedFields()
Returns the collection of calculated fields of the specified pivot table.Read-only. |
IPivotFields |
getColumnFields()
Returns the collection of Column field for the specified pivot table.Read-only. |
int |
getColumnsPerPage()
Specifies the number of columns per page for this PivotTable that the filter area will occupy. |
java.lang.String |
getCustomTableStyleName()
|
PivotDataFields |
getDataFields()
Gets collection of pivot table data fields. |
boolean |
getDisplayErrorString()
True if the PivotTable report displays a custom error string in cells that contain errors. |
boolean |
getDisplayFieldCaptions()
Gets/sets value controlling whether or not filter buttons and PivotField captions for rows and columns are displayed in the grid. |
boolean |
getDisplayNullString()
True if the PivotTable report displays a custom string in cells that contain null values. |
boolean |
getEnableDrilldown()
True if drilldown is enabled. |
boolean |
getEnableFieldDialog()
True if the PivotTable Field dialog box is available when the user double-clicks the PivotTable field. |
boolean |
getEnableWizard()
True if the PivotTable Wizard is available. |
java.lang.String |
getErrorString()
Returns or sets the string displayed in cells that contain errors when the DisplayErrorString property is True. |
int |
getFirstDataCol()
Specifies the first column of the PivotTable data, relative to the top left cell in the ref value |
int |
getFirstDataRow()
Specifies the first column of the PivotTable data, relative to the top left cell in the ref value |
int |
getFirstHeaderRow()
Specifies the first row of the PivotTable header, relative to the top left cell in the ref value. |
CellRange |
getLocation()
Returns pivot table location. |
boolean |
getManualUpdate()
True if the PivotTable report is recalculated only at the user's request. |
boolean |
getMergeLabels()
True if the specified PivotTable report抯 outer-row item, column item, subtotal, and grand total labels use merged cells. |
java.lang.String |
getName()
Gets pivot table name. |
java.lang.String |
getNullString()
Returns or sets the string displayed in cells that contain null values when the DisplayNullString property is True. |
IPivotTableOptions |
getOptions()
Represents the pivot table options.Read-only |
PagesOrderType |
getPageFieldOrder()
Returns or sets the order in which page fields are added to the PivotTable report layout. |
IPivotFields |
getPageFields()
Returns the collection of page field for the specified pivot table,Read-only. |
java.lang.String |
getPageFieldStyle()
Returns or sets the style used in the bound page field area. |
int |
getPageFieldWrapCount()
Returns or sets the number of page fields in each column or row in the PivotTable report. |
XlsPivotTablesCollection |
getParent()
|
PivotConditionalFormatCollection |
getPivotConditionalFormats()
Returns collection of pivot conditional format. |
PivotTableFields |
getPivotFields()
Gets collection of pivot fields. |
boolean |
getRepeatItemsOnEachPrintedPage()
True if row, column, and item labels appear on the first row of each page when the specified PivotTable report is printed. |
CollectionExtended |
getReportFilters()
Gets or sets report filter collection |
IPivotFields |
getRowFields()
Returns the collection of Row field for the specified pivot table.Read-only. |
int |
getRowsPerPage()
Specifies the number of rows per page for this PivotTable that the filter area will occupy.Read-only. |
boolean |
getShowColHeaderStyle()
Specifies a boolean value that indicates whether to show column headers for the table. |
boolean |
getShowColStripes()
Specifies a boolean value that indicates whether to show column stripe formatting for the table. |
boolean |
getShowColumnGrand()
Gets/sets value indicating whether the PivotTable contains grand totals for columns. |
boolean |
getShowDataFieldInRow()
Represents the pivot table to add the Calculated Data field in rows |
boolean |
getShowDrillIndicators()
The ShowDrillIndicators property is used for toggling the display of drill indicators in the PivotTable. |
boolean |
getShowLastCol()
Specifies a boolean value that indicates whether to show the last column. |
boolean |
getShowRowGrand()
Gets/sets value indicating whether the PivotTable contains grand totals for rows. |
boolean |
getShowRowHeaderStyle()
Specifies a boolean value that indicates whether to show row headers for the table. |
boolean |
getShowRowStripes()
Specifies a boolean value that indicates whether to show row stripe formatting for the table. |
XlsWorkbook |
getWorkbook()
Gets parent workbook. |
XlsWorksheet |
getWorksheet()
|
boolean |
isColumnGrand()
Gets/sets value indicating whether the PivotTable contains column with grand totals for rows (same as ColumnGrand in VBA). |
void |
isColumnGrand(boolean value)
Gets/sets value indicating whether the PivotTable contains column with grand totals for rows (same as ColumnGrand in VBA). |
boolean |
isRowGrand()
Gets/sets value indicating whether the PivotTable contains row with grand totals for columns (same as RowGrand in VBA). |
void |
isRowGrand(boolean value)
Gets/sets value indicating whether the PivotTable contains row with grand totals for columns (same as RowGrand in VBA). |
void |
setAllSubTotalTop(boolean value)
Indicated whether diplay all subtotal at top of group,Change will cover every field's setting |
void |
setBuiltInStyle(PivotBuiltInStyles builtInStyle)
Sets built-in pivot style. |
void |
setColumnsPerPage(int value)
Specifies the number of columns per page for this PivotTable that the filter area will occupy. |
void |
setCustomTableStyleName(java.lang.String value)
|
void |
setDisplayErrorString(boolean value)
True if the PivotTable report displays a custom error string in cells that contain errors. |
void |
setDisplayFieldCaptions(boolean value)
Gets/sets value controlling whether or not filter buttons and PivotField captions for rows and columns are displayed in the grid. |
void |
setDisplayNullString(boolean value)
True if the PivotTable report displays a custom string in cells that contain null values. |
void |
setEnableDrilldown(boolean value)
True if drilldown is enabled. |
void |
setEnableFieldDialog(boolean value)
True if the PivotTable Field dialog box is available when the user double-clicks the PivotTable field. |
void |
setEnableWizard(boolean value)
True if the PivotTable Wizard is available. |
void |
setErrorString(java.lang.String value)
Returns or sets the string displayed in cells that contain errors when the DisplayErrorString property is True. |
void |
setFirstDataCol(int value)
Specifies the first column of the PivotTable data, relative to the top left cell in the ref value |
void |
setFirstHeaderRow(int value)
Specifies the first row of the PivotTable header, relative to the top left cell in the ref value. |
void |
setLocation(CellRange value)
Returns pivot table location. |
void |
setManualUpdate(boolean value)
True if the PivotTable report is recalculated only at the user's request. |
void |
setMergeLabels(boolean value)
True if the specified PivotTable report抯 outer-row item, column item, subtotal, and grand total labels use merged cells. |
void |
setName(java.lang.String value)
Gets pivot table name. |
void |
setNullString(java.lang.String value)
Returns or sets the string displayed in cells that contain null values when the DisplayNullString property is True. |
void |
setPageFieldOrder(PagesOrderType value)
Returns or sets the order in which page fields are added to the PivotTable report layout. |
void |
setPageFieldStyle(java.lang.String value)
Returns or sets the style used in the bound page field area. |
void |
setPageFieldWrapCount(int value)
Returns or sets the number of page fields in each column or row in the PivotTable report. |
void |
setRepeatItemsOnEachPrintedPage(boolean value)
True if row, column, and item labels appear on the first row of each page when the specified PivotTable report is printed. |
void |
setReportFilters(CollectionExtended value)
Gets or sets report filter collection |
void |
setRowsPerPage(int value)
Specifies the number of rows per page for this PivotTable that the filter area will occupy.Read-only. |
void |
setShowColHeaderStyle(boolean value)
Specifies a boolean value that indicates whether to show column headers for the table. |
void |
setShowColStripes(boolean value)
Specifies a boolean value that indicates whether to show column stripe formatting for the table. |
void |
setShowColumnGrand(boolean value)
Gets/sets value indicating whether the PivotTable contains grand totals for columns. |
void |
setShowDataFieldInRow(boolean value)
Represents the pivot table to add the Calculated Data field in rows |
void |
setShowDrillIndicators(boolean value)
The ShowDrillIndicators property is used for toggling the display of drill indicators in the PivotTable. |
void |
setShowLastCol(boolean value)
Specifies a boolean value that indicates whether to show the last column. |
void |
setShowRowGrand(boolean value)
Gets/sets value indicating whether the PivotTable contains grand totals for rows. |
void |
setShowRowHeaderStyle(boolean value)
Specifies a boolean value that indicates whether to show row headers for the table. |
void |
setShowRowStripes(boolean value)
Specifies a boolean value that indicates whether to show row stripe formatting for the table. |
| Methods inherited from class com.spire.xls.core.spreadsheet.XlsObject |
|---|
dispose |
| Constructor Detail |
|---|
public XlsPivotTable(java.lang.Object parent)
public XlsPivotTable(java.lang.Object parent,
int cacheIndex,
IXLSRange location)
| Method Detail |
|---|
public java.lang.String getName()
getName in interface IPivotTablepublic void setName(java.lang.String value)
value - public PivotTableFields getPivotFields()
getPivotFields in interface IPivotTablepublic PivotDataFields getDataFields()
getDataFields in interface IPivotTablepublic boolean isRowGrand()
isRowGrand in interface IPivotTablepublic void isRowGrand(boolean value)
value - public boolean isColumnGrand()
isColumnGrand in interface IPivotTablepublic void isColumnGrand(boolean value)
value - public boolean getShowDrillIndicators()
getShowDrillIndicators in interface IPivotTablepublic void setShowDrillIndicators(boolean value)
value - public boolean getDisplayFieldCaptions()
getDisplayFieldCaptions in interface IPivotTablepublic void setDisplayFieldCaptions(boolean value)
value - public boolean getRepeatItemsOnEachPrintedPage()
getRepeatItemsOnEachPrintedPage in interface IPivotTablepublic void setRepeatItemsOnEachPrintedPage(boolean value)
value - public PivotBuiltInStyles getBuiltInStyle()
getBuiltInStyle in interface IPivotTablepublic void setBuiltInStyle(PivotBuiltInStyles builtInStyle)
builtInStyle - public boolean getShowRowGrand()
getShowRowGrand in interface IPivotTablepublic void setShowRowGrand(boolean value)
value - public boolean getShowColumnGrand()
getShowColumnGrand in interface IPivotTablepublic void setShowColumnGrand(boolean value)
value - public int getCacheIndex()
getCacheIndex in interface IPivotTablepublic CellRange getLocation()
getLocation in interface IPivotTablepublic void setLocation(CellRange value)
value - public IPivotTableOptions getOptions()
getOptions in interface IPivotTablepublic int getRowsPerPage()
getRowsPerPage in interface IPivotTablepublic void setRowsPerPage(int value)
value - public int getColumnsPerPage()
getColumnsPerPage in interface IPivotTablepublic void setColumnsPerPage(int value)
value - public IPivotCalculatedFields getCalculatedFields()
getCalculatedFields in interface IPivotTablepublic IPivotFields getPageFields()
getPageFields in interface IPivotTablepublic IPivotFields getRowFields()
getRowFields in interface IPivotTablepublic IPivotFields getColumnFields()
getColumnFields in interface IPivotTablepublic void clear()
clear in interface IPivotTablepublic void clearRowFieldFilter(java.lang.String fieldName)
clearRowFieldFilter in interface IPivotTablefieldName - the row field name.public void clearColumnFieldFilter(java.lang.String fieldName)
clearColumnFieldFilter in interface IPivotTablefieldName - the column field name.public void clearFilter(java.lang.String fieldName)
clearFilter in interface IPivotTablefieldName - the row and column field name.public XlsPivotTablesCollection getParent()
getParent in class XlsObjectpublic boolean getDisplayErrorString()
public void setDisplayErrorString(boolean value)
value - public boolean getDisplayNullString()
public void setDisplayNullString(boolean value)
value - public boolean getEnableDrilldown()
public void setEnableDrilldown(boolean value)
value - public boolean getEnableFieldDialog()
public void setEnableFieldDialog(boolean value)
value - public boolean getEnableWizard()
public void setEnableWizard(boolean value)
value - public java.lang.String getErrorString()
public void setErrorString(java.lang.String value)
value - public boolean getManualUpdate()
public void setManualUpdate(boolean value)
value - public boolean getMergeLabels()
public void setMergeLabels(boolean value)
value - public java.lang.String getNullString()
public void setNullString(java.lang.String value)
value - public PagesOrderType getPageFieldOrder()
public void setPageFieldOrder(PagesOrderType value)
value - public java.lang.String getPageFieldStyle()
public void setPageFieldStyle(java.lang.String value)
value - public int getPageFieldWrapCount()
public void setPageFieldWrapCount(int value)
value - public PivotCache getCache()
public PivotConditionalFormatCollection getPivotConditionalFormats()
public XlsWorkbook getWorkbook()
public XlsWorksheet getWorksheet()
public int getFirstDataCol()
public void setFirstDataCol(int value)
value - public int getFirstDataRow()
public int getFirstHeaderRow()
public void setFirstHeaderRow(int value)
value - public boolean getShowColHeaderStyle()
public void setShowColHeaderStyle(boolean value)
value - public boolean getShowColStripes()
public void setShowColStripes(boolean value)
value - public boolean getShowLastCol()
public void setShowLastCol(boolean value)
value - public boolean getShowRowHeaderStyle()
public void setShowRowHeaderStyle(boolean value)
value - public boolean getShowRowStripes()
public void setShowRowStripes(boolean value)
value - public boolean getShowDataFieldInRow()
getShowDataFieldInRow in interface IPivotTablepublic void setShowDataFieldInRow(boolean value)
value - public CollectionExtended getReportFilters()
public void setReportFilters(CollectionExtended value)
value - public boolean getAllSubTotalTop()
public void setAllSubTotalTop(boolean value)
value - public java.lang.String getCustomTableStyleName()
public void setCustomTableStyleName(java.lang.String value)
public void calculateData()
public java.lang.Object deepClone(java.lang.Object parent)
public java.lang.Object deepClone(java.lang.Object parent,
int cacheIndex,
java.util.HashMap hashWorksheetNames)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||