public class ReportSessionIDInfor extends WidgetSessionIDInfor implements ReportSession
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
REPORT_NAME |
bookPath
context, lastTime, sessionID, startTime
KEY
构造器和说明 |
---|
ReportSessionIDInfor(java.util.Map paraMap) |
ReportSessionIDInfor(java.util.Map paraMap,
java.lang.String bookPath,
Actor policy) |
ReportSessionIDInfor(java.util.Map paraMap,
TemplateWorkBook workBookTemplate,
java.lang.String bookPath,
Actor policy) |
限定符和类型 | 方法和说明 |
---|---|
void |
apply4Parameters(java.util.Map<java.lang.String,java.lang.Object> paraMap)
已过时。
use
TemplateSessionIDInfo.applyParameter(Map) instead |
void |
applyParameter(java.util.Map<java.lang.String,java.lang.Object> paraMap)
|
ReportSessionIDInfor |
buildResultWorkBook(ResultWorkBook book2Show) |
void |
clearPageSet()
清除页面信息
|
void |
clearPrintPreviewPageSet()
清除打印页面设置.
|
Calculator |
createSessionCalculator(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
创建对应sessionid的计算器
返回SessionIDInfor对应的算子Calculator
|
ExecuteMessage |
durableEntity(MeasureObject mo,
java.lang.Object... args) |
Actor |
getActor()
报表的预览策略
|
FineBook |
getContextBook()
获取当前会话中报表所在的报表薄
|
java.lang.String |
getDurationPrefix()
获取模板名称
|
ResultWorkBook |
getFitBook2Show()
获取自适应后的结果报表, 用于导出.
|
IOFile |
getForm()
获取当前的表单
|
IOFileAttrMark |
getIOFileAttrMark(java.lang.String tag) |
int |
getPageCount()
获取页面Count
|
java.util.Map |
getParameterMap()
获取参数
|
PrintSessionConfig |
getPrintConfig() |
Printer |
getPrinter() |
int |
getPrintPageCount()
获取打印页面Count
|
IntList |
getPrintPageSetChainPageInfo()
返回每个report所占的页码信息,例如sheet1有10页,sheet2有20页,sheet有xx页 就返回数组 0,10,30
|
PageSetProvider |
getPrintPreviewPageSet4Traversing()
返回遍历(导出和打印)用PageSet
|
ReportPageProvider |
getPrintPreviewReportPage(int pageNumber)
获取打印时的ReportPage
|
ReportPageProvider |
getPrintPreviewReportPage(int pageNumber,
java.lang.String identifier)
获取打印时的ReportPage
|
java.lang.String |
getRelativePath()
获取访问模板的路径
|
ResultReport |
getReport2Show(int index)
获取报表会话中指定索引的报表页生成的结果报表页
|
int |
getReportCount() |
java.lang.String |
getReportName(int index) |
ReportPageProvider |
getReportPage(int pageNumber)
获取Web查看时的ReportPage
Return reportpage 和 pageIndex.
|
java.lang.String[] |
getServerPrinterNames() |
TableDataSource |
getTableDataSource()
获取book define
|
java.lang.String |
getWebTitle()
获取在浏览器里面的显示标题
|
ResultWorkBook |
getWorkBook2Show()
alex:得到展示用的WorkBook 取book2Show这个变量时,必须通过这个方法去取,防止book2Show没有初始化
synchronized防止两个线程同时改变同一个SessionIDInfor的book2Show,比如连续点击下一页
|
ResultWorkBook |
getWorkBook2Show(int sheetIndex)
执行指定的sheet,其他的部分不执行
|
TemplateWorkBook |
getWorkBookDefine()
获取book
|
java.lang.Object |
initCellElementValue(javax.servlet.http.HttpServletRequest req,
java.lang.String columnRow)
初始化单元格的值
|
Widget |
inspectWidget(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
根据req的参数检查当前的Widget
|
boolean |
isAppletPrintOver()
applet打印是否结束
|
MeasureUnit |
measureUnit() |
JSONArray |
parseResultBookToJsonArray()
将结果报表转成json数组
|
void |
release()
释放 Release
|
java.lang.Object |
resolveVariable(java.lang.Object var,
CalculatorProvider ca)
计算变量的值
|
void |
setAppletPrintOver(boolean isAppletPrintOver) |
void |
setoffset(float[] offset)
设置偏移值
|
void |
setoffset(float top,
float left,
float bottom,
float right)
设置偏移值
|
void |
setoffset(Margin margin)
设置偏移值
|
void |
setUpAttribute4dbCommit(Calculator calculator)
通过calculator来传递一些会话信息,这些信息是一些后续数据提交过程中所需要的
|
void |
updateTableDataSource()
更新会话使用的数据集源
|
getElementCaseResult, getIOFile, putElementCaseResult
addImage, addImageID, addProcessingDsName, applySessionIDInfoParameter, applySessionIDInfoParameter, applySessionIDInforParameters, applySessionIDInforParameters, buildWebContext, clearAttachments, clearChartMap, clearDataModelCaches, createJSONConfig, createSessionCalculator, getAllPara, getAllSessionPara, getAttribute, getCachedDataModel, getCachedTemplateParas, getParameterMap4Execute, getParameterMap4Execute4Consisent, getParameterMap4ExecuteAll, getParameterValue, getProcessingDsNames, getStatus, getTableDataSizeMap, getWebContext, handleUnregister, putAllPara, putDataModelToCache, putParameterMap4ExecuteAll, registerAttachmentID, removeAttribute, setAttribute, setCachedTemplateParas, setStatus
asNameSpace, asNameSpace, getLastAccessTime, getRemoteAddress, getSessionID, getStartTime, isTimeout, setSessionID, updateTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSessionID
public static final java.lang.String REPORT_NAME
public ReportSessionIDInfor(java.util.Map paraMap)
public ReportSessionIDInfor(java.util.Map paraMap, java.lang.String bookPath, Actor policy)
public ReportSessionIDInfor(java.util.Map paraMap, TemplateWorkBook workBookTemplate, java.lang.String bookPath, Actor policy)
policy
- 预览方式bookPath
- 模板路径paraMap
- 参数workBookTemplate
- 源模板public ReportSessionIDInfor buildResultWorkBook(ResultWorkBook book2Show)
@Deprecated public void apply4Parameters(java.util.Map<java.lang.String,java.lang.Object> paraMap)
TemplateSessionIDInfo.applyParameter(Map)
instead
应用 请求中的参数 请使用 {TemplateSessionIDInfo.applySessionIDInfoParameter(Map)
}
或者 TemplateSessionIDInfo.applySessionIDInfoParameter(HttpServletRequest)
paraMap
- 输入的参数public void applyParameter(java.util.Map<java.lang.String,java.lang.Object> paraMap)
应用 请求中的参数 请使用 {TemplateSessionIDInfo.applySessionIDInfoParameter(Map)
}
或者 TemplateSessionIDInfo.applySessionIDInfoParameter(HttpServletRequest)
applyParameter
在类中 TemplateSessionIDInfo
paraMap
- 输入的参数public void updateTableDataSource()
public java.lang.String getRelativePath()
SessionProvider
getRelativePath
在接口中 SessionProvider
getRelativePath
在类中 TemplateSessionIDInfo
public int getReportCount()
getReportCount
在接口中 ReportSession
public PageSetProvider getPrintPreviewPageSet4Traversing()
public IntList getPrintPageSetChainPageInfo()
public void clearPrintPreviewPageSet()
public ExecuteMessage durableEntity(MeasureObject mo, java.lang.Object... args)
durableEntity
在接口中 Measurable
durableEntity
在类中 SessionIDInfo
public MeasureUnit measureUnit()
measureUnit
在接口中 Measurable
measureUnit
在类中 SessionIDInfo
public ResultWorkBook getWorkBook2Show()
public ResultWorkBook getWorkBook2Show(int sheetIndex)
sheetIndex
- sheet索引public TableDataSource getTableDataSource()
getTableDataSource
在类中 TemplateSessionIDInfo
public TemplateWorkBook getWorkBookDefine()
getWorkBookDefine
在接口中 ReportSession
public FineBook getContextBook()
ReportSession
getContextBook
在接口中 ReportSession
public void setUpAttribute4dbCommit(Calculator calculator)
calculator
- 算子public java.lang.String getWebTitle()
ReportSession
getWebTitle
在接口中 SessionProvider
getWebTitle
在接口中 ReportSession
public java.lang.String getReportName(int index)
getReportName
在接口中 ReportSession
public ResultReport getReport2Show(int index)
ReportSession
getReport2Show
在接口中 ReportSession
index
- 报表页索引public Printer getPrinter()
public void setAppletPrintOver(boolean isAppletPrintOver)
public boolean isAppletPrintOver()
public java.lang.String[] getServerPrinterNames()
public Actor getActor()
ReportSession
getActor
在接口中 ReportSession
public ResultWorkBook getFitBook2Show()
public void clearPageSet()
clearPageSet
在类中 TemplateSessionIDInfo
public int getPageCount()
public int getPrintPageCount()
public ReportPageProvider getPrintPreviewReportPage(int pageNumber)
pageNumber
- public ReportPageProvider getPrintPreviewReportPage(int pageNumber, java.lang.String identifier)
pageNumber
- identifier
- 一次打印活动的唯一标识public ReportPageProvider getReportPage(int pageNumber)
public void release()
release
在接口中 SessionProvider
release
在类中 TemplateSessionIDInfo
public Widget inspectWidget(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
inspectWidget
在类中 WidgetSessionIDInfor
req
- http请求res
- http应答java.lang.Exception
public Calculator createSessionCalculator(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res)
createSessionCalculator
在类中 TemplateSessionIDInfo
req
- http请求res
- http应答public void setoffset(float[] offset)
offset
- 偏移public void setoffset(float top, float left, float bottom, float right)
public void setoffset(Margin margin)
public java.lang.Object resolveVariable(java.lang.Object var, CalculatorProvider ca)
SessionProvider
resolveVariable
在接口中 SessionProvider
var
- 待计算的变量ca
- 算子public java.lang.String getDurationPrefix()
public IOFile getForm()
WidgetSessionIDInfor
getForm
在类中 WidgetSessionIDInfor
public java.util.Map getParameterMap()
TemplateSessionIDInfo
getParameterMap
在接口中 SessionProvider
getParameterMap
在类中 TemplateSessionIDInfo
public IOFileAttrMark getIOFileAttrMark(java.lang.String tag)
getIOFileAttrMark
在类中 TemplateSessionIDInfo
public PrintSessionConfig getPrintConfig()
public JSONArray parseResultBookToJsonArray() throws java.lang.Exception
java.lang.Exception
public java.lang.Object initCellElementValue(javax.servlet.http.HttpServletRequest req, java.lang.String columnRow)
TemplateSessionIDInfo
initCellElementValue
在类中 WidgetSessionIDInfor