ExtCellSet- 扩展格集类

阅读(2793) 标签: 列, 行, 分页, 中断, 打印, 参数, 清除数据集,

ExtCellSet扩展格集类,本类对象对应报表,可以实现在报表中增加一列、增加多列、增加一行、增加多行、取报表列数、设显示比例等等操作。

 

l  构造函数

类名:com.raqsoft.report.model.engine.ExtCellSet

public ExtCellSet()

public ExtCellSet(IReport rd)

Parameters:

rd - 报表定义

 

l  可用方法

extendRow

语  法:  public void extendRow(ExtCell cell, int count)

参数说明:   

cell - 单元格

count - 扩展的行数

功能说明:    扩展行,将cell扩展为count个

调用举例:    略

 

extendCol

语  法:  public void extendCol(ExtCell cell, int count)

参数说明:   

cell - 单元格

count - 扩展的个数

功能说明:    扩展列,将cell扩展为count个

调用举例:  略

 

getCurrentPage

语  法:    public ExtCellSet getCurrentPage()

功能说明:    取得当前页,本函数仅供分页后的第三阶段函数运算使用

Returns  :    返回当前页

调用举例:     略

 

getPage

语  法:    public Area getPage()

功能说明:    取得当前页码,总页码,本函数仅供分页后的第三阶段函数运算使用

Returns  :    返回前页码,总页码

调用举例:     略

 

getReportDefine

语  法:    public ReportDefine getReportDefine()

功能说明:    取得当前报表对应的报表定义

Returns  :    返回报表定义

调用举例:     略

 

setReportDefine

语  法:    public void setReportDefine(ReportDefine rd)

参数说明:    rd - 报表定义

功能说明:    此方法仅在从缓存读取分页后报表时使用!其它所有地方禁用!设定当前报表对应的报表定义

调用举例:    略

interrupt

语  法:    public void interrupt()

功能说明:    设定中断标志,如果设定了中断,报表会在计算下个单元格时抛出异常

调用举例:     略

 

getReportType

语  法:    public byte getReportType()

功能说明:    取报表类型

Returns  :   报表类型

调用举例:     略

 

setReportType

语  法:    public void setReportType(byte type)

参数说明:    type - 报表类型

功能说明:    设报表类型

调用举例:     略

 

getPrintSetup

语  法:    public PrintSetup getPrintSetup()

功能说明:    取打印配置

Returns  :    打印配置

调用举例:     略

 

setPrintSetup

语  法:    public void setPrintSetup(PrintSetup ps)

参数说明:  ps - 打印配置

功能说明:    设打印配置

调用举例:     略

 

getParamMetaData

语  法:    public ParamMetaData getParamMetaData()

功能说明:    取得参数定义

Returns  :   参数定义

调用举例:     略

 

getStaticParamMetaData

语  法:    public ParamMetaData getStaticParamMetaData()

功能说明:    取得静态参数定义

Returns  :   静态参数定义

调用举例:     略

 

getDynamicParamMetaData

语  法:    public ParamMetaData getDynamicParamMetaData()

功能说明:    取得动态参数定义

Returns  :   动态参数定义

调用举例:     略

 

setParamMetaData

语  法:    public void setParamMetaData(ParamMetaData pmd)

参数说明:  pmd -参数定义

功能说明:    设置参数定义

调用举例:     略

 

getDataSetMetaData

语  法:    public DataSetMetaData getDataSetMetaData()

功能说明:    取得数据集定义

Returns  :   数据集定义

调用举例:     略

 

setDataSetMetaData

语  法:    public void setDataSetMetaData(DataSetMetaData dsmd)

参数说明:  dsmd - 数据集定义

功能说明:    设置数据集定义

调用举例:     略

 

getSubReportMetaData

语  法:    public SubReportMetaData getSubReportMetaData()

功能说明:    取得子报表定义

Returns  :   子报表定义

调用举例:     略

 

setSubReportMetaData

语  法:    public void setSubReportMetaData(SubReportMetaData srmd)

参数说明:  srmd - 子报表定义

功能说明:    设置子报表定义

调用举例:     略

 

getExportConfig

语  法:    public ExportConfig getExportConfig()

功能说明:    取得导出配置信息

Returns  :   导出配置信息 

调用举例:     略

 

setExportConfig

语  法:    public void setExportConfig(ExportConfig ec)

参数说明:  ec - 导出配置信息

功能说明:    设置导出配置信息

