public interface FormElementCaseProvider extends XMLReadable, DependenceProvider
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_TOOLBAR_HEIGHT |
static java.lang.String |
DIR_SUFFIX |
static java.lang.String |
XML_TAG |
限定符和类型 | 方法和说明 |
---|---|
void |
asFormElementCase(PageSetProvider pageSetProvider)
将分页结果集拼接到报表块单页显示
|
java.util.Iterator |
cellIterator()
create iterator for cells
单元格迭代器
|
java.lang.Object |
clone()
克隆
|
void |
convertCellElementDictionary(java.util.Map tableDataMap)
查找并转换报表块中每个cellElement的数据集 + 单元格内数据字典
|
java.lang.String[] |
dependenceBlocks()
获取当前报表块依赖的所有报表快名称数组, 结果会包含自身
|
void |
executeAll(WidgetSessionIDInfor sessionIDInfo,
java.util.Map<java.lang.String,java.lang.Object> para)
计算表单中所有的报表块
|
void |
executeGivenElements(java.lang.String[] executeElems,
WidgetSessionIDInfor sessionIDInfo,
java.util.Map<java.lang.String,java.lang.Object> para)
计算指定的报表块, 并将结果缓存到sessionidinfor中.
|
void |
export(java.io.OutputStream out,
FormElementCaseResultProvider book,
PageSetCreator pageSetCreater,
javax.servlet.http.HttpServletRequest req,
TemplateSessionIDInfo sessionIDInfor,
DeclareRecordType recordType) |
PageSetProvider |
generateCachedPageset(FormElementCaseResultProvider result)
根据传进来的结果报表, 生成一个分页结果集
|
FormElementCaseProvider |
generateElementFromImage(Widget widget,
int width,
int height,
java.awt.image.BufferedImage bufImage)
根据图片生成报表块
|
PageSetProvider |
generateNewPageSet(java.util.Map<java.lang.String,java.lang.Object> parameterMap,
WidgetSessionIDInfor sessionIDInfo)
获取一个指定控件名的报表块分页结果集
|
java.lang.Object |
getCellElementValue(int column,
int row)
获取指定行列的单元格值
|
java.util.Set<java.lang.String> |
getCellTableDataSet()
获取报表块所用到的数据集名字
|
DynamicUnitList |
getColumnWidthList_DEC()
获取列宽列表
|
java.lang.String |
getName()
获取当前报表块名称
|
ResultWorkBookProvider |
getResultBook(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
获取当前表单里所有报表快的结果报表
|
DynamicUnitList |
getRowHeightList_DEC()
获取行高列表
|
void |
readStyleXML(XMLableReader reader)
读ElementCase样式列表
|
void |
readXML(XMLableReader reader)
读取xml
|
boolean |
renameTableData(java.lang.String oldName,
java.lang.String newName)
重命名数据集
|
int |
resolveExpandAttr(WidgetSessionIDInfor sessionIDInfo,
java.lang.String columnRow)
获取扩展方向
|
java.lang.Object |
resolveVariable(WidgetSessionIDInfor sessionIDInfo,
ColumnRowRange columnRow,
CalculatorProvider ca)
在ElementCase中处理指定ColumnRow的参数
|
void |
setName(java.lang.String name)
将当前控件名设置给报表ElementCase, 用于缓存的Key
|
void |
setTabledataSource(TableDataSource tds)
设置ElementCase的数据源
|
void |
toHtmlTag(int pageIndex,
javax.servlet.http.HttpServletRequest req,
TemplateSessionIDInfo sessionIDInfor,
java.io.PrintWriter writer,
java.lang.String widgetName,
PageSetProvider pageSet)
转化ElementCase为html tag
|
java.awt.image.BufferedImage |
toImage(Calculator ca,
int width,
int height)
转化ElementCase为图片
|
java.awt.image.BufferedImage |
toImage(Calculator ca,
int width,
int height,
java.util.Map<java.lang.String,java.lang.Object> parameterMap,
boolean isOnlyShowContent)
转化ElementCase为图片
|
void |
toJsonTag(int pageIndex,
javax.servlet.http.HttpServletRequest req,
TemplateSessionIDInfo sessionIDInfor,
java.io.PrintWriter writer,
java.lang.String widgetName,
PageSetProvider pageSet)
转化ElementCase为json字符串
|
void |
writeStyleXML(XMLPrintWriter writer)
写ElementCase样式列表
|
void |
writeXML(XMLPrintWriter writer)
输出html
|
dependence
static final java.lang.String XML_TAG
static final java.lang.String DIR_SUFFIX
static final int DEFAULT_TOOLBAR_HEIGHT
void writeXML(XMLPrintWriter writer)
writer
- xml输出对象void readXML(XMLableReader reader)
readXML
在接口中 XMLReadable
reader
- xml读取对象XMLableReader
PageSetProvider generateNewPageSet(java.util.Map<java.lang.String,java.lang.Object> parameterMap, WidgetSessionIDInfor sessionIDInfo)
parameterMap
- 参数的mapsessionIDInfo
- session会话信息PageSetProvider generateCachedPageset(FormElementCaseResultProvider result)
result
- 结果报表void toHtmlTag(int pageIndex, javax.servlet.http.HttpServletRequest req, TemplateSessionIDInfo sessionIDInfor, java.io.PrintWriter writer, java.lang.String widgetName, PageSetProvider pageSet) throws java.lang.Exception
pageIndex
- 需要加载的页面indexreq
- Http响应sessionIDInfor
- 表单sessionIdInfowriter
- 输出流writerwidgetName
- 控件名pageSet
- 分页结果集java.lang.Exception
void toJsonTag(int pageIndex, javax.servlet.http.HttpServletRequest req, TemplateSessionIDInfo sessionIDInfor, java.io.PrintWriter writer, java.lang.String widgetName, PageSetProvider pageSet)
pageIndex
- 需要加载的页面indexreq
- Http响应sessionIDInfor
- 表单sessionIdInfowriter
- 输出流writerwidgetName
- 控件名pageSet
- 分页结果集java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- 不支持克隆void readStyleXML(XMLableReader reader)
reader
- xml读取对象void writeStyleXML(XMLPrintWriter writer)
writer
- xml输出对象java.awt.image.BufferedImage toImage(Calculator ca, int width, int height)
ca
- 当前算子width
- 图片的宽度height
- 图片的高度java.awt.image.BufferedImage toImage(Calculator ca, int width, int height, java.util.Map<java.lang.String,java.lang.Object> parameterMap, boolean isOnlyShowContent)
ca
- 当前算子width
- 图片的宽度height
- 图片的高度parameterMap
- 参数void setTabledataSource(TableDataSource tds)
tds
- 数据源java.lang.String getName()
void setName(java.lang.String name)
name
- 控件名java.lang.String[] dependenceBlocks()
void executeGivenElements(java.lang.String[] executeElems, WidgetSessionIDInfor sessionIDInfo, java.util.Map<java.lang.String,java.lang.Object> para)
executeElems
- 需要计算的报表块名称para
- 参数mapsessionIDInfo
- session会话信息void executeAll(WidgetSessionIDInfor sessionIDInfo, java.util.Map<java.lang.String,java.lang.Object> para)
sessionIDInfo
- session会话信息para
- 参数mapint resolveExpandAttr(WidgetSessionIDInfor sessionIDInfo, java.lang.String columnRow)
sessionIDInfo
- session会话信息columnRow
- 指定的行列信息java.lang.Object resolveVariable(WidgetSessionIDInfor sessionIDInfo, ColumnRowRange columnRow, CalculatorProvider ca)
sessionIDInfo
- session会话信息columnRow
- 指定的行列信息ca
- 算子java.lang.Object getCellElementValue(int column, int row)
column
- 指定列row
- 指定行void convertCellElementDictionary(java.util.Map tableDataMap)
tableDataMap
- 数据集mapResultWorkBookProvider getResultBook(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
parameterMap
- 参数java.util.Iterator cellIterator()
DynamicUnitList getRowHeightList_DEC()
DynamicUnitList getColumnWidthList_DEC()
java.util.Set<java.lang.String> getCellTableDataSet()
boolean renameTableData(java.lang.String oldName, java.lang.String newName)
oldName
- 数据集老名称newName
- 新名称void export(java.io.OutputStream out, FormElementCaseResultProvider book, PageSetCreator pageSetCreater, javax.servlet.http.HttpServletRequest req, TemplateSessionIDInfo sessionIDInfor, DeclareRecordType recordType)
out
- 输出流book
- 结果报表pageSetCreater
- 分页集合req
- http请求sessionIDInfor
- 会话信息recordType
- 日志信息类型void asFormElementCase(PageSetProvider pageSetProvider)
pageSetProvider
- FormElementCaseProvider generateElementFromImage(Widget widget, int width, int height, java.awt.image.BufferedImage bufImage)
widget
- width
- height
- bufImage
-