public class WriteActor extends AbstractActor
CURRENT_LEVEL, XML_TAG
构造器和说明 |
---|
WriteActor() |
限定符和类型 | 方法和说明 |
---|---|
void |
buildRelation(ExTool ex_tool,
Calculator calculator,
BaseFormula cur_fa,
BaseFormula ori_fa,
BoxCEProvider box_ce)
建立格子之间涉及公式时的联系
|
void |
cacheCellElement(AbstractResECWorkSheet sheet,
int maxCount,
int activePoolCount,
boolean cacheFirst)
将格子缓存到磁盘
|
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)
返回处理page.html这个模板文件所需要的parameters
|
CellElementAttribute |
createHyperCellAttr()
生成超级链接属性
|
JSONObject |
createReportWebAttr4Mobile(javax.servlet.http.HttpServletRequest req,
ReportSessionIDInfor sessionIDInfor)
生成移动端的报表web属性
|
ResultWorkBook |
createResultBook(java.util.Map parameterMap)
生成一个全新的带有指定参数集的结果报表簿
|
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()
获取预览方式名称
|
DeclareRecordType |
getRecordType()
获取该预览方式下的日志记录类型
|
boolean |
hasWidget()
该预览方式是否有可能将控件显示到单元格中
|
java.lang.String |
mainJavaScriptPath()
各种预览方式所对应的特殊js的路径
|
JSONObject |
panelConfig(Repository repo)
获取参数界面的配置信息
|
java.lang.String |
panelType()
返回用于表示当前预览方式对应的JavaScript中的字符串
|
void |
present(CellElement cur_ce,
Present present,
java.lang.Object presentValue)
设置当前预览方式下格子形态后的值
(分页直接去形态后的值, 填报数据分析保留原值)
|
boolean |
shouldNotBeScale()
是否能够缩放页面,主要用于移动端,分页预览时可以缩放,填报时不能缩放
|
boolean |
shouldRecord()
是否需要记录该预览方式下产生的日志
|
boolean |
supportPolyExecute()
是否支持计算聚合报表
|
ToolBarManager[] |
toolbarManagers(Repository repo)
获取当前预览方式需要显示的工具栏
|
calculateCurrentSheetIndex, canBeUseForSchedule, canCalculateOnDemand, createPolySequenceExecutor, createReportCache, createResultECBlock, currentAPILevel, executeWorkBook, executeWorkBook, flushHtml, getBookFUNC, getChartBlock4Ploy, getDefineToolBars, getPageSet, getReportCountInRepo, getResultBookFromCacheIfNeed, getScheduleShowType, isDynamicJavaScript, isPageByPage, present, processMultipleSheet, release, updateCacheTime, willPreCalculate
public java.lang.String description()
public BoxFactory createBoxFactory()
public boolean hasWidget()
hasWidget
在接口中 Actor
hasWidget
在类中 AbstractActor
public void present(CellElement cur_ce, Present present, java.lang.Object presentValue)
present
在接口中 Actor
present
在类中 AbstractActor
cur_ce
- 当前格子present
- 形态presentValue
- 形态得到的值public boolean shouldNotBeScale()
shouldNotBeScale
在接口中 Actor
shouldNotBeScale
在类中 AbstractActor
public AbstractResECWorkSheet createResultECWorkSheet(SE se)
se
- 报表计算引擎public void cacheCellElement(AbstractResECWorkSheet sheet, int maxCount, int activePoolCount, boolean cacheFirst)
cacheCellElement
在接口中 Actor
cacheCellElement
在类中 AbstractActor
sheet
- 结果报表页maxCount
- 所活跃的最大格子数activePoolCount
- 缓存池最大容量cacheFirst
- 是否优先缓存public boolean considerBuildRelation()
considerBuildRelation
在接口中 Actor
considerBuildRelation
在类中 AbstractActor
public OptionalAttribute cloneOptionalAttribute(OptionalAttribute em)
em
- 单元格属性public CellElementAttribute createHyperCellAttr()
public CellElementAttribute createCellGUIAttr()
public CellElementAttribute createWidgetAttr()
public void buildRelation(ExTool ex_tool, Calculator calculator, BaseFormula cur_fa, BaseFormula ori_fa, BoxCEProvider box_ce)
buildRelation
在接口中 Actor
buildRelation
在类中 AbstractActor
ex_tool
- 处理格子间关系的工具calculator
- 算子cur_fa
- 当前的公式ori_fa
- 原始的公式box_ce
- 二维格子对象public ResultWorkBook createResultBook(java.util.Map parameterMap)
parameterMap
- 参数集public WorkBookExecutor createWorkBookExecutor(TemplateWorkBook workBook, java.util.Map parameterMap)
workBook
- 报表薄parameterMap
- 参数集public DeclareRecordType getRecordType()
public boolean shouldRecord()
public java.lang.String panelType()
public java.lang.String mainJavaScriptPath()
public ToolBarManager[] toolbarManagers(Repository repo)
repo
- 上下文内容public JSONObject panelConfig(Repository repo) throws JSONException
panelConfig
在接口中 Actor
panelConfig
在类中 AbstractActor
repo
- 请求来源的信息JSONException
- 如果产生配置文件失败则抛出此异常public boolean supportPolyExecute()
supportPolyExecute
在接口中 Actor
supportPolyExecute
在类中 AbstractActor
public JSONObject createReportWebAttr4Mobile(javax.servlet.http.HttpServletRequest req, ReportSessionIDInfor sessionIDInfor) throws JSONException
createReportWebAttr4Mobile
在接口中 Actor
createReportWebAttr4Mobile
在类中 AbstractActor
req
- HTTP请求sessionIDInfor
- 报表会话JSONException
public void dealWithSessionInfo(Repository repo, javax.servlet.http.HttpServletRequest req, Calculator c, java.util.Map<java.lang.String,java.lang.Object> map, boolean isdebug)
Actor
dealWithSessionInfo
在接口中 Actor
dealWithSessionInfo
在类中 AbstractActor
repo
- 报表会话上下文req
- 请求c
- 算子map
- 已有的参数配置isdebug
- __isdebug__参数public java.util.Map<java.lang.String,java.lang.Object> createContext4Tpl(javax.servlet.http.HttpServletRequest req, ReportSessionIDInfor sessionIDInfor)
AbstractActor
createContext4Tpl
在接口中 Actor
createContext4Tpl
在类中 AbstractActor
req
- http请求sessionIDInfor
- 会话信息