public class ScriptUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static CalculatorKey |
REC_CE_LIST |
static CalculatorKey |
RES_FM_LIST |
static NameSpace |
SIMPLE_CELL_NAMESPACE |
限定符和类型 | 方法和说明 |
---|---|
static java.lang.String |
changePosition(java.lang.String formulaContent,
int rowIndex,
int rowChanged,
int columnIndex,
int colChanged)
移动行列
|
static void |
dealJavaScriptFormula(JavaScript javaScript,
Calculator calculator,
ColumnRow cr)
alex:这里做的事情比较简单,只是对parameters进行一下赋值,如果是Formula为结果的,再处理一下Formula就是了
具体的拼url,就到web那边才做,因为这个操作跟对方的browser有关系
|
static void |
executeCellElementResultFormula(CalculatorProvider calculator,
ResultFormula resultformula,
Report report,
TableDataSource source,
CellElement ce,
boolean useTransfer)
计算公式
|
static java.lang.Object |
executeNormalFormula(Calculator calculator,
BaseFormula formula)
计算公式
|
static java.lang.Object |
executeNormalFormula(Calculator calculator,
BaseFormula formula,
ColumnRow cr)
计算公式
|
static java.lang.Object |
executeNormalFormula(Calculator calculator,
BaseFormula formula,
Report report,
TableDataSource source,
ColumnRow cr)
计算公式
|
static java.lang.Object |
executeResultFormula(CalculatorProvider calculator,
ResultFormula resultFormula,
Report report,
TableDataSource source,
ColumnRow cr,
boolean calTransfer)
计算公式
|
static java.lang.String |
moveColumn(java.lang.String formulaContent,
int columnIndex,
int columnChanged)
移动列
|
static java.lang.String |
moveRow(java.lang.String formulaContent,
int rowIndex,
int rowChanged)
移动行
|
static void |
resetResultFormulaState(Calculator calculator)
将参加运算的ResultFormula重置
|
public static final CalculatorKey REC_CE_LIST
public static final CalculatorKey RES_FM_LIST
public static final NameSpace SIMPLE_CELL_NAMESPACE
public static java.lang.String moveRow(java.lang.String formulaContent, int rowIndex, int rowChanged)
formulaContent
- 公式rowIndex
- 行序号rowChanged
- 变动数目public static java.lang.String moveColumn(java.lang.String formulaContent, int columnIndex, int columnChanged)
formulaContent
- 公式columnIndex
- 列序号columnChanged
- 变动数目public static java.lang.String changePosition(java.lang.String formulaContent, int rowIndex, int rowChanged, int columnIndex, int colChanged)
formulaContent
- 公式rowIndex
- 行序号rowChanged
- 行变动数目columnIndex
- 列序号colChanged
- 列变动数目public static void executeCellElementResultFormula(CalculatorProvider calculator, ResultFormula resultformula, Report report, TableDataSource source, CellElement ce, boolean useTransfer)
calculator
- 算子resultformula
- 公式内容report
- 当前报表source
- 数据来源ce
- 当前行列useTransfer
- 是否保留公式public static void resetResultFormulaState(Calculator calculator)
calculator
- 算子public static java.lang.Object executeNormalFormula(Calculator calculator, BaseFormula formula)
calculator
- 算子formula
- 公式内容public static java.lang.Object executeNormalFormula(Calculator calculator, BaseFormula formula, ColumnRow cr)
calculator
- 算子formula
- 公式内容cr
- 当前行列public static java.lang.Object executeResultFormula(CalculatorProvider calculator, ResultFormula resultFormula, Report report, TableDataSource source, ColumnRow cr, boolean calTransfer)
calculator
- 算子resultFormula
- 公式内容report
- 当前报表source
- 当前数据源cr
- 当前行列calTransfer
- 是否保留内容public static java.lang.Object executeNormalFormula(Calculator calculator, BaseFormula formula, Report report, TableDataSource source, ColumnRow cr)
calculator
- 算子formula
- 公式内容report
- 当前报表source
- 当前数据源cr
- 当前行列public static void dealJavaScriptFormula(JavaScript javaScript, Calculator calculator, ColumnRow cr)
javaScript
- 当前脚本calculator
- 算子cr
- 当前行列