public class ReportDocPart extends AbstractDocumentPart
限定符和类型 | 类和说明 |
---|---|
protected static interface |
ReportDocPart.ReportWriter |
限定符和类型 | 字段和说明 |
---|---|
protected static java.lang.String |
REPORT_CLASS_TAG |
protected static java.lang.String |
REPORT_NAME_TAG |
protected static java.lang.String |
REPORT_TAG |
protected static java.lang.String |
REPORT_TOP_NAME_TAG |
构造器和说明 |
---|
ReportDocPart() |
ReportDocPart(AbstractPackagePart packagePart) |
ReportDocPart(DocumentPart parent,
AbstractPackagePart packagePart) |
限定符和类型 | 方法和说明 |
---|---|
void |
addReport(int index,
java.lang.String reportName,
Report report)
添加结果报表
|
void |
addReport(Report report)
添加结果报表
|
void |
addReport(java.lang.String reportName,
Report report)
添加结果报表
|
ReportDocPart |
clone() |
boolean |
equals(java.lang.Object o) |
ECReport |
getElementCaseReport(int index) |
FineBook |
getFineBook() |
Report |
getReport(int index)
获取指定索引的report
|
int |
getReportCount()
获取Report的数量
|
int |
getReportIndex(Report report)
Gets the position of report in WorkBook
|
java.lang.String |
getReportName(int index)
Gets sheet name at given position.
|
java.lang.String |
getTag()
获取标签。
|
XMLVersion |
getXmlVersion() |
boolean |
isElementCaseBook()
是否是普通的单ElementCase的报表类型(区别于聚合报表)
|
boolean |
isElementCaseBook(int index)
指定index的Block是否是普通的单ElementCase的报表类型(区别于聚合报表)
|
void |
onCommit(XMLPrintWriter writer)
子类实现的保存逻辑
|
void |
onRead(XMLableReader reader)
子类实现的读取逻辑,这里放置空实现,子类自行覆写
|
void |
onReadDelay(XMLableReader reader)
子类实现的延迟读取逻辑,这里放置空实现,子类自行覆写
|
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.
|
void |
setReport(int index,
Report report)
Sets report at given position.
|
void |
setReport(int index,
java.lang.String reportName,
Report report)
Sets report with specified name at given position..
|
void |
setReportName(int index,
java.lang.String reportName)
Sets sheet name at given position.
|
void |
setXmlVersion(XMLVersion xmlVersion) |
commit, compareTo, createDocPart, createDocPart, createDocPart, destroy, getContainer, getPackagePart, getParent, getPriority, load, loadDelay, save, setContainer, setPackagePart, setParent
protected static final java.lang.String REPORT_TAG
protected static final java.lang.String REPORT_TOP_NAME_TAG
protected static final java.lang.String REPORT_CLASS_TAG
protected static final java.lang.String REPORT_NAME_TAG
public ReportDocPart(AbstractPackagePart packagePart)
public ReportDocPart(DocumentPart parent, AbstractPackagePart packagePart)
public ReportDocPart()
public XMLVersion getXmlVersion()
public void setXmlVersion(XMLVersion xmlVersion)
public java.lang.String getTag()
getTag
在接口中 DocumentPart
getTag
在类中 AbstractDocumentPart
public FineBook getFineBook()
public boolean isElementCaseBook()
public boolean isElementCaseBook(int index)
index
- 指定的序列public ECReport getElementCaseReport(int index)
public void addReport(Report report)
report
- 结果报表public void addReport(java.lang.String reportName, Report report)
reportName
- 报表名report
- 结果报表public void addReport(int index, java.lang.String reportName, Report report)
index
- 当前序列reportName
- 报表名report
- 结果报表public java.lang.String getReportName(int index)
index
- the given position.public void setReportName(int index, java.lang.String reportName)
index
- the given position.reportName
- the name of Report.public Report getReport(int index)
public void setReport(int index, Report report)
index
- the given position.report
- the object of WorkSheet.public void setReport(int index, java.lang.String reportName, Report report)
index
- the given position.reportName
- the name of report.report
- the object of report.public int getReportIndex(Report report)
report
- public void removeReport(java.lang.String reportName)
reportName
- 名称 the report name which will be removed.public void removeReports()
public void removeReport(int index)
index
- the given position. 序号public int getReportCount()
public ReportDocPart clone()
clone
在接口中 FCloneable
clone
在类中 AbstractDocumentPart
public boolean equals(java.lang.Object o)
equals
在类中 java.lang.Object
public void onRead(XMLableReader reader)
AbstractDocumentPart
onRead
在类中 AbstractDocumentPart
reader
- 读取器public void onReadDelay(XMLableReader reader)
AbstractDocumentPart
onReadDelay
在类中 AbstractDocumentPart
reader
- xml readerpublic void onCommit(XMLPrintWriter writer)
onCommit
在类中 AbstractDocumentPart
writer
- xml writer