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()
Report
getTableDataSource
在接口中 Report
public DynamicUnitList getRowHeightList_DEC()
ElementCase
getRowHeightList_DEC
在接口中 ElementCase
public ElementCaseBlockImplement getBlock()
public DynamicUnitList getColumnWidthList_DEC()
ElementCase
getColumnWidthList_DEC
在接口中 ElementCase
public void addRowPrivilegeControl(int row, java.lang.String selectedRole)
addRowPrivilegeControl
在接口中 ElementCase
row
- 行selectedRole
- 选中public void addColumnPrivilegeControl(int column, java.lang.String selectedRole)
addColumnPrivilegeControl
在接口中 ElementCase
column
- 列selectedRole
- 选中规则public void removeColumnPrivilegeControl(int column, java.lang.String selectedRole)
removeColumnPrivilegeControl
在接口中 ElementCase
column
- 列号selectedRole
- 选中规则public void removeRowPrivilegeControl(int row, java.lang.String selectedRole)
removeRowPrivilegeControl
在接口中 ElementCase
row
- 行号selectedRole
- 选中规则public ColumnRowPrivilegeControl getRowPrivilegeControl(int row)
getRowPrivilegeControl
在接口中 ElementCase
row
- 行号public ColumnRowPrivilegeControl getColumnPrivilegeControl(int column)
getColumnPrivilegeControl
在接口中 ElementCase
column
- 列号public void setBook(FineBook book)
public boolean isElementCaseReport()
isElementCaseReport
在接口中 Report
public java.util.Iterator iteratorOfElementCase()
iteratorOfElementCase
在接口中 Report
protected abstract ElementCaseBlockImplement createElementCaseBlockImplement()
public ReportHFProvider getHeader(int reportPageType)
Report
ReportHF
这个类public void setHeader(int reportPageType, ReportHF reportHF)
Report
ReportHF
这个类public ReportHFProvider getFooter(int reportPageType)
Report
ReportHF
这个类public void setFooter(int reportPageType, ReportHF reportHF)
Report
ReportHF
这个类public ReportSettingsProvider getReportSettings()
PageAttributeGetter
getReportSettings
在接口中 PageAttributeGetter
public void setReportSettings(ReportSettingsProvider reportSettings)
Report
setReportSettings
在接口中 Report
reportSettings
- 报表页的页面属性public PaperSettingProvider getPaperSetting()
public ReportPageAttrProvider getReportPageAttr()
ElementGetter
getReportPageAttr
在接口中 ElementGetter
public void setCellCase(CellCase cellCase)
public void setReportPageAttr(ReportPageAttrProvider reportPageAttr)
ElementCase
setReportPageAttr
在接口中 ElementCase
protected 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)
CellElementCase
getCellElement
在接口中 CellElementCase
column
- the column.row
- the row.public java.lang.Object getCellValue(int column, int row)
CellElementCase
getCellValue
在接口中 CellElementCase
column
- 列row
- 行public java.util.Iterator getColumn(int columnIndex)
CellElementCase
getColumn
在接口中 CellElementCase
columnIndex
- 指定的索引protected java.lang.Object __mod_column_row(MOD_COLUMN_ROW mod)
public void insertColumn(int columnIndex)
insertColumn
在接口中 CellElementCase
columnIndex
- 列号.public void insertRow(int rowIndex)
insertRow
在接口中 CellElementCase
rowIndex
- 行号.public java.util.Iterator intersect(int column, int row, int width, int height)
intersect
在接口中 CellElementCase
column
- 列row
- 行width
- 宽度height
- 高度public void merge(int rowFrom, int rowTo, int colFrom, int colTo)
merge
在接口中 CellElementCase
rowFrom
- 起始行rowTo
- 结束行colFrom
- 起始列colTo
- 结束列public void removeAllCellElements()
removeAllCellElements
在接口中 CellElementCase
public CellElement removeCellElement(int column, int row)
removeCellElement
在接口中 CellElementCase
column
- 列号row
- 行号public void removeColumn(int columnIndex)
removeColumn
在接口中 CellElementCase
columnIndex
- 列号public void removeRow(int rowIndex)
removeRow
在接口中 CellElementCase
rowIndex
- 行号public void setCellValue(int column, int row, java.lang.Object newValue)
CellElementCase
setCellValue
在接口中 CellElementCase
column
- 列row
- 行newValue
- 新值public void setColumnWidth(int column, UNIT newValue)
setColumnWidth
在接口中 CellElementCase
setColumnWidth
在接口中 ElementCase
column
- 列序号newValue
- 新值public void setRowHeight(int row, UNIT newValue)
setRowHeight
在接口中 CellElementCase
setRowHeight
在接口中 ElementCase
row
- 行序号newValue
- 新值public java.util.Iterator cellIterator()
cellIterator
在接口中 CellElementCaseGetter
public int getColumnCount()
getColumnCount
在接口中 CellElementCaseGetter
public FU getColumnWidth(int column)
getColumnWidth
在接口中 CellElementCaseGetter
public java.util.Iterator getRow(int rowIndex)
CellElementCaseGetter
getRow
在接口中 CellElementCaseGetter
public int getRowCount()
getRowCount
在接口中 CellElementCaseGetter
public FU getRowHeight(int row)
getRowHeight
在接口中 CellElementCaseGetter
public void addFloatElement(FloatElement floatElement)
addFloatElement
在接口中 FloatElementCase
floatElement
- 新增的悬浮元素public void bringFloatElementForward(FloatElement floatElement)
bringFloatElementForward
在接口中 FloatElementCase
floatElement
- 悬浮元素public void bringFloatElementToFront(FloatElement floatElement)
bringFloatElementToFront
在接口中 FloatElementCase
floatElement
- 悬浮元素public FloatElement getFloatElement(java.lang.String name)
getFloatElement
在接口中 FloatElementCase
name
- 指定的namepublic void removeAllFloatElements()
removeAllFloatElements
在接口中 FloatElementCase
public boolean removeFloatElement(FloatElement floatElement)
removeFloatElement
在接口中 FloatElementCase
floatElement
- 悬浮元素名称.public FloatElement removeFloatElement(java.lang.String name)
removeFloatElement
在接口中 FloatElementCase
name
- 元素名称public void sendFloatElementBackward(FloatElement floatElement)
sendFloatElementBackward
在接口中 FloatElementCase
floatElement
- 元素名称public void sendFloatElementToBack(FloatElement floatElement)
sendFloatElementToBack
在接口中 FloatElementCase
floatElement
- 元素名称public java.util.Iterator floatIterator()
floatIterator
在接口中 FloatElementCaseGetter
public void shrinkTOFitRowHeightForCellElement(CellElement cellElement)
shrinkTOFitRowHeightForCellElement
在接口中 ElementCase
cellElement
- 单元格public void shrinkTOFitColumnWidthForCellElement(CellElement cellElement)
shrinkTOFitColumnWidthForCellElement
在接口中 ElementCase
cellElement
- 单元格public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
reader
- XML读取对象XMLableReader
protected void readReportHF(XMLableReader reader, boolean isHeader)
public void writeXML(XMLPrintWriter writer)
XMLWriter
public void writeCommonXML(XMLPrintWriter writer)
writer
- 写xmlpublic boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public void copyReadOnlyAttr(AbstractECReport toReport)
toReport
- 目标reportprotected java.lang.Object cloneWithoutCellCase() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
protected void cloneWithoutCellCase(AbstractECReport abs) throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public CellCase getCellCase()
public void shrinkToFitPaper(Calculator calculator)
shrinkToFitPaper
在接口中 ElementCase
calculator
- 算子public void prepare2ShrinkRealWidthOrHeight4Cell(CellElement cur_ce, int mode)
ElementCase
prepare2ShrinkRealWidthOrHeight4Cell
在接口中 ElementCase
cur_ce
- 单元格mode
- 自动调整的模式public boolean isFiltered(CellElement cellElement)
Filterable
isFiltered
在接口中 Filterable
cellElement
- 单元格