public class CrossTabInfo
extends java.lang.Object
| Constructor and Description | 
|---|
CrossTabInfo(java.lang.String dataSetName,
            java.util.Vector<CTRowColFieldInfo> clmFldInfos,
            java.util.Vector<CTRowColFieldInfo> rowFldInfos,
            java.util.Vector<CTAggFieldInfo> smrFldInfos,
            int boundary,
            boolean isHorizontal)
Constructor. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
addColumnFldInfo(CTRowColFieldInfo elementInfo)
Inserts the column's information at the end of columns in the crosstab. 
 | 
void | 
addColumnFldInfo(int index,
                CTRowColFieldInfo elementInfo)
Inserts column field's information at specified index in the crosstab. 
 | 
boolean | 
addRowFldInfo(CTRowColFieldInfo info)
Inserts row's information at the end of rows in the crosstab. 
 | 
void | 
addRowFldInfo(int index,
             CTRowColFieldInfo elementInfo)
Inserts row's information into the crosstab. 
 | 
boolean | 
addSummaryFldInfo(CTAggFieldInfo info)
Adds aggregate field's information at the end of aggregate fields list in the crosstab. 
 | 
void | 
addSummaryFldInfo(int index,
                 CTAggFieldInfo[] infos)
Inserts aggregate field's informations in the crosstab at the specified position. 
 | 
void | 
clearColumnFldInfos()
Removes all column's informations in the crosstab. 
 | 
void | 
clearRowFldInfos()
Remove all row's informations in the crosstab. 
 | 
void | 
clearsmrFldInfos()
Removes all aggregate field's informations in the crosstab. 
 | 
int | 
getBoundary()
Gets the number of rows/columns with which the aggregate fields to be displayed in the crosstab. 
 | 
CTRowColFieldInfo | 
getColumnFldInfo(int index)
Gets the specified column's information in the crosstab. 
 | 
java.util.Vector<CTRowColFieldInfo> | 
getColumnFldInfos()
Gets column's informations in the crosstab. 
 | 
java.lang.String | 
getDataSet()
Gets dataset name that crosstab referred to. 
 | 
double | 
getHeight()
Gets the predefined height of the crosstab. 
 | 
CTRowColFieldInfo | 
getRowFldInfo(int index)
Gets the specified row's information in the crosstab. 
 | 
java.util.Vector<CTRowColFieldInfo> | 
getRowFldInfos()
Gets row's informations in the crosstab. 
 | 
CTAggFieldInfo | 
getSummaryFldInfo(int index)
Gets the aggregate field's information in the crosstab. 
 | 
java.util.Vector<CTAggFieldInfo> | 
getSummaryFldInfos()
Gets aggregate field's informations in the crosstab. 
 | 
double | 
getWidth()
Gets the predefined width of the crosstab. 
 | 
boolean | 
isHorizontal()
Whether the aggregate fields will be layout horizontally or not. 
 | 
boolean | 
isInheritDataSet()
Specifies whether or not to inherit the parent's dataSet. 
 | 
boolean | 
isStyleInherit()
Checks whether the crosstab use its parent's style. 
 | 
boolean | 
removeColumnFldInfo(CTRowColFieldInfo info)
Removes specified column field's information in the crosstab. 
 | 
CTRowColFieldInfo | 
removeColumnFldInfo(int index)
Removes the specified column's information in the crosstab. 
 | 
boolean | 
removeRowFldInfo(CTRowColFieldInfo elementInfo)
Removes the specified row's information in the crosstab. 
 | 
CTRowColFieldInfo | 
removeRowFldInfo(int index)
Removes the specified row's information in the crosstab. 
 | 
boolean | 
removeSummaryFldInfo(CTAggFieldInfo info)
Removes the specified aggregate field's information from the crosstab. 
 | 
CTAggFieldInfo | 
removeSummaryFldInfo(int index)
Removes the specified aggregate field's information in the crosstab 
 | 
void | 
setBoundary(int boundary)
Sets the number of rows/columns with which the aggregate fields to be displayed in the crosstab. 
 | 
void | 
setColumnFldInfos(java.util.Vector<CTRowColFieldInfo> clmFldInfos)
Sets column's informations in the crosstab. 
 | 
void | 
setDataSet(java.lang.String dataSet)
Sets dataset name that crosstab referred to. 
 | 
void | 
setHeight(double height)
Sets the predefined height of the crosstab. 
 | 
void | 
setHorizontal(boolean isHorizontal)
Sets whether the aggregate fields will be layout horizontally or not. 
 | 
void | 
setInheritDataSet(boolean isInheritDataSet)
Sets whether to inherit parent's dataSet or not. 
 | 
void | 
setRowFldInfos(java.util.Vector<CTRowColFieldInfo> rowFldInfos)
Sets row's informations in the crosstab. 
 | 
void | 
setsmrFldInfos(java.util.Vector<CTAggFieldInfo> smrFldInfos)
Sets the new aggregate field's informations in the crosstab. 
 | 
void | 
setStyleInherit(boolean styleInherit)
Sets whether to make the crosstab to take the style of its parent. 
 | 
void | 
setWidth(double width)
Sets predefined the width of the crosstab. 
 | 
public CrossTabInfo(java.lang.String dataSetName,
                    java.util.Vector<CTRowColFieldInfo> clmFldInfos,
                    java.util.Vector<CTRowColFieldInfo> rowFldInfos,
                    java.util.Vector<CTAggFieldInfo> smrFldInfos,
                    int boundary,
                    boolean isHorizontal)
