public class FormElementCase extends AbstractElementCase implements TemplateElementCase, FormElementCaseProvider
cellcase, floatElementList, INIT_COLUMN_NUMBER, reportPageAttr, XML_TAG
FIT, KEY, PAPER_HEIGHT, PAPER_WHDTH, TOOLBAR_HEIGHT, WEB_PAGE, XML_TAG
DEFAULT_TOOLBAR_HEIGHT, DIR_SUFFIX, XML_TAG
构造器和说明 |
---|
FormElementCase()
初始化一个格子表
|
限定符和类型 | 方法和说明 |
---|---|
void |
addCellElement(TemplateCellElement cell)
添加单元格元素
|
void |
addCellElement(TemplateCellElement cell,
boolean override)
添加单元格元素
|
void |
asFormElementCase(PageSetProvider pageSetProvider)
将分页结果集拼接到报表块单页显示
|
void |
cloneWithoutCellCase(AbstractECReport abstractReport)
不含格子赋值报表 把当前报表复制到传入的参数上
|
void |
convertCellElementDictionary(java.util.Map tableDataMap)
查找并转换报表块中每个cellElement的数据集 + 单元格内数据字典
|
protected CellElement |
createDefaultCellElementCase()
获取默认的格子对象
|
java.lang.String[] |
dependence(CalculatorProvider ca)
获取当前对象对参数的依赖关系
|
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 result,
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)
获取一个指定控件名的报表块分页结果集
如果session中没有缓存, 那么就重新计算生成一个结果缓存
|
FineBook |
getBook() |
java.lang.Object |
getCellElementValue(int column,
int row)
获取指定行列的单元格值
|
CellExpandAttr |
getCellNotEmptyExpandAttr(ColumnRowRange columnrow,
SE se) |
ResultWorkBook |
getElementCaseResultBook(FormElementCaseResultProvider workSheet)
获取当前报表快的结果报表
|
ReportHFProvider |
getFooter(int reportPageType) |
ReportHFProvider |
getHeader(int reportPageType) |
java.lang.String |
getName()
获取当前报表块名称
|
ReportSettingsProvider |
getReportSettings() |
ResultWorkBookProvider |
getResultBook(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
获取计算结果的book
|
TableDataSource |
getTableDataSource()
获取表单数据源
|
TemplateCellElement |
getTemplateCellElement(int column,
int row)
获取指定行列的单元格元素
|
TemplateWorkBook |
getTemplateWorkBook() |
WorkSheetAttr |
getWorkSheetAttr()
获取报表块冻结的一些属性
|
WorkSheetPrivilegeControl |
getWorkSheetPrivilegeControl() |
boolean |
isElementCaseReport()
判断是否格子报表
|
java.util.Iterator |
iteratorOfElementCase()
获取ElementCase的迭代器
|
void |
readStyleXML(XMLableReader reader)
读取样式的XML
|
void |
readXML(XMLableReader reader)
读XML
|
boolean |
removeCellElement(TemplateCellElement cell)
移除单元格元素
|
TemplateCellElement |
removeTemplateCellElement(int column,
int row)
移除指定行列的单元格元素
|
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)
计算指定行列的值
|
void |
setFooter(int reportPageType,
ReportHF reportHF) |
void |
setHeader(int reportPageType,
ReportHF reportHF) |
void |
setName(java.lang.String name)
将当前控件名设置给报表ElementCase, 用于缓存的Key
|
void |
setReportSettings(ReportSettingsProvider reportSettings) |
void |
setTabledataSource(TableDataSource tds)
设置表单数据源
|
void |
setTemplateWorkBook(TemplateWorkBook templateWorkBook) |
void |
setWorkSheetAttr(WorkSheetAttr workSheetAttr)
设置冻结属性
|
void |
setWorkSheetPrivilegeControl(WorkSheetPrivilegeControl workSheetPrivilegeControl) |
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)
输出样式的XML
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
__mod_column_row, addCellElement, addCellElement, addColumnPrivilegeControl, addFloatElement, addRowPrivilegeControl, bringFloatElementForward, bringFloatElementToFront, cacheCellElement, cellIterator, clone, cloneWithoutCellCase, cloneWithoutCellCase, equals, floatIterator, getCellCase, getCellElement, getCellTableDataSet, getCellValue, getColumn, getColumnCount, getColumnPrivilegeControl, getColumnWidth, getColumnWidthList_DEC, getFloatElement, getReportPageAttr, getRow, getRowCount, getRowHeight, getRowHeightList_DEC, getRowPrivilegeControl, insertColumn, insertRow, intersect, merge, prepare2ShrinkRealWidthOrHeight4Cell, recalculateCellCase, releaseCellElementCache, removeAllCellElements, removeAllFloatElements, removeCellElement, removeCellElement, removeColumn, removeColumnPrivilegeControl, removeFloatElement, removeFloatElement, removeRow, removeRowPrivilegeControl, sendFloatElementBackward, sendFloatElementToBack, setCellCase, setCellValue, setColumnWidth, setColumnWidthList_DEC, setReportPageAttr, setRowHeight, setRowHeightList_DEC, shrinkTOFitColumnWidthForCellElement, shrinkToFitPaper, shrinkTOFitRowHeightForCellElement, writeCommonXML, writeReportPageAttrXML
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addColumnPrivilegeControl, addRowPrivilegeControl, getColumnPrivilegeControl, getColumnWidthList_DEC, getRowHeightList_DEC, getRowPrivilegeControl, prepare2ShrinkRealWidthOrHeight4Cell, removeColumnPrivilegeControl, removeRowPrivilegeControl, setColumnWidth, setReportPageAttr, setRowHeight, shrinkTOFitColumnWidthForCellElement, shrinkToFitPaper, shrinkTOFitRowHeightForCellElement
getCellElement, getCellValue, getColumn, insertColumn, insertRow, intersect, merge, removeAllCellElements, removeCellElement, removeColumn, removeRow, setCellValue
addFloatElement, bringFloatElementForward, bringFloatElementToFront, getFloatElement, removeAllFloatElements, removeFloatElement, removeFloatElement, sendFloatElementBackward, sendFloatElementToBack
getReportPageAttr
cellIterator, getColumnCount, getColumnWidth, getRow, getRowCount, getRowHeight
floatIterator
clone
cellIterator, clone, getCellTableDataSet, getColumnWidthList_DEC, getRowHeightList_DEC
public java.lang.String getName()
getName
在接口中 FormElementCaseProvider
public void setName(java.lang.String name)
setName
在接口中 FormElementCaseProvider
name
- 控件名public WorkSheetAttr getWorkSheetAttr()
public void setWorkSheetAttr(WorkSheetAttr workSheetAttr)
public void executeGivenElements(java.lang.String[] executeElems, WidgetSessionIDInfor sessionIDInfo, java.util.Map<java.lang.String,java.lang.Object> para)
FormElementCaseProvider
executeGivenElements
在接口中 FormElementCaseProvider
executeElems
- 需要计算的报表块名称sessionIDInfo
- session会话信息para
- 参数mappublic void executeAll(WidgetSessionIDInfor sessionIDInfo, java.util.Map<java.lang.String,java.lang.Object> para)
executeAll
在接口中 FormElementCaseProvider
sessionIDInfo
- 当前session信息, 计算结果将缓存进去para
- 参数mappublic ResultWorkBookProvider getResultBook(java.util.Map<java.lang.String,java.lang.Object> parameterMap)
getResultBook
在接口中 FormElementCaseProvider
parameterMap
- 参数public ResultWorkBook getElementCaseResultBook(FormElementCaseResultProvider workSheet)
workSheet
- 当前结果报表块public boolean renameTableData(java.lang.String oldName, java.lang.String newName)
FormElementCaseProvider
renameTableData
在接口中 FormElementCaseProvider
oldName
- 数据集老名称newName
- 新名称public void export(java.io.OutputStream out, FormElementCaseResultProvider result, PageSetCreator pageSetCreater, javax.servlet.http.HttpServletRequest req, TemplateSessionIDInfo sessionIDInfor, DeclareRecordType recordType)
export
在接口中 FormElementCaseProvider
out
- 输出流result
- 结果报表pageSetCreater
- 分页集合req
- http请求sessionIDInfor
- 会话信息recordType
- 日志信息类型public java.lang.Object getCellElementValue(int column, int row)
getCellElementValue
在接口中 FormElementCaseProvider
column
- 指定列row
- 指定行public int resolveExpandAttr(WidgetSessionIDInfor sessionIDInfo, java.lang.String columnRow)
resolveExpandAttr
在接口中 FormElementCaseProvider
sessionIDInfo
- session会话信息columnRow
- 指定的行列信息public java.lang.Object resolveVariable(WidgetSessionIDInfor sessionIDInfo, ColumnRowRange columnrow, CalculatorProvider ca)
resolveVariable
在接口中 FormElementCaseProvider
sessionIDInfo
- session会话信息columnrow
- 指定的行列信息ca
- 算子public CellExpandAttr getCellNotEmptyExpandAttr(ColumnRowRange columnrow, SE se)
public PageSetProvider generateNewPageSet(java.util.Map<java.lang.String,java.lang.Object> parameterMap, WidgetSessionIDInfor sessionIDInfo)
generateNewPageSet
在接口中 FormElementCaseProvider
parameterMap
- 参数的mapsessionIDInfo
- session会话信息public PageSetProvider generateCachedPageset(FormElementCaseResultProvider result)
generateCachedPageset
在接口中 FormElementCaseProvider
result
- 结果报表public void toJsonTag(int pageIndex, javax.servlet.http.HttpServletRequest req, TemplateSessionIDInfo sessionIDInfor, java.io.PrintWriter writer, java.lang.String widgetName, PageSetProvider pageSet)
toJsonTag
在接口中 FormElementCaseProvider
pageIndex
- 需要加载的页面indexreq
- Http响应sessionIDInfor
- 表单sessionIdInfowriter
- 输出流writerwidgetName
- 控件名pageSet
- 分页结果集public 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
toHtmlTag
在接口中 FormElementCaseProvider
pageIndex
- 需要加载的页面indexreq
- Http响应sessionIDInfor
- 表单sessionIdInfowriter
- 输出流writerwidgetName
- 控件名pageSet
- 分页结果集java.lang.Exception
public void readXML(XMLableReader reader)
readXML
在接口中 FormElementCaseProvider
readXML
在接口中 XMLReadable
readXML
在类中 AbstractElementCase
reader
- XML读取对象XMLableReader
public void cloneWithoutCellCase(AbstractECReport abstractReport) throws java.lang.CloneNotSupportedException
abstractReport
- 复制目标报表java.lang.CloneNotSupportedException
- 不支持的克隆protected CellElement createDefaultCellElementCase()
public void writeXML(XMLPrintWriter writer)
XMLWriter
writeXML
在接口中 FormElementCaseProvider
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractElementCase
writer
- XML写入对象public void writeStyleXML(XMLPrintWriter writer)
writeStyleXML
在接口中 FormElementCaseProvider
writer
- XML输出对象public void readStyleXML(XMLableReader reader)
readStyleXML
在接口中 FormElementCaseProvider
reader
- XML读取对象public java.awt.image.BufferedImage toImage(Calculator ca, int width, int height)
toImage
在接口中 FormElementCaseProvider
ca
- 算子类width
- 图片宽度height
- 图片高度public java.awt.image.BufferedImage toImage(Calculator ca, int width, int height, java.util.Map<java.lang.String,java.lang.Object> parameterMap, boolean isOnlyShowContent)
toImage
在接口中 FormElementCaseProvider
ca
- 算子类width
- 图片宽度height
- 图片高度parameterMap
- 参数public void setTabledataSource(TableDataSource tds)
setTabledataSource
在接口中 FormElementCaseProvider
tds
- 指定的表单数据源public TableDataSource getTableDataSource()
public boolean isElementCaseReport()
public void addCellElement(TemplateCellElement cell)
addCellElement
在接口中 TemplateElementCase
cell
- 增加的单元格public void addCellElement(TemplateCellElement cell, boolean override)
addCellElement
在接口中 TemplateElementCase
cell
- 增加的单元格override
- 是否覆盖public boolean removeCellElement(TemplateCellElement cell)
removeCellElement
在接口中 TemplateElementCase
cell
- 移除的对象public TemplateCellElement getTemplateCellElement(int column, int row)
getTemplateCellElement
在接口中 TemplateElementCase
column
- 指定列row
- 指定行public TemplateCellElement removeTemplateCellElement(int column, int row)
removeTemplateCellElement
在接口中 TemplateElementCase
column
- 指定列row
- 指定行public java.lang.String[] dependenceBlocks()
dependenceBlocks
在接口中 FormElementCaseProvider
public java.lang.String[] dependence(CalculatorProvider ca)
dependence
在接口中 DependenceProvider
ca
- 当前线程的算子 npublic FineBook getBook()
public void setHeader(int reportPageType, ReportHF reportHF)
public void setFooter(int reportPageType, ReportHF reportHF)
public ReportHFProvider getHeader(int reportPageType)
public ReportHFProvider getFooter(int reportPageType)
public ReportSettingsProvider getReportSettings()
public void setReportSettings(ReportSettingsProvider reportSettings)
public java.util.Iterator iteratorOfElementCase()
public TemplateWorkBook getTemplateWorkBook()
public void setTemplateWorkBook(TemplateWorkBook templateWorkBook)
public WorkSheetPrivilegeControl getWorkSheetPrivilegeControl()
public void setWorkSheetPrivilegeControl(WorkSheetPrivilegeControl workSheetPrivilegeControl)
public void convertCellElementDictionary(java.util.Map tableDataMap)
convertCellElementDictionary
在接口中 FormElementCaseProvider
tableDataMap
- 数据集mappublic void asFormElementCase(PageSetProvider pageSetProvider)
asFormElementCase
在接口中 FormElementCaseProvider
pageSetProvider
- public FormElementCaseProvider generateElementFromImage(Widget widget, int width, int height, java.awt.image.BufferedImage bufImage)
generateElementFromImage
在接口中 FormElementCaseProvider
widget
- width
- height
- bufImage
-