public class ExcelExporterReport extends PackedReport
packee
EMPTY
FIT, 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, shrinkToFitPaper
public ExcelExporterReport(ResultECReport packee, int column, int row, int width, int height)
public ResultReport getResultReport()
public java.util.Iterator cellIterator()
CellElementCaseGetter
public int getColumnCount()
CellElementCaseGetter
public FU getColumnWidth(int col)
CellElementCaseGetter
public FU getRowHeight(int r)
CellElementCaseGetter
public java.util.Iterator getRow(int rowIndex)
CellElementCaseGetter
public int getRowCount()
CellElementCaseGetter
public java.util.Iterator floatIterator()
FloatElementCaseGetter
public void addCellElement(CellElement cell)
public void addCellElement(CellElement cell, boolean override)
public CellElement getCellElement(int column, int row)
CellElementCase
column
- the column.row
- the row.public java.lang.Object getCellValue(int column, int row)
CellElementCase
column
- 列row
- 行public java.util.Iterator getColumn(int columnIndex)
CellElementCase
columnIndex
- 指定的索引public void insertColumn(int columnIndex)
CellElementCase
columnIndex
- the index of column.public void insertRow(int rowIndex)
CellElementCase
rowIndex
- 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)
CellElementCase
public void removeAllCellElements()
CellElementCase
public boolean removeCellElement(CellElement cell)
public CellElement removeCellElement(int column, int row)
CellElementCase
public void removeColumn(int columnIndex)
CellElementCase
public void removeRow(int rowIndex)
CellElementCase
public void setCellValue(int column, int row, java.lang.Object newValue)
CellElementCase
column
- 列row
- 行newValue
- 新值public void addFloatElement(FloatElement floatElement)
FloatElementCase
floatElement
- the added FloatElement.public void bringFloatElementForward(FloatElement floatElement)
FloatElementCase
public void bringFloatElementToFront(FloatElement floatElement)
FloatElementCase
public FloatElement getFloatElement(java.lang.String name)
FloatElementCase
public void removeAllFloatElements()
FloatElementCase
public boolean removeFloatElement(FloatElement floatElement)
FloatElementCase
floatElement
- the floatElement will be removed.true
if the argument was a cellElement in the
report; false
otherwisepublic FloatElement removeFloatElement(java.lang.String name)
FloatElementCase
public void sendFloatElementBackward(FloatElement floatElement)
FloatElementCase
public void sendFloatElementToBack(FloatElement floatElement)
FloatElementCase
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
readXML
在类中 PackedReport
reader
- XML读取对象XMLableReader
public void writeXML(XMLPrintWriter writer)
XMLWriter
writeXML
在接口中 XMLWriter
writeXML
在类中 PackedReport
writer
- XML写入对象public void writeCommonXML(XMLPrintWriter writer)
ResultReport
public ResultCellElement getResultCellElement(int column, int row)
ResultElementCase
column
- the column.row
- the row.public int[] getColumnMappingArray()
getColumnMappingArray
在接口中 ResultElementCase
getColumnMappingArray
在类中 PackedReport
public int[] getRowMappingArray()
getRowMappingArray
在接口中 ResultElementCase
getRowMappingArray
在类中 PackedReport
public void recalculate(Report report, java.util.Map parameterMap)
PackedReport
recalculate
在接口中 ResultReport
recalculate
在类中 PackedReport
report
- 源报表parameterMap
- 参数public Report getReport()
public void setReport(Report report)
public void setColumnWidth(int column, UNIT newValue)
CellElementCase
column
- 指定索引newValue
- 新值public void setReportPageAttr(ReportPageAttrProvider reportPageAttr)
ElementCase
public void setRowHeight(int row, UNIT newValue)
CellElementCase
row
- 指定索引newValue
- 新值public ReportPageAttrProvider getReportPageAttr()
ElementGetter
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
PackedReport
clone
在接口中 FCloneable
clone
在类中 PackedReport
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public PageSetProvider generateReportPageSet(PaperSettingProvider setting)
ResultReport
public Block getBlock(int index)
public ResultBlock getResultBlock(int index)
public TableDataSource getTableDataSource()
Report
public void shrinkTOFitRowHeightForCellElement(CellElement cellElement)
ElementCase
cellElement
- 指定单元格public void shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
ElementCase
cellElement
- 指定单元格public DynamicUnitList getRowHeightList_DEC()
ElementCase
public DynamicUnitList getColumnWidthList_DEC()
ElementCase
public void addRowPrivilegeControl(int row, java.lang.String selectedRole)
ElementCase
row
- 指定行selectedRole
- 选中的角色public void addColumnPrivilegeControl(int column, java.lang.String selectedRole)
ElementCase
column
- 指定列selectedRole
- 选中的角色public void removeColumnPrivilegeControl(int column, java.lang.String selectedRole)
ElementCase
column
- 指定列selectedRole
- 选中的角色public void removeRowPrivilegeControl(int row, java.lang.String selectedRole)
ElementCase
row
- 指定行selectedRole
- 选中的角色public ColumnRowPrivilegeControl getRowPrivilegeControl(int row)
ElementCase
public ColumnRowPrivilegeControl getColumnPrivilegeControl(int column)
ElementCase