public class PivotTableHandle extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTO_FORMAT_Classic |
static int |
AUTO_FORMAT_Report1 |
static int |
AUTO_FORMAT_Report10 |
static int |
AUTO_FORMAT_Report2 |
static int |
AUTO_FORMAT_Report3 |
static int |
AUTO_FORMAT_Report4 |
static int |
AUTO_FORMAT_Report5 |
static int |
AUTO_FORMAT_Report6 |
static int |
AUTO_FORMAT_Report7 |
static int |
AUTO_FORMAT_Report8 |
static int |
AUTO_FORMAT_Report9 |
static int |
AUTO_FORMAT_Table1 |
static int |
AUTO_FORMAT_Table10 |
static int |
AUTO_FORMAT_Table2 |
static int |
AUTO_FORMAT_Table3 |
static int |
AUTO_FORMAT_Table4 |
static int |
AUTO_FORMAT_Table5 |
static int |
AUTO_FORMAT_Table6 |
static int |
AUTO_FORMAT_Table7 |
static int |
AUTO_FORMAT_Table8 |
static int |
AUTO_FORMAT_Table9 |
| Constructor and Description |
|---|
PivotTableHandle(Sxview f,
WorkBookHandle bk)
Create a new PivotTableHandle from an Excel PivotTable
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsCol(int x)
returns whether a given col is contained in this PivotTable
|
boolean |
containsRow(int x)
returns whether a given row is contained in this PivotTable
|
boolean |
getAutoAlign()
get whether Alignment Autoformat is applied
|
boolean |
getAutoBorder()
get whether Border Autoformat is applied
|
boolean |
getAutoFont()
get whether Font Autoformat is applied
|
int |
getAutoFormatId()
get the auto format for the Table
|
boolean |
getAutoNumber()
get whether Number Autoformat is applied
|
boolean |
getAutoPattern()
get whether Pattern Autoformat is applied
|
boolean |
getAutoWidthHeight()
get whether Width/Height Autoformat is applied
|
int |
getColFirst()
get the first Column in the PivotTable
|
int |
getColFirstData()
get the first Column containing data
|
int |
getColLast()
get the last Column in the PivotTable
|
boolean |
getColsHaveGrandTotals()
get whether table displays a column grand total
|
String |
getDataName()
returns the name of the data field
|
CellRange |
getDataSourceRange() |
String |
getJSON()
returns the JSON representation of this PivotTable
|
int |
getRowFirst()
get the first row in the PivotTable
|
int |
getRowFirstData()
get the first Row containing data
|
int |
getRowFirstHead()
get the first header row
|
int |
getRowLast()
get the last row in the PivotTable
|
boolean |
getRowsHaveGrandTotals()
get whether table displays row grand totals
|
String |
getTableName()
get the Name of the PivotTable
|
boolean |
getUsesAutoFormat()
get whether table has auto format applied
|
WorkSheetHandle |
getWorkSheetHandle() |
void |
removeArtifacts() |
void |
setAutoAlign(boolean b)
set whether Alignment Autoformat is applied
|
void |
setAutoBorder(boolean b)
set whether Border Autoformat is applied
|
void |
setAutoFont(boolean b)
set whether Font Autoformat is applied
|
void |
setAutoFormatId(int b)
set the auto format for the Table
|
void |
setAutoNumber(boolean b)
set whether Number Autoformat is applied
|
void |
setAutoPattern(boolean b)
set whether Pattern Autoformat is applied
|
void |
setAutoWidthHeight(boolean b)
set Width/Height Autoformat is applied
|
void |
setColFirst(int s)
set the first Column in the PivotTable
|
void |
setColFirstData(int s)
set the first Column containing data
|
void |
setColLast(int s)
set the last Column in the PivotTable
|
void |
setColsHaveGrandTotals(boolean b)
set whether to display a column grand total
|
void |
setDataName(String name)
sets the name of the data field for this pivot table
|
void |
setRowFirst(int s)
set the first row in the PivotTable
|
void |
setRowFirstData(int s)
set the first Row containing data
|
void |
setRowFirstHead(int s)
set the first header row
|
void |
setRowLast(int s)
set the last row in the PivotTable
|
void |
setRowsHaveGrandTotals(boolean b)
set whether to display row grand totals
|
void |
setSource(String namedrange)
Sets the Pivot Table data source from a named range
|
void |
setSourceDataRange(CellRange cellRange)
Sets the Pivot Table Range to represent the Data to analyse
NOTE: any existing data will be replaced |
void |
setSourceDataRange(String range)
Sets the Pivot Table Range to represent the Data to analyse
NOTE: any existing data will be replaced If the cell range does not contain sheet information, the sheet that the pivot table is located will be used |
void |
setTableName(String tx)
set the Name of the PivotTable
|
void |
setUsesAutoFormat(boolean b)
set whether to auto format the Table
|
String |
toString()
return a more friendly
|
public static int AUTO_FORMAT_Report1
public static int AUTO_FORMAT_Report2
public static int AUTO_FORMAT_Report3
public static int AUTO_FORMAT_Report4
public static int AUTO_FORMAT_Report5
public static int AUTO_FORMAT_Report6
public static int AUTO_FORMAT_Report7
public static int AUTO_FORMAT_Report8
public static int AUTO_FORMAT_Report9
public static int AUTO_FORMAT_Report10
public static int AUTO_FORMAT_Table1
public static int AUTO_FORMAT_Table2
public static int AUTO_FORMAT_Table3
public static int AUTO_FORMAT_Table4
public static int AUTO_FORMAT_Table5
public static int AUTO_FORMAT_Table6
public static int AUTO_FORMAT_Table7
public static int AUTO_FORMAT_Table8
public static int AUTO_FORMAT_Table9
public static int AUTO_FORMAT_Table10
public static int AUTO_FORMAT_Classic
public PivotTableHandle(Sxview f, WorkBookHandle bk)
PivotTable - - the PivotTable to create a handle for.public WorkSheetHandle getWorkSheetHandle()
public CellRange getDataSourceRange()
public void setSourceDataRange(CellRange cellRange)
cellRange - The cellRange to set.public void setSourceDataRange(String range)
cellRange - public void setSource(String namedrange)
namedrange - Named Rangepublic String getTableName()
public void setTableName(String tx)
String - - value of the PivotTable if stored as a String.public String getDataName()
public void setDataName(String name)
name - public boolean containsRow(int x)
int - the row numberpublic String toString()
toString in class ObjectObject.toString()public boolean containsCol(int x)
int - the column numberpublic void setRowsHaveGrandTotals(boolean b)
boolean - whether to display row grand totalspublic boolean getRowsHaveGrandTotals()
public void setColsHaveGrandTotals(boolean b)
boolean - whether to display column grand totalpublic boolean getColsHaveGrandTotals()
public void setAutoFormatId(int b)
The valid formats are:
PivotTableHandle.AUTO_FORMAT_Report1
PivotTableHandle.AUTO_FORMAT_Report2
PivotTableHandle.AUTO_FORMAT_Report3
PivotTableHandle.AUTO_FORMAT_Report4
PivotTableHandle.AUTO_FORMAT_Report5
PivotTableHandle.AUTO_FORMAT_Report6
PivotTableHandle.AUTO_FORMAT_Report7
PivotTableHandle.AUTO_FORMAT_Report8
PivotTableHandle.AUTO_FORMAT_Report9
PivotTableHandle.AUTO_FORMAT_Report10
PivotTableHandle.AUTO_FORMAT_Table1
PivotTableHandle.AUTO_FORMAT_Table2
PivotTableHandle.AUTO_FORMAT_Table3
PivotTableHandle.AUTO_FORMAT_Table4
PivotTableHandle.AUTO_FORMAT_Table5
PivotTableHandle.AUTO_FORMAT_Table6
PivotTableHandle.AUTO_FORMAT_Table7
PivotTableHandle.AUTO_FORMAT_Table8
PivotTableHandle.AUTO_FORMAT_Table9
PivotTableHandle.AUTO_FORMAT_Table10
int - the auto format Id for the tablepublic int getAutoFormatId()
public void setUsesAutoFormat(boolean b)
boolean - whether to auto format the tablepublic boolean getUsesAutoFormat()
boolean - whether table has auto format appliedpublic void setAutoWidthHeight(boolean b)
boolean - whether to apply the Width/Height Autoformatpublic boolean getAutoWidthHeight()
public void setAutoFont(boolean b)
boolean - whether to apply the Font Autoformatpublic boolean getAutoFont()
public void removeArtifacts()
public void setAutoAlign(boolean b)
boolean - whether to apply the Alignment Autoformatpublic boolean getAutoAlign()
public void setAutoBorder(boolean b)
boolean - whether to apply the Border Autoformatpublic boolean getAutoBorder()
public void setAutoPattern(boolean b)
boolean - whether to apply the Pattern Autoformatpublic boolean getAutoPattern()
public void setAutoNumber(boolean b)
boolean - whether to apply the Number Autoformatpublic boolean getAutoNumber()
public void setRowFirst(int s)
public int getRowFirst()
public void setRowLast(int s)
public int getRowLast()
public void setColFirst(int s)
public int getColFirst()
public void setColLast(int s)
public int getColLast()
public void setRowFirstHead(int s)
public int getRowFirstHead()
public void setRowFirstData(int s)
public int getRowFirstData()
public void setColFirstData(int s)
public int getColFirstData()
public String getJSON()
Copyright © 2002–2019 Starter Inc.. All rights reserved.