public class ExcelExporterReport extends PackedReport
packeeEMPTYFIT, KEY, PAPER_HEIGHT, PAPER_WHDTH, TOOLBAR_HEIGHT, WEB_PAGE, XML_TAG| 构造器和说明 |
|---|
ExcelExporterReport(ResultECReport packee,
int column,
int row,
int width,
int height) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCellElement(CellElement cell) |
void |
addCellElement(CellElement cell,
boolean override) |
void |
addColumnPrivilegeControl(int column,
java.lang.String selectedRole)
设置列权限
|
void |
addFloatElement(FloatElement floatElement)
Adds FloatElement to Report.
|
void |
addRowPrivilegeControl(int row,
java.lang.String selectedRole)
设置行权限
|
void |
bringFloatElementForward(FloatElement floatElement)
Brings FloatElement to forward.
|
void |
bringFloatElementToFront(FloatElement floatElement)
Brings FloatElement to the front.
|
java.util.Iterator |
cellIterator()
获取单元格的遍历器
|
java.lang.Object |
clone()
Clone.
|
java.util.Iterator |
floatIterator()
FloatElement Iterator
|
PageSetProvider |
generateReportPageSet(PaperSettingProvider setting)
模板生成PageIterator 传入纸张大小 -1,-1 表示使用模板定义的大小
|
Block |
getBlock(int index) |
CellElement |
getCellElement(int column,
int row)
Gets the Cell at the specified position(column, row).
|
java.lang.Object |
getCellValue(int column,
int row)
获取指定行列的单元格值
|
java.util.Iterator |
getColumn(int columnIndex)
获取指定列的遍历迭代器
|
int |
getColumnCount()
获取列的总数
|
int[] |
getColumnMappingArray() |
ColumnRowPrivilegeControl |
getColumnPrivilegeControl(int column)
获取列权限
|
FU |
getColumnWidth(int col)
获取指定列的宽度
|
DynamicUnitList |
getColumnWidthList_DEC()
获取列宽
|
FloatElement |
getFloatElement(java.lang.String name)
Gets an FloatElement with the specified name.
|
Report |
getReport() |
ReportPageAttrProvider |
getReportPageAttr()
Gets element-case page attributes.
|
ResultBlock |
getResultBlock(int index) |
ResultCellElement |
getResultCellElement(int column,
int row)
Gets the Cell at the specified position(column, row).
|
ResultReport |
getResultReport() |
java.util.Iterator |
getRow(int rowIndex)
获取指定行的列遍历器
|
int |
getRowCount()
获取行总数
|
FU |
getRowHeight(int r)
获取指定行的高度
|
DynamicUnitList |
getRowHeightList_DEC()
获取行高
|
int[] |
getRowMappingArray() |
ColumnRowPrivilegeControl |
getRowPrivilegeControl(int row)
获取列权限
|
TableDataSource |
getTableDataSource()
获取当前报表页对象所使用的数据源
|
void |
insertColumn(int columnIndex)
Inserts column.
|
void |
insertRow(int rowIndex)
Inserts row.
|
java.util.Iterator |
intersect(int column,
int row,
int width,
int height) |
void |
merge(int rowFrom,
int rowTo,
int colFrom,
int colTo)
Merge cell elements intersects the rectangle
|
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
recalculate(Report report,
java.util.Map parameterMap)
重新计算报表
|
void |
removeAllCellElements()
移除所有的单元格
|
void |
removeAllFloatElements()
Removes all FloatElements from this report.
|
boolean |
removeCellElement(CellElement cell) |
CellElement |
removeCellElement(int column,
int row)
Removes the Cell at the specified (column, row) and gets the removed Cell.
|
void |
removeColumn(int columnIndex)
移除指定的列
|
void |
removeColumnPrivilegeControl(int column,
java.lang.String selectedRole)
删除列权限
|
boolean |
removeFloatElement(FloatElement floatElement)
Removes the first (lowest-indexed) occurrence of the FloatElement from the report.
|
FloatElement |
removeFloatElement(java.lang.String name)
Removes an FloatElement with the specified name and gets the removed FloatElement.
|
void |
removeRow(int rowIndex)
移除指定的行
|
void |
removeRowPrivilegeControl(int row,
java.lang.String selectedRole)
删除行权限
|
void |
sendFloatElementBackward(FloatElement floatElement)
Sends FloatElement to backward.
|
void |
sendFloatElementToBack(FloatElement floatElement)
Sends FloatElement back.
|
void |
setCellValue(int column,
int row,
java.lang.Object newValue)
设置指定行列的单元格新值
|
void |
setColumnWidth(int column,
UNIT newValue)
设置指定索引列的列宽
|
void |
setReport(Report report) |
void |
setReportPageAttr(ReportPageAttrProvider reportPageAttr)
Sets report page attributes.
|
void |
setRowHeight(int row,
UNIT newValue)
设置指定索引行的高度
|
void |
shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
根据单元格内容自动调整行宽
|
void |
shrinkTOFitRowHeightForCellElement(CellElement cellElement)
根据单元格内容自动调整行高
|
boolean |
swapCellElement(ColumnRow cr1,
ColumnRow cr2) |
void |
writeCommonXML(XMLPrintWriter writer)
只写出基本属性
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
getBook, getFooter, getHeader, getPackee, getReportSettings, getResultWorkBook, isElementCaseReport, isFiltered, iteratorOfElementCase, prepare2ShrinkRealWidthOrHeight4Cell, processWidgetAsImage, setFooter, setHeader, setReportSettings, setResultWorkBook, shrinkToFitPaperpublic ExcelExporterReport(ResultECReport packee, int column, int row, int width, int height)
public ResultReport getResultReport()
public java.util.Iterator cellIterator()
CellElementCaseGetterpublic int getColumnCount()
CellElementCaseGetterpublic FU getColumnWidth(int col)
CellElementCaseGetterpublic FU getRowHeight(int r)
CellElementCaseGetterpublic java.util.Iterator getRow(int rowIndex)
CellElementCaseGetterpublic int getRowCount()
CellElementCaseGetterpublic java.util.Iterator floatIterator()
FloatElementCaseGetterpublic void addCellElement(CellElement cell)
public void addCellElement(CellElement cell, boolean override)
public CellElement getCellElement(int column, int row)
CellElementCasecolumn - the column.row - the row.public java.lang.Object getCellValue(int column,
int row)
CellElementCasecolumn - 列row - 行public java.util.Iterator getColumn(int columnIndex)
CellElementCasecolumnIndex - 指定的索引public void insertColumn(int columnIndex)
CellElementCasecolumnIndex - the index of column.public void insertRow(int rowIndex)
CellElementCaserowIndex - the index of row.public java.util.Iterator intersect(int column,
int row,
int width,
int height)
public void merge(int rowFrom,
int rowTo,
int colFrom,
int colTo)
CellElementCasepublic void removeAllCellElements()
CellElementCasepublic boolean removeCellElement(CellElement cell)
public CellElement removeCellElement(int column, int row)
CellElementCasepublic void removeColumn(int columnIndex)
CellElementCasepublic void removeRow(int rowIndex)
CellElementCasepublic void setCellValue(int column,
int row,
java.lang.Object newValue)
CellElementCasecolumn - 列row - 行newValue - 新值public void addFloatElement(FloatElement floatElement)
FloatElementCasefloatElement - the added FloatElement.public void bringFloatElementForward(FloatElement floatElement)
FloatElementCasepublic void bringFloatElementToFront(FloatElement floatElement)
FloatElementCasepublic FloatElement getFloatElement(java.lang.String name)
FloatElementCasepublic void removeAllFloatElements()
FloatElementCasepublic boolean removeFloatElement(FloatElement floatElement)
FloatElementCasefloatElement - the floatElement will be removed.true if the argument was a cellElement in the
report; false otherwisepublic FloatElement removeFloatElement(java.lang.String name)
FloatElementCasepublic void sendFloatElementBackward(FloatElement floatElement)
FloatElementCasepublic void sendFloatElementToBack(FloatElement floatElement)
FloatElementCasepublic void readXML(XMLableReader reader)
XMLReadablereadXML 在接口中 XMLReadablereadXML 在类中 PackedReportreader - XML读取对象XMLableReaderpublic void writeXML(XMLPrintWriter writer)
XMLWriterwriteXML 在接口中 XMLWriterwriteXML 在类中 PackedReportwriter - XML写入对象public void writeCommonXML(XMLPrintWriter writer)
ResultReportpublic ResultCellElement getResultCellElement(int column, int row)
ResultElementCasecolumn - the column.row - the row.public int[] getColumnMappingArray()
getColumnMappingArray 在接口中 ResultElementCasegetColumnMappingArray 在类中 PackedReportpublic int[] getRowMappingArray()
getRowMappingArray 在接口中 ResultElementCasegetRowMappingArray 在类中 PackedReportpublic void recalculate(Report report, java.util.Map parameterMap)
PackedReportrecalculate 在接口中 ResultReportrecalculate 在类中 PackedReportreport - 源报表parameterMap - 参数public Report getReport()
public void setReport(Report report)
public void setColumnWidth(int column,
UNIT newValue)
CellElementCasecolumn - 指定索引newValue - 新值public void setReportPageAttr(ReportPageAttrProvider reportPageAttr)
ElementCasepublic void setRowHeight(int row,
UNIT newValue)
CellElementCaserow - 指定索引newValue - 新值public ReportPageAttrProvider getReportPageAttr()
ElementGetterpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
PackedReportclone 在接口中 FCloneableclone 在类中 PackedReportjava.lang.CloneNotSupportedException - 如果克隆失败则抛出此异常public PageSetProvider generateReportPageSet(PaperSettingProvider setting)
ResultReportpublic Block getBlock(int index)
public ResultBlock getResultBlock(int index)
public TableDataSource getTableDataSource()
Reportpublic void shrinkTOFitRowHeightForCellElement(CellElement cellElement)
ElementCasecellElement - 指定单元格public void shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
ElementCasecellElement - 指定单元格public DynamicUnitList getRowHeightList_DEC()
ElementCasepublic DynamicUnitList getColumnWidthList_DEC()
ElementCasepublic void addRowPrivilegeControl(int row,
java.lang.String selectedRole)
ElementCaserow - 指定行selectedRole - 选中的角色public void addColumnPrivilegeControl(int column,
java.lang.String selectedRole)
ElementCasecolumn - 指定列selectedRole - 选中的角色public void removeColumnPrivilegeControl(int column,
java.lang.String selectedRole)
ElementCasecolumn - 指定列selectedRole - 选中的角色public void removeRowPrivilegeControl(int row,
java.lang.String selectedRole)
ElementCaserow - 指定行selectedRole - 选中的角色public ColumnRowPrivilegeControl getRowPrivilegeControl(int row)
ElementCasepublic ColumnRowPrivilegeControl getColumnPrivilegeControl(int column)
ElementCase