调用举例:     略

 

getFutureCellNumExp

语  法:    public java.lang.String getFutureCellNumExp()

功能说明:    取计算后报表预估格子数的表达式

Returns  :   计算后报表预估格子数的表达式

调用举例:     略

 

setFutureCellNumExp

语  法:    public void setFutureCellNumExp(java.lang.String s)

参数说明:  s - 计算后报表预估格子数的表达式

功能说明:    设计算后报表预估格子数的表达式

调用举例:     略

 

getRowCount

语  法:    public int getRowCount()

功能说明:    取报表行数

Returns  :   报表行数,不包括行首行

调用举例:     略

 

getColCount

语  法:    public short getColCount()

功能说明:    取报表列数

Returns :     报表列数,不包括列首行

调用举例:     略

 

insertRow

语  法:    public void insertRow(int r)

参数说明:  r - 行号(从1开始)

功能说明:    插入一行

调用举例:     略

 

insertRow

语  法:    public void insertRow(int r, int count)

参数说明:  r - 行号(从1开始)

count - 插入行数

功能说明:    插入多行

调用举例:     略

 

insertCol

语  法:    public void insertCol(short c)

参数说明:  c - 列号(从1开始)

功能说明:    插入一列

调用举例:     略

 

insertCol

语  法:    public void insertCol(int c, int count)

参数说明: 

c - 列号(从1开始)

count - 插入列数

功能说明:    插入多列

调用举例:    略

 

removeRow

语  法:    public void removeRow(int row)

参数说明:  row - 行号(从1开始)

功能说明:    删除一行

调用举例:     略

 

removeRow

语  法:    public void removeRow(int row, int count)

参数说明:   

row - 行号(从1开始)

count - 删除的行数

功能说明:    插入多列

调用举例:    略

 

getRowCell

语  法:    public IRowCell getRowCell(int r)

参数说明:  r - 行号(从1开始)

功能说明:    取行首单元格

Returns  :   行首单元格

调用举例:     略

 

setRowCell

语  法:    public void setRowCell(int r, IRowCell rc)

参数说明: 

r - 行号(从1开始)

rc - 行首单元格

功能说明:    设行首单元格

调用举例:    略

 

getColCell

语  法:    public IColCell getColCell(int c)

参数说明:  c - 列号(从1开始)

功能说明:    取列首单元格

Returns  :   列首单元格

调用举例:     略

 

setColCell

语  法:    public void setColCell(int c, IColCell cc)

参数说明:   

c - 列号(从1开始)

cc - 列首单元格

功能说明:    设列首单元格

调用举例:    略

 

getCell

语  法:    public INormalCell getCell(int r, int c)

参数说明: 

r - 行号(从1开始)

c - 列号(从1开始)

功能说明:    取普通单元格

Returns  :    单元格

调用举例:    略

 

setCell

语  法:    public void setCell(int r, int c, INormalCell cell)

参数说明:   

r - 行号(从1开始)

c - 列号(从1开始)

cell - 普通单元格

功能说明:    设普通单元格

调用举例:    略

 

getSubRptType

语  法:    public byte getSubRptType()

功能说明:    取子报表类型

Returns  :  子报表类型,值为“SubRptProperty .TYPE_EMBBED”表示嵌入式, 值为“SubRptProperty .TYPE_IMPORT”表示引入式,值为“SubRptProperty.TYPE_NONE”表示单表式

调用举例:    略

 

setSubRptType

语  法:    public void setSubRptType(byte subRptType)

参数说明:   subRptType - 子报表类型,值为“SubRptProperty .TYPE_EMBBED”表示嵌入式, 值为“SubRptProperty .TYPE_IMPORT”表示引入式,值为“SubRptProperty.TYPE_NONE”表示单表式

功能说明:    设子报表类型

调用举例:    略

 

setDSCurrent

语  法:    public void setDSCurrent(Context ctx)

参数说明:    ctx - 报表上下文环境变量

功能说明:    对所有数据集,如果某数据集没有当前组,则设置其当前组为根组

调用举例:    略

 

addCol

语  法:    public void addCol()

功能说明:    增加一列

调用举例:    略

 

addCol

语  法:    public void addCol(int count)

参数说明:  count - 增加的列数

功能说明:    增加多列

调用举例:    略

 

addRow

语  法:    public void addRow ()

功能说明:    增加一行

调用举例:    略

 

addRow

语  法:    public void addRow(int count)

