public abstract class AbstractECReport extends java.lang.Object implements ECReport
| 限定符和类型 | 字段和说明 |
|---|---|
protected ElementCaseBlockImplement |
block |
protected FineBook |
book |
protected ReportAttrSet |
reportAttrSet |
FIT, KEY, PAPER_HEIGHT, PAPER_WHDTH, TOOLBAR_HEIGHT, WEB_PAGE, XML_TAG| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractECReport() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected java.lang.Object |
__mod_column_row(MOD_COLUMN_ROW mod) |
protected void |
addCellElement(CellElement cell) |
protected void |
addCellElement(CellElement cell,
boolean override) |
void |
addColumnPrivilegeControl(int column,
java.lang.String selectedRole)
设置列权限
|
void |
addFloatElement(FloatElement floatElement)
添加指定的悬浮元素
|
void |
addRowPrivilegeControl(int row,
java.lang.String selectedRole)
设置行权限
|
void |
bringFloatElementForward(FloatElement floatElement)
前移
|
void |
bringFloatElementToFront(FloatElement floatElement)
float element 弄到前面
|
void |
cacheCellElement(int maxCount,
int activePoolCount,
boolean cacheFirst)
缓存单元格
|
java.util.Iterator |
cellIterator()
单元格遍历器
|
java.lang.Object |
clone() |
protected java.lang.Object |
cloneWithoutCellCase() |
protected void |
cloneWithoutCellCase(AbstractECReport abs) |
void |
copyReadOnlyAttr(AbstractECReport toReport)
复制只读属性
|
protected abstract ElementCaseBlockImplement |
createElementCaseBlockImplement() |
boolean |
equals(java.lang.Object o) |
java.util.Iterator |
floatIterator()
获取悬浮元素的遍历器
|
ElementCaseBlockImplement |
getBlock() |
FineBook |
getBook()
获取当前报表页对象所在的报表簿
|
CellCase |
getCellCase() |
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()
获取总列数
|
ColumnRowPrivilegeControl |
getColumnPrivilegeControl(int column)
获取列权限
|
FU |
getColumnWidth(int column)
获取指定列的宽度
|
DynamicUnitList |
getColumnWidthList_DEC()
获取列宽
|
FloatElement |
getFloatElement(java.lang.String name)
获取指定name的悬浮元素
|
ReportHFProvider |
getFooter(int reportPageType)
返回页脚,具体的了解页脚的用法,可以查看
ReportHF这个类 |
ReportHFProvider |
getHeader(int reportPageType)
返回页眉,具体的了解页眉的用法,可以查看
ReportHF这个类 |
PaperSettingProvider |
getPaperSetting() |
ReportPageAttrProvider |
getReportPageAttr()
Gets element-case page attributes.
|
ReportSettingsProvider |
getReportSettings()
获取页面属性
|
java.util.Iterator |
getRow(int rowIndex)
获取指定行的列遍历器
|
int |
getRowCount()
获取行总数
|
FU |
getRowHeight(int row)
获取指定行的高度
|
DynamicUnitList |
getRowHeightList_DEC()
获取行高
|
ColumnRowPrivilegeControl |
getRowPrivilegeControl(int row)
获取行权限
|
TableDataSource |
getTableDataSource()
获取当前报表页对象所使用的数据源
|
void |
insertColumn(int columnIndex)
插入列
|
void |
insertRow(int rowIndex)
插入行
|
java.util.Iterator |
intersect(int column,
int row,
int width,
int height)
cellcase重叠部分
|
boolean |
isElementCaseReport()
是否是单元格格式报表
|
boolean |
isFiltered(CellElement cellElement)
单元格是否被过滤掉
|
java.util.Iterator |
iteratorOfElementCase()
返回单元格的迭代
|
void |
merge(int rowFrom,
int rowTo,
int colFrom,
int colTo)
合并单元格
|
void |
prepare2ShrinkRealWidthOrHeight4Cell(CellElement cur_ce,
int mode)
计算单元格的真实大小
hugh:通过接口处理单元格实际高度,比如html,toimage,形态接口处理之后的真实单元格大小与原来直接计算的并不一样,需要调整
|
protected void |
readReportHF(XMLableReader reader,
boolean isHeader) |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
recalculateCellCase()
重新计算单元格
|
void |
releaseCellElementCache()
释放缓存
|
void |
removeAllCellElements()
移除所有单元格
|
void |
removeAllFloatElements()
移除所有的悬浮元素
|
protected boolean |
removeCellElement(CellElement cell) |
CellElement |
removeCellElement(int column,
int row)
移除指定单元格
|
void |
removeColumn(int columnIndex)
删除列
|
void |
removeColumnPrivilegeControl(int column,
java.lang.String selectedRole)
删除列权限
|
boolean |
removeFloatElement(FloatElement floatElement)
移除指定的悬浮元素
|
FloatElement |
removeFloatElement(java.lang.String name)
移除指定name的悬浮元素
|
void |
removeRow(int rowIndex)
删除行
|
void |
removeRowPrivilegeControl(int row,
java.lang.String selectedRole)
删除行权限
|
void |
sendFloatElementBackward(FloatElement floatElement)
后移
|
void |
sendFloatElementToBack(FloatElement floatElement)
float element 弄到后面
|
void |
setBook(FineBook book) |
void |
setCellCase(CellCase cellCase) |
void |
setCellValue(int column,
int row,
java.lang.Object newValue)
设置指定行列的单元格新值
|
void |
setColumnWidth(int column,
UNIT newValue)
设置指定列的宽度
|
void |
setFooter(int reportPageType,
ReportHF reportHF)
设置页脚,具体的了解页脚的用法,可以查看
ReportHF这个类 |
void |
setHeader(int reportPageType,
ReportHF reportHF)
设置页眉,具体的了解页脚的用法,可以查看
ReportHF这个类 |
void |
setReportPageAttr(ReportPageAttrProvider reportPageAttr)
Sets report page attributes.
|
void |
setReportSettings(ReportSettingsProvider reportSettings)
设置报表的页面属性
|
void |
setRowHeight(int row,
UNIT newValue)
设置指定行的高度
|
void |
shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
收缩列宽
|
void |
shrinkToFitPaper(Calculator calculator)
自适应调整页面行高列宽
|
void |
shrinkTOFitRowHeightForCellElement(CellElement cellElement)
收缩行高
|
void |
writeCommonXML(XMLPrintWriter writer)
只写基本的格子属性出去
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
protected ReportAttrSet reportAttrSet
protected FineBook book
protected ElementCaseBlockImplement block
public TableDataSource getTableDataSource()
ReportgetTableDataSource 在接口中 Reportpublic DynamicUnitList getRowHeightList_DEC()
ElementCasegetRowHeightList_DEC 在接口中 ElementCasepublic ElementCaseBlockImplement getBlock()
public DynamicUnitList getColumnWidthList_DEC()
ElementCasegetColumnWidthList_DEC 在接口中 ElementCasepublic void addRowPrivilegeControl(int row,
java.lang.String selectedRole)
addRowPrivilegeControl 在接口中 ElementCaserow - 行selectedRole - 选中public void addColumnPrivilegeControl(int column,
java.lang.String selectedRole)
addColumnPrivilegeControl 在接口中 ElementCasecolumn - 列selectedRole - 选中规则public void removeColumnPrivilegeControl(int column,
java.lang.String selectedRole)
removeColumnPrivilegeControl 在接口中 ElementCasecolumn - 列号selectedRole - 选中规则public void removeRowPrivilegeControl(int row,
java.lang.String selectedRole)
removeRowPrivilegeControl 在接口中 ElementCaserow - 行号selectedRole - 选中规则public ColumnRowPrivilegeControl getRowPrivilegeControl(int row)
getRowPrivilegeControl 在接口中 ElementCaserow - 行号public ColumnRowPrivilegeControl getColumnPrivilegeControl(int column)
getColumnPrivilegeControl 在接口中 ElementCasecolumn - 列号public void setBook(FineBook book)
public boolean isElementCaseReport()
isElementCaseReport 在接口中 Reportpublic java.util.Iterator iteratorOfElementCase()
iteratorOfElementCase 在接口中 Reportprotected abstract ElementCaseBlockImplement createElementCaseBlockImplement()
public ReportHFProvider getHeader(int reportPageType)
ReportReportHF这个类public void setHeader(int reportPageType,
ReportHF reportHF)
ReportReportHF这个类public ReportHFProvider getFooter(int reportPageType)
ReportReportHF这个类public void setFooter(int reportPageType,
ReportHF reportHF)
ReportReportHF这个类public ReportSettingsProvider getReportSettings()
PageAttributeGettergetReportSettings 在接口中 PageAttributeGetterpublic void setReportSettings(ReportSettingsProvider reportSettings)
ReportsetReportSettings 在接口中 ReportreportSettings - 报表页的页面属性public PaperSettingProvider getPaperSetting()
public ReportPageAttrProvider getReportPageAttr()
ElementGettergetReportPageAttr 在接口中 ElementGetterpublic void setCellCase(CellCase cellCase)
public void setReportPageAttr(ReportPageAttrProvider reportPageAttr)
ElementCasesetReportPageAttr 在接口中 ElementCaseprotected void addCellElement(CellElement cell)
protected boolean removeCellElement(CellElement cell)
public void recalculateCellCase()
public void cacheCellElement(int maxCount,
int activePoolCount,
boolean cacheFirst)
maxCount - 最大个数activePoolCount - 激活的个数cacheFirst - 是否缓存public void releaseCellElementCache()
protected void addCellElement(CellElement cell, boolean override)
public CellElement getCellElement(int column, int row)
CellElementCasegetCellElement 在接口中 CellElementCasecolumn - the column.row - the row.public java.lang.Object getCellValue(int column,
int row)
CellElementCasegetCellValue 在接口中 CellElementCasecolumn - 列row - 行public java.util.Iterator getColumn(int columnIndex)
CellElementCasegetColumn 在接口中 CellElementCasecolumnIndex - 指定的索引protected java.lang.Object __mod_column_row(MOD_COLUMN_ROW mod)
public void insertColumn(int columnIndex)
insertColumn 在接口中 CellElementCasecolumnIndex - 列号.public void insertRow(int rowIndex)
insertRow 在接口中 CellElementCaserowIndex - 行号.public java.util.Iterator intersect(int column,
int row,
int width,
int height)
intersect 在接口中 CellElementCasecolumn - 列row - 行width - 宽度height - 高度public void merge(int rowFrom,
int rowTo,
int colFrom,
int colTo)
merge 在接口中 CellElementCaserowFrom - 起始行rowTo - 结束行colFrom - 起始列colTo - 结束列public void removeAllCellElements()
removeAllCellElements 在接口中 CellElementCasepublic CellElement removeCellElement(int column, int row)
removeCellElement 在接口中 CellElementCasecolumn - 列号row - 行号public void removeColumn(int columnIndex)
removeColumn 在接口中 CellElementCasecolumnIndex - 列号public void removeRow(int rowIndex)
removeRow 在接口中 CellElementCaserowIndex - 行号public void setCellValue(int column,
int row,
java.lang.Object newValue)
CellElementCasesetCellValue 在接口中 CellElementCasecolumn - 列row - 行newValue - 新值public void setColumnWidth(int column,
UNIT newValue)
setColumnWidth 在接口中 CellElementCasesetColumnWidth 在接口中 ElementCasecolumn - 列序号newValue - 新值public void setRowHeight(int row,
UNIT newValue)
setRowHeight 在接口中 CellElementCasesetRowHeight 在接口中 ElementCaserow - 行序号newValue - 新值public java.util.Iterator cellIterator()
cellIterator 在接口中 CellElementCaseGetterpublic int getColumnCount()
getColumnCount 在接口中 CellElementCaseGetterpublic FU getColumnWidth(int column)
getColumnWidth 在接口中 CellElementCaseGetterpublic java.util.Iterator getRow(int rowIndex)
CellElementCaseGettergetRow 在接口中 CellElementCaseGetterpublic int getRowCount()
getRowCount 在接口中 CellElementCaseGetterpublic FU getRowHeight(int row)
getRowHeight 在接口中 CellElementCaseGetterpublic void addFloatElement(FloatElement floatElement)
addFloatElement 在接口中 FloatElementCasefloatElement - 新增的悬浮元素public void bringFloatElementForward(FloatElement floatElement)
bringFloatElementForward 在接口中 FloatElementCasefloatElement - 悬浮元素public void bringFloatElementToFront(FloatElement floatElement)
bringFloatElementToFront 在接口中 FloatElementCasefloatElement - 悬浮元素public FloatElement getFloatElement(java.lang.String name)
getFloatElement 在接口中 FloatElementCasename - 指定的namepublic void removeAllFloatElements()
removeAllFloatElements 在接口中 FloatElementCasepublic boolean removeFloatElement(FloatElement floatElement)
removeFloatElement 在接口中 FloatElementCasefloatElement - 悬浮元素名称.public FloatElement removeFloatElement(java.lang.String name)
removeFloatElement 在接口中 FloatElementCasename - 元素名称public void sendFloatElementBackward(FloatElement floatElement)
sendFloatElementBackward 在接口中 FloatElementCasefloatElement - 元素名称public void sendFloatElementToBack(FloatElement floatElement)
sendFloatElementToBack 在接口中 FloatElementCasefloatElement - 元素名称public java.util.Iterator floatIterator()
floatIterator 在接口中 FloatElementCaseGetterpublic void shrinkTOFitRowHeightForCellElement(CellElement cellElement)
shrinkTOFitRowHeightForCellElement 在接口中 ElementCasecellElement - 单元格public void shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
shrinkTOFitColumnWidthForCellElement 在接口中 ElementCasecellElement - 单元格public void readXML(XMLableReader reader)
XMLReadablereadXML 在接口中 XMLReadablereader - XML读取对象XMLableReaderprotected void readReportHF(XMLableReader reader, boolean isHeader)
public void writeXML(XMLPrintWriter writer)
XMLWriterpublic void writeCommonXML(XMLPrintWriter writer)
writer - 写xmlpublic boolean equals(java.lang.Object o)
equals 在类中 java.lang.Objectpublic void copyReadOnlyAttr(AbstractECReport toReport)
toReport - 目标reportprotected java.lang.Object cloneWithoutCellCase()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionprotected void cloneWithoutCellCase(AbstractECReport abs) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone 在接口中 FCloneableclone 在类中 java.lang.Objectjava.lang.CloneNotSupportedException - 如果克隆失败则抛出此异常public CellCase getCellCase()
public void shrinkToFitPaper(Calculator calculator)
shrinkToFitPaper 在接口中 ElementCasecalculator - 算子public void prepare2ShrinkRealWidthOrHeight4Cell(CellElement cur_ce, int mode)
ElementCaseprepare2ShrinkRealWidthOrHeight4Cell 在接口中 ElementCasecur_ce - 单元格mode - 自动调整的模式public boolean isFiltered(CellElement cellElement)
FilterableisFiltered 在接口中 FilterablecellElement - 单元格