public interface Actor extends Level
限定符和类型 | 字段和说明 |
---|---|
static int |
CURRENT_LEVEL |
static java.lang.String |
XML_TAG |
限定符和类型 | 方法和说明 |
---|---|
void |
buildRelation(ExTool exTool,
Calculator calculator,
BaseFormula curFa,
BaseFormula oriFa,
BoxCEProvider boxCe)
建立格子之间涉及公式时的联系
|
void |
cacheCellElement(AbstractResECWorkSheet sheet,
int maxCount,
int activePoolCount,
boolean cacheFirst)
将格子缓存到磁盘
|
int |
calculateCurrentSheetIndex(Repository repository)
从Session中获取当前访问的报表页的序号
|
boolean |
canBeUseForSchedule()
判断当前的预览方式是否可以用于定时任务
|
boolean |
canCalculateOnDemand()
判断该操作方式是否可以按需读取数据库数据,主要用于行式引擎判断
|
OptionalAttribute |
cloneOptionalAttribute(OptionalAttribute em)
克隆给定的单元格属性
|
boolean |
considerBuildRelation()
是否需要建立格子间关系
|
BoxFactory |
createBoxFactory()
生成该种预览方式所用的盒子工厂
|
CellElementAttribute |
createCellGUIAttr()
生成单元格自动调整相关属性
|
java.util.Map<java.lang.String,java.lang.Object> |
createContext4Tpl(javax.servlet.http.HttpServletRequest req,
ReportSessionIDInfor sessionIDInfor)
生成上下文信息集合
|
CellElementAttribute |
createHyperCellAttr()
生成超级链接属性
|
PolyWorkSheetExecutor |
createPolySequenceExecutor(PolyWorkSheet tpl,
java.util.Map parameterMap,
Actor actor)
生成用于处理聚合报表聚合块的处理器
|
ReportCache |
createReportCache(TemplateWorkBook tpl,
ReportEntry reportEntry,
java.util.Map parameterMap,
boolean useCache)
生成模板的缓存对象
|
JSONObject |
createReportWebAttr4Mobile(javax.servlet.http.HttpServletRequest req,
ReportSessionIDInfor sessionIDInfor)
生成移动端的报表web属性
|
ResultWorkBook |
createResultBook(java.util.Map parameterMap)
生成一个全新的带有指定参数集的结果报表簿
|
ResultECBlock |
createResultECBlock()
生成该种预览方式所使用的结果报表块
|
AbstractResECWorkSheet |
createResultECWorkSheet(SE se)
生成该种预览方式所使用的结果报表页
|
CellElementAttribute |
createWidgetAttr()
生成单元格控件属性
|
WorkBookExecutor |
createWorkBookExecutor(TemplateWorkBook workBook,
java.util.Map parameterMap)
生成报表薄跨sheet计算器
|
void |
dealWithSessionInfo(Repository repo,
javax.servlet.http.HttpServletRequest req,
Calculator c,
java.util.Map<java.lang.String,java.lang.Object> map,
boolean isdebug)
针对不同的预览方式不同的需求,修改session对象属性
|
java.lang.String |
description()
该操作对应的名称,如填报预览、分页预览、分析预览
|
ResultWorkBook |
executeWorkBook(TemplateWorkBook workBook,
java.util.Map parameterMap)
执行报表簿
|
ResultWorkBook |
executeWorkBook(TemplateWorkBook workBook,
java.util.Map parameterMap,
int sheetIndex)
执行报表簿
|
void |
flushHtml(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res,
java.util.Map<java.lang.String,java.lang.Object> map4Tpl,
ReportSessionIDInfor sessionIDInfor)
输出html
|
FunctionPoint |
getBookFUNC()
注册功能
|
ResultChartBlock |
getChartBlock4Ploy(BaseChartPainter chartPainter)
生成不同预览方式下的图表block
|
PageSetChainProvider |
getPageSet(ResultWorkBook wb)
根据结果报表返回分页对象集合
|
DeclareRecordType |
getRecordType()
获取该预览方式下的日志记录类型
|
int |
getReportCountInRepo(Repository repository)
从Session中获取当前访问报表的报表页的数量,主要用于分页预览时的获取
|
ResultWorkBook |
getResultBookFromCacheIfNeed(TemplateWorkBook tpl,
java.lang.String tplPath,
ReportCache reportCache,
java.util.Map<java.lang.String,java.lang.Object> parameterMap,
int sheetIndex)
从缓存中读取结果报表(如果有缓存)
|
int |
getScheduleShowType()
定时任务结果文件展示类型
|
boolean |
hasWidget()
该预览方式是否有可能将控件显示到单元格中
|
boolean |
isDynamicJavaScript()
是否动态改变脚本, 主要用于分页预览的情况
|
boolean |
isPageByPage(javax.servlet.http.HttpServletRequest req)
是否逐页输出报表内容
|
java.lang.String |
mainJavaScriptPath()
各种预览方式所对应的特殊js的路径
|
JSONObject |
panelConfig(Repository repository)
生成报表参数界面以及报表主体组成所需要的配置文件
|
java.lang.String |
panelType()
返回用于表示当前预览方式对应的JavaScript中的字符串
|
void |
present(CellElement ce,
Present present,
java.lang.Object presentValue)
设置当前预览方式下格子形态后的值
(分页直接去形态后的值, 填报数据分析保留原值)
|
void |
present(CellElement ce,
Present present,
Style presentStyle)
设置当前预览方式下格子形态后的样式
|
JSONArray |
processMultipleSheet(Repository repository)
处理多sheet时生成的sheet配置数组
|
void |
release(SheetExecutor se)
释放报表计算中所使用的资源
|
boolean |
shouldNotBeScale()
是否能够缩放页面,主要用于移动端,分页预览时可以缩放,填报时不能缩放
|
boolean |
shouldRecord()
是否需要记录该预览方式下产生的日志
|
boolean |
supportPolyExecute()
是否支持聚合报表
|
ToolBarManager[] |
toolbarManagers(Repository repo)
获取当前预览方式需要显示的工具栏
|
long |
updateCacheTime(TemplateWorkBook tpl)
更新缓存中的时间
|
boolean |
willPreCalculate()
是否能够进行预计算,主要在分页预览的时候需要进行一些预处理
|
currentAPILevel
static final java.lang.String XML_TAG
static final int CURRENT_LEVEL
java.lang.String description()
boolean canCalculateOnDemand()
boolean willPreCalculate()
BoxFactory createBoxFactory()
ResultECBlock createResultECBlock()
AbstractResECWorkSheet createResultECWorkSheet(SE se)
se
- 报表计算引擎void cacheCellElement(AbstractResECWorkSheet sheet, int maxCount, int activePoolCount, boolean cacheFirst)
sheet
- 结果报表页maxCount
- 所活跃的最大格子数activePoolCount
- 缓存池最大容量cacheFirst
- 是否优先缓存boolean considerBuildRelation()
void release(SheetExecutor se)
se
- 报表计算引擎OptionalAttribute cloneOptionalAttribute(OptionalAttribute em)
em
- 单元格属性CellElementAttribute createHyperCellAttr()
CellElementAttribute createCellGUIAttr()
CellElementAttribute createWidgetAttr()
void buildRelation(ExTool exTool, Calculator calculator, BaseFormula curFa, BaseFormula oriFa, BoxCEProvider boxCe)
exTool
- 处理格子间关系的工具calculator
- 算子curFa
- 当前的公式oriFa
- 原始的公式boxCe
- 二维格子对象boolean isDynamicJavaScript()
boolean canBeUseForSchedule()
void present(CellElement ce, Present present, java.lang.Object presentValue)
ce
- 当前格子present
- 形态presentValue
- 形态得到的值void present(CellElement ce, Present present, Style presentStyle)
ce
- 当前格子present
- 形态presentStyle
- 样式boolean hasWidget()
PolyWorkSheetExecutor createPolySequenceExecutor(PolyWorkSheet tpl, java.util.Map parameterMap, Actor actor)
tpl
- 聚合报表页parameterMap
- 参数集actor
- 预览方式处理器FunctionPoint getBookFUNC()
ResultWorkBook createResultBook(java.util.Map parameterMap)
parameterMap
- 参数集ResultWorkBook executeWorkBook(TemplateWorkBook workBook, java.util.Map parameterMap)
workBook
- 报表簿parameterMap
- 参数集合ResultWorkBook executeWorkBook(TemplateWorkBook workBook, java.util.Map parameterMap, int sheetIndex)
workBook
- 报表簿parameterMap
- 参数集合sheetIndex
- 当前要计算的sheet索引WorkBookExecutor createWorkBookExecutor(TemplateWorkBook workBook, java.util.Map parameterMap)
workBook
- 报表薄parameterMap
- 参数集DeclareRecordType getRecordType()
boolean shouldRecord()
long updateCacheTime(TemplateWorkBook tpl)
tpl
- 报表ReportCache createReportCache(TemplateWorkBook tpl, ReportEntry reportEntry, java.util.Map parameterMap, boolean useCache)
tpl
- 报表薄reportEntry
- 用于缓存报表的对象parameterMap
- 参数集useCache
- 是否启用了报表缓存ResultWorkBook getResultBookFromCacheIfNeed(TemplateWorkBook tpl, java.lang.String tplPath, ReportCache reportCache, java.util.Map<java.lang.String,java.lang.Object> parameterMap, int sheetIndex)
tpl
- 报表薄tplPath
- 报表路径reportCache
- 用于缓存报表的对象parameterMap
- 参数集sheetIndex
- sheet索引boolean shouldNotBeScale()
boolean isPageByPage(javax.servlet.http.HttpServletRequest req)
req
- HTTP请求PageSetChainProvider getPageSet(ResultWorkBook wb)
wb
- 结果报表ToolBarManager[] toolbarManagers(Repository repo)
repo
- 上下文内容JSONObject panelConfig(Repository repository) throws JSONException
repository
- 上下文内容JSONException
- 如果产生配置文件失败则抛出此异常java.lang.String panelType()
java.lang.String mainJavaScriptPath()
int getReportCountInRepo(Repository repository)
repository
- Session相关上下文int calculateCurrentSheetIndex(Repository repository)
repository
- Session相关上下文ResultChartBlock getChartBlock4Ploy(BaseChartPainter chartPainter)
chartPainter
- 图表的painterboolean supportPolyExecute()
java.util.Map<java.lang.String,java.lang.Object> createContext4Tpl(javax.servlet.http.HttpServletRequest req, ReportSessionIDInfor sessionIDInfor)
req
- HTTP请求sessionIDInfor
- 报表会话void flushHtml(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res, java.util.Map<java.lang.String,java.lang.Object> map4Tpl, ReportSessionIDInfor sessionIDInfor) throws java.io.IOException
req
- HTTP请求res
- HTTP相应map4Tpl
- 上下文信息集合sessionIDInfor
- 报表会话java.io.IOException
JSONObject createReportWebAttr4Mobile(javax.servlet.http.HttpServletRequest req, ReportSessionIDInfor sessionIDInfor) throws JSONException
req
- HTTP请求sessionIDInfor
- 报表会话JSONException
- eJSONArray processMultipleSheet(Repository repository)
repository
- 报表会话上下文void dealWithSessionInfo(Repository repo, javax.servlet.http.HttpServletRequest req, Calculator c, java.util.Map<java.lang.String,java.lang.Object> map, boolean isdebug)
repo
- 报表会话上下文req
- 请求c
- 算子map
- 已有的参数配置isdebug
- __isdebug__参数int getScheduleShowType()