public abstract class AbstractFineBook extends IOFile implements FineBook
限定符和类型 | 类和说明 |
---|---|
protected static interface |
AbstractFineBook.ReportWriter |
限定符和类型 | 字段和说明 |
---|---|
protected ReportFitAttr |
fitAttr |
protected ElementCaseMobileAttr |
mobileAttr |
protected ReportExportAttr |
reportExportAttr |
protected ReportWebAttr |
reportWebAttr |
ANA_PREVIEW_TYPE, DEFAULT_PREVIEW_TYPE, WRITE_ENHANCE_PREVIEW_TYPE, WRITE_PREVIEW_TYPE
tableDataList, XML_TAG
KEY
XML_TAG
构造器和说明 |
---|
AbstractFineBook() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
addReport(int index,
java.lang.String reportName,
Report report)
添加结果报表
|
protected void |
addReport(Report report)
添加结果报表
|
void |
addReport(java.lang.String reportName,
Report report)
添加结果报表
|
java.lang.Object |
clone() |
boolean |
equals(java.lang.Object o) |
java.lang.String[] |
getCSSImport()
获取引用的css
|
ECReport |
getElementCaseReport(int index)
当isElementCaseBook返回true时,即该FineBook中包含的都是ECReport时
调用此方法来获取相应位置上的ECReport
非此情况下调用,将抛出RuntimeException
|
java.lang.String[] |
getJSImport()
获取引用的js
|
Report |
getReport(int index)
获取指定索引的report
|
int |
getReportCount()
获取Report的数量
|
ReportExportAttr |
getReportExportAttr()
Gets report export attributes.
|
ReportFitAttr |
getReportFitAttr() |
protected int |
getReportIndex(Report report)
Gets the position of report in WorkBook
|
ElementCaseMobileAttr |
getReportMobileAttr() |
java.lang.String |
getReportName(int index)
Gets sheet name at given position.
|
ReportWebAttr |
getReportWebAttr()
Gets report web attributes.
|
boolean |
isElementCaseBook()
是否是普通的单ElementCase的报表类型(区别于聚合报表)
|
boolean |
isElementCaseBook(int index)
指定index的Block是否是普通的单ElementCase的报表类型(区别于聚合报表)
|
void |
mainContent(XMLPrintWriter writer)
写内容
|
protected abstract void |
mainContentWriteXML(XMLPrintWriter writer) |
void |
readXML(XMLableReader reader)
读取子节点,应该会被XMLableReader.readXMLObject()调用多次
|
void |
removeReport(int index)
Removes report at given position.
|
void |
removeReport(java.lang.String reportName)
Removes report with the given name.
|
void |
removeReports()
Removes all report.
|
protected void |
setReport(int index,
Report report)
Sets report at given position.
|
protected void |
setReport(int index,
java.lang.String reportName,
Report report)
Sets report with specified name at given position..
|
void |
setReportExportAttr(ReportExportAttr reportExportAttr)
Sets report export attributes.
|
void |
setReportFitAttr(ReportFitAttr fitAttr) |
void |
setReportMobileAttr(ElementCaseMobileAttr attr)
设置报表的移动端属性
|
void |
setReportName(int index,
java.lang.String reportName)
Sets sheet name at given position.
|
void |
setReportWebAttr(ReportWebAttr reportWebAttr)
Sets report web attributes.
|
protected abstract void |
setWorkBook(Report report,
FineBook book) |
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
protected void |
writeXML(XMLPrintWriter writer,
AbstractFineBook.ReportWriter reportWriter) |
addAttrMark, export, getAllMarkName, getAttrMark, getDesignerVersion, getPreviewType, getTemplateID, getXMLDesignerVersion, getXmlVersion, isHigherThanCurrent, openTag, readDesign, readExtra, readStream, setDesignerVersion, setPreviewType, setTemplateID, setXmlVersion, suffix, writeDesign, writeExtra
clearAllTableData, copyDataSourceAttr, getTableData, getTableDataNameIterator, putTableData, removeTableData, renameTableData
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearAllTableData, getTableData, getTableDataNameIterator, putTableData, removeTableData, renameTableData
addAttrMark, getAllMarkName, getAttrMark
protected ReportWebAttr reportWebAttr
protected ReportExportAttr reportExportAttr
protected ReportFitAttr fitAttr
protected ElementCaseMobileAttr mobileAttr
protected void addReport(Report report)
report
- 结果报表public void addReport(java.lang.String reportName, Report report)
reportName
- 报表名report
- 结果报表protected void addReport(int index, java.lang.String reportName, Report report)
index
- 当前序列reportName
- 报表名report
- 结果报表public boolean isElementCaseBook()
isElementCaseBook
在接口中 FineBook
public boolean isElementCaseBook(int index)
isElementCaseBook
在接口中 FineBook
index
- 指定的序列public ECReport getElementCaseReport(int index)
FineBook
非此情况下调用,将抛出RuntimeException
getElementCaseReport
在接口中 FineBook
public java.lang.String getReportName(int index)
getReportName
在接口中 FineBook
index
- the given position.public void setReportName(int index, java.lang.String reportName)
setReportName
在接口中 FineBook
index
- the given position.reportName
- the name of Report.protected void setReport(int index, Report report)
index
- the given position.report
- the object of WorkSheet.protected void setReport(int index, java.lang.String reportName, Report report)
index
- the given position.reportName
- the name of report.report
- the object of report.protected int getReportIndex(Report report)
report
- public void removeReport(java.lang.String reportName)
removeReport
在接口中 FineBook
reportName
- 名称 the report name which will be removed.public void removeReports()
removeReports
在接口中 FineBook
public void removeReport(int index)
removeReport
在接口中 FineBook
index
- the given position. 序号public int getReportCount()
getReportCount
在接口中 FineBook
public ReportWebAttr getReportWebAttr()
FineBook
getReportWebAttr
在接口中 FineBook
public void setReportWebAttr(ReportWebAttr reportWebAttr)
FineBook
setReportWebAttr
在接口中 FineBook
public ReportFitAttr getReportFitAttr()
getReportFitAttr
在接口中 FitProvider
public void setReportFitAttr(ReportFitAttr fitAttr)
setReportFitAttr
在接口中 FitProvider
public ElementCaseMobileAttr getReportMobileAttr()
getReportMobileAttr
在接口中 FineBook
public void setReportMobileAttr(ElementCaseMobileAttr attr)
setReportMobileAttr
在接口中 FineBook
public ReportExportAttr getReportExportAttr()
FineBook
getReportExportAttr
在接口中 FineBook
public void setReportExportAttr(ReportExportAttr reportExportAttr)
FineBook
setReportExportAttr
在接口中 FineBook
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在接口中 FCloneable
clone
在类中 IOFile
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常public void writeXML(XMLPrintWriter writer)
XMLWriter
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractTableDataSource
writer
- XML写入对象protected void writeXML(XMLPrintWriter writer, AbstractFineBook.ReportWriter reportWriter)
public void readXML(XMLableReader reader)
XMLReadable
readXML
在接口中 XMLReadable
readXML
在类中 AbstractTableDataSource
reader
- XML读取对象XMLableReader
public java.lang.String[] getJSImport()
ImportJsCssProvider
getJSImport
在接口中 ImportJsCssProvider
public java.lang.String[] getCSSImport()
ImportJsCssProvider
getCSSImport
在接口中 ImportJsCssProvider
public void mainContent(XMLPrintWriter writer)
mainContent
在类中 IOFile
writer
- 输出Writerprotected abstract void mainContentWriteXML(XMLPrintWriter writer)
public boolean equals(java.lang.Object o)
equals
在类中 AbstractTableDataSource