dataSetName - The dataset's name that will be used to build the crosstab.clmFldInfos - The column's informations in the crosstab.rowFldInfos - The row's informations in the crosstab.smrFldInfos - The aggregate field's informations in the crosstab.isHorizontal - Specifies whether the aggregate fields will be layout in the crosstab horizontally or not.boundary - Specifies the number of rows/columns of the aggregate fields in the crosstab according to the isHorizontal.
                                                I.e, if the isHorizontal is true, by default, the boundary is -1, which means that there is only one row with which to arrange the aggregate fields horizontally; if it is set to 1, that means there will be only one column to arrange the aggregate fields vertically; if it is set to a number larger than 1, that means there will be this number of aggregate columns; if this number is larger than the number of aggregate fields in the crosstab, it will be treated as -1.public java.lang.String getDataSet()
public void setDataSet(java.lang.String dataSet)
dataSet - dataset name that crosstab referred to.public java.util.Vector<CTRowColFieldInfo> getColumnFldInfos()
public void setColumnFldInfos(java.util.Vector<CTRowColFieldInfo> clmFldInfos)
clmFldInfos - The column's informations in the crosstab.public void addColumnFldInfo(int index,
                             CTRowColFieldInfo elementInfo)
index - The index of the new CTRowColFieldInfo in the crosstab columns. The index starts from 0.elementInfo - The new column field's information.public boolean addColumnFldInfo(CTRowColFieldInfo elementInfo)
elementInfo - The new column field's information.true if it adds successfully; false otherwise.public void clearColumnFldInfos()
public CTRowColFieldInfo getColumnFldInfo(int index)
index - The index of the specified column in the crosstab. The index starts from 0.public CTRowColFieldInfo removeColumnFldInfo(int index)
index - The index of the CTRowColFieldInfo to be removed. The index starts from 0.null otherwise.public boolean removeColumnFldInfo(CTRowColFieldInfo info)
info - column field's information to be removed.true if it removes successfully; false otherwise.public java.util.Vector<CTAggFieldInfo> getSummaryFldInfos()
public void setsmrFldInfos(java.util.Vector<CTAggFieldInfo> smrFldInfos)
smrFldInfos - The new aggregate field's informations in the crosstab.public void addSummaryFldInfo(int index,
                              CTAggFieldInfo[] infos)
index - The index of the new CTAggFieldInfos in the crosstab columns. The index starts from 0.infos - The new aggregate field's informations to be inserted.public boolean addSummaryFldInfo(CTAggFieldInfo info)
info - The new aggregate field's information to be inserted.true if it adds successfully; false otherwise.public void clearsmrFldInfos()
public CTAggFieldInfo getSummaryFldInfo(int index)
index - The index specifies the CTAggFieldInfos in the crosstab. The index starts from 0.public CTAggFieldInfo removeSummaryFldInfo(int index)
index - The index specifies the CTAggFieldInfos in the crosstab. The index starts from 0.null otherwise.public boolean removeSummaryFldInfo(CTAggFieldInfo info)
info - The aggregate field's information to be removed from the crosstab.true if it removes successfully; false otherwise.public java.util.Vector<CTRowColFieldInfo> getRowFldInfos()
public void setRowFldInfos(java.util.Vector<CTRowColFieldInfo> rowFldInfos)
rowFldInfos - The new row's informations in the crosstab.public void addRowFldInfo(int index,
                          CTRowColFieldInfo elementInfo)
index - The index of the new CTRowColFieldInfo in the crosstab rows. The index starts from 0.elementInfo - The new row's information.public boolean addRowFldInfo(CTRowColFieldInfo info)
info - The new row's CTRowColFieldInfo information.true if it adds successfully; false otherwise.public void clearRowFldInfos()
public CTRowColFieldInfo getRowFldInfo(int index)
index - The index of the specified row in the crosstab. The index starts from 0.public CTRowColFieldInfo removeRowFldInfo(int index)
index - The index of row to be removed. The index starts from 0.null otherwise.public boolean removeRowFldInfo(CTRowColFieldInfo elementInfo)
elementInfo - The row's information to be removed.true if it removes successfully; false otherwise.public int getBoundary()
public void setBoundary(int boundary)
isHorizontal. 
 I.e, if the isHorizontal is true, by default, the boundary is -1, which means that there is only one row with which to arrange the aggregate fields horizontally; if it is set to 1, that means there will be only one column to arrange the aggregate fields vertically; if it is set to a number larger than 1, that means there will be this number of aggregate columns; if this number is larger than the number of aggregate fields in the crosstab, it will be treated as -1.boundary - The number of rows/columns with which the aggregate fields to be displayed in the crosstab.public boolean isHorizontal()
true if aggregate fields will be layout horizontally; false, aggregate fields will be layout vertically.public void setHorizontal(boolean isHorizontal)
isHorizontal - true if aggregate fields will be layout horizontally; false, aggregate fields will be layout vertically.public double getHeight()
public void setHeight(double height)
height - The predefined height of the crosstab.public double getWidth()
public void setWidth(double width)
width - The predefined width of the crosstab.public boolean isInheritDataSet()
true if the parent's dataSet used; false otherwise.public void setInheritDataSet(boolean isInheritDataSet)
isInheritDataSet - if true it will use parent's dataSet; otherwise if false.public boolean isStyleInherit()
true if the crosstab uses its parent's the style; true otherwise.public void setStyleInherit(boolean styleInherit)
styleInherit - Specifies whether the crosstab uses the style of its parent or not.