参数说明:  count - 增加的行数

功能说明:    增加多行

调用举例:    略

 

clearCellSetInfo

语  法:    public void clearCellSetInfo()

功能说明:    清除单元格引用以及引擎中的各种信息

调用举例:    略

 

getCustomProperties

语  法:    public java.util.Map getCustomProperties()

功能说明:    获取自定义属性Map

Returns  :  Map 自定义属性Map,Map的Key和Value都是字符串

调用举例:    略

 

setCustomProperties

语  法:    public void setCustomProperties(java.util.Map cpMap)

参数说明:   cpMap - Map 自定义属性Map,Map的Key和Value都是字符串

功能说明:    设定图章列表

调用举例:    略

 

setPageBorderMode

语  法:    public void setPageBorderMode(byte m)

参数说明:    m–byte

功能说明:    设页眉页脚边框采用模式,取值为PAGE_BORDER_DEFAULT、PAGE_BORDER_DESIGN

调用举例:    略

 

removeCol

语  法:    public void removeCol (int r)

参数说明:    r – 列号(从1开始)

功能说明:    删除一列

调用举例:    reportDefine.removeCol(1);//删除第一列

 

removeCol

语  法:    public void removeCol (int r, int rowCount)

参数说明:    r – 列号(从1开始),rowCount - 删除列数

功能说明:    删除多列

调用举例:    reportDefine.removeCol(1,3);//删除从第一行开始的后三列

 

resumeCurrent

语  法:    public void resumeCurrent ()

功能说明:    设置当前格为保存的格

调用举例:    略

 

getBackGraphConfig

语  法:    public BackGraphConfig getBackGraphConfig()

功能说明:    获取背景图定义

Returns :    BackGraphConfig

调用举例:    略

 

getCssStyleManager

语  法:    public ICellStyleManager getCssStyleManager()

功能说明:    获得样式管理器

Returns :    ICellStyleManager

调用举例:    略

 

setLBStyle

语  法:    public void setLBStyle(int r,int c,byte style)

参数说明:    r - 行号(从1开始),c - 列号(从1开始),style - 边框类型

功能说明:    设定左边框类型

调用举例:    略

 

setLBWidth

语  法:    public void setLBWidth(int r,int c, float w)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), w - 边框线粗

功能说明:    设定左边框宽度

调用举例:    略

 

setLBColor

语  法:    public void setLBColor(int r,int c, int color)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), color - 边框线色

功能说明:    设定左边框颜色

调用举例:    略

 

setRBStyle

语  法:    public void setRBStyle(int r,int c,byte style)

参数说明:    r - 行号(从1开始),c - 列号(从1开始),style - 边框类型

功能说明:    设定右边框类型

调用举例:    略

 

setRBWidth

语  法:    public void setRBWidth(int r,int c, float w)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), w - 边框线粗

功能说明:    设定右边框宽度

调用举例:    略

 

setRBColor

语  法:    public void setRBColor(int r,int c, int color)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), color - 边框线色

功能说明:    设定右边框颜色

调用举例:    略

 

setTBStyle

语  法:    public void setTBStyle(int r,int c,byte style)

参数说明:    r - 行号(从1开始),c - 列号(从1开始),style - 边框类型

功能说明:    设定上边框类型

调用举例:    略

 

setTBWidth

语  法:    public void setTBWidth(int r,int c, float w)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), w - 边框线粗

功能说明:    设定上边框宽度

调用举例:    略

 

setTBColor

语  法:    public void setTBColor(int r,int c, int color)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), color - 边框线色

功能说明:    设定上边框颜色

调用举例:    略

 

setBBStyle

语  法:    public void setBBStyle(int r,int c,byte style)

参数说明:    r - 行号(从1开始),c - 列号(从1开始),style - 边框类型

功能说明:    设定下边框类型

调用举例:    略

 

setBBWidth

语  法:    public void setBBWidth(int r,int c, float w)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), w - 边框线粗

功能说明:    设定下边框宽度

调用举例:    略

 

setBBColor

语  法:    public void setBBColor(int r,int c, int color)

参数说明:    r - 行号(从1开始),c - 列号(从1开始), color - 边框线色

功能说明:    设定下边框颜色

调用举例:    略

 

resetDSCurrent

语  法:    public void resetDSCurrent(Context ctx)

参数说明:    ctx - 报表上下文环境变量

功能说明:    清除所有数据集的当前行与当前组

调用举例:    略