Browse Source

Merge pull request #4 in PG/plugin-report-doc-demo from ~ZACK/plugin-report-doc-demo:release/10.0 to release/10.0

* commit 'fd8bda2d9f4c96e641a08d5695ab6bd46750b87f':
  REPORT-15174 为了解决UNDEF-1709的问题,需要帮助文档所使用的代码,每天都要能保证编译通过.修改有问题的api ,加上所有插件的默认实现
pull/3/head
zack 6 years ago
parent
commit
64bb5c2570
  1. 67
      src/com/fr/function/FlagHtmlColor.java
  2. 23
      src/com/fr/function/GETIP.java
  3. 36
      src/com/fr/io/ExcuteDemo.java
  4. 29
      src/com/fr/io/ExportApi.java
  5. 56
      src/com/fr/io/ExportBatch.java
  6. 38
      src/com/fr/io/SetParameterWindow.java
  7. 33
      src/com/fr/io/SimpleDemo.java
  8. 12
      src/com/fr/log/LogApi.java
  9. 26
      src/com/fr/plugin/chart/IndependentChartProviderImpl.java
  10. 22
      src/com/fr/plugin/chart/IndependentChartUIProviderImpl.java
  11. 23
      src/com/fr/plugin/core/ActionCMDImpl.java
  12. 18
      src/com/fr/plugin/core/AttachmentDownloaderImpl.java
  13. 18
      src/com/fr/plugin/core/CellValueProcessorImpl.java
  14. 10
      src/com/fr/plugin/core/CssFileHandlerImpl.java
  15. 7
      src/com/fr/plugin/core/DebugLogProviderImpl.java
  16. 18
      src/com/fr/plugin/core/DialectCreatorImpl.java
  17. 13
      src/com/fr/plugin/core/EmailProcessorImpl.java
  18. 11
      src/com/fr/plugin/core/ExcelExportCellValueProviderImpl.java
  19. 6
      src/com/fr/plugin/core/ExcelExportProcessorImpl.java
  20. 10
      src/com/fr/plugin/core/FunctionDefineProviderImpl.java
  21. 13
      src/com/fr/plugin/core/GraphDrawProcessorImpl.java
  22. 10
      src/com/fr/plugin/core/HttpAuthProcessorImpl.java
  23. 10
      src/com/fr/plugin/core/JavaScriptFileHandlerImpl.java
  24. 25
      src/com/fr/plugin/core/LogDBRecordProcessorImpl.java
  25. 6
      src/com/fr/plugin/core/LogProviderImpl.java
  26. 12
      src/com/fr/plugin/core/PrintCellValueProviderImpl.java
  27. 33
      src/com/fr/plugin/core/RequestParameterCollectorImpl.java
  28. 32
      src/com/fr/plugin/core/RequestParameterHandlerImpl.java
  29. 18
      src/com/fr/plugin/core/ServiceImpl.java
  30. 10
      src/com/fr/plugin/core/SpecialCharProcessorImpl.java
  31. 6
      src/com/fr/plugin/core/TableDataProviderImpl.java
  32. 10
      src/com/fr/plugin/core/WidgetSwitcherImpl.java
  33. 7
      src/com/fr/plugin/core/XMLFileManagerProviderImpl.java
  34. 11
      src/com/fr/plugin/design/CellAttributeProviderImpl.java
  35. 27
      src/com/fr/plugin/design/CellWidgetOptionProviderImpl.java
  36. 28
      src/com/fr/plugin/design/ConnectionProviderImpl.java
  37. 26
      src/com/fr/plugin/design/FormWidgetOptionProviderImpl.java
  38. 12
      src/com/fr/plugin/design/GlobalListenerProviderImpl.java
  39. 17
      src/com/fr/plugin/design/HighlightProviderImpl.java
  40. 6
      src/com/fr/plugin/design/IndentationUnitProcessorImpl.java
  41. 12
      src/com/fr/plugin/design/JavaScriptActionProviderImpl.java
  42. 27
      src/com/fr/plugin/design/ParameterWidgetOptionProviderImpl.java
  43. 25
      src/com/fr/plugin/design/PreviewProviderImpl.java
  44. 28
      src/com/fr/plugin/design/ShortCutImpl.java
  45. 21
      src/com/fr/plugin/design/SubmitProviderImpl.java
  46. 37
      src/com/fr/plugin/design/TableDataDefineProviderImpl.java
  47. 13
      src/com/fr/plugin/design/TitlePlaceProcessorImpl.java
  48. 16
      src/com/fr/plugin/design/UIFormulaProcessorImpl.java
  49. 11
      src/com/fr/plugin/design/WidgetDesignHandlerImpl.java
  50. 11
      src/com/fr/plugin/report/ActorProviderImpl.java
  51. 12
      src/com/fr/plugin/report/CellTooltipProcessorImpl.java
  52. 10
      src/com/fr/plugin/report/ExcelExportAppProviderImpl.java
  53. 14
      src/com/fr/plugin/report/ExcelImportProcessor.java
  54. 6
      src/com/fr/plugin/report/ExportEncodeProviderImpl.java
  55. 21
      src/com/fr/plugin/report/ExportExtensionProcessorImpl.java
  56. 16
      src/com/fr/plugin/report/ExportOperateProviderImpl.java
  57. 13
      src/com/fr/plugin/report/FromExportProcessorImpl.java
  58. 18
      src/com/fr/plugin/report/PageCalObjectProcessorImpl.java
  59. 13
      src/com/fr/plugin/report/ReportPretreatmentProcessorImpl.java
  60. 16
      src/main/java/com/fr/learn/Leaner.java
  61. 8
      src/main/java/com/fr/learn/Learner4Debug.java

67
src/com/fr/function/FlagHtmlColor.java

@ -0,0 +1,67 @@
package com.fr.function;
import com.fr.script.AbstractFunction;
import com.fr.stable.Primitive;
public class FlagHtmlColor extends AbstractFunction {
public Object run(Object[] args) {
String txt="";
String color="";
String flag="";
if(null==args||args.length==0){
return Primitive.ERROR_NAME;
}else if(args.length==1){
txt=args[0].toString();
color="red";
flag="N";
}else if(args.length==2){
txt=args[0].toString();
color=args[1].toString();
flag="N";
}else{
txt=args[0].toString();
color=args[1].toString();
flag=args[2].toString();
}
String result=getHtmlStr(txt, color, flag);
return result;
}
public String getHtmlStr(String txt,String color,String flag){
String starthtml="<font color='"+color+"'>";
String endhtml="</font>";
StringBuffer sb=new StringBuffer();
int len=txt.length();
if("N".equalsIgnoreCase(flag)){//数字
for(int i=0;i<len;i++){
char c=txt.charAt(i);
if(c>='0'&&c<='9'){
String str=starthtml+c+endhtml;
sb.append(str);
}else{
sb.append(c);
}
}
}else if("C".equalsIgnoreCase(flag)){//字母
for(int i=0;i<len;i++){
char c=txt.charAt(i);
if((c>='a'&&c<='z')||(c>='A'&&c<='Z')){
String str=starthtml+c+endhtml;
sb.append(str);
}else{
sb.append(c);
}
}
} else if("Z".equalsIgnoreCase(flag)){//中文
for(int i=0;i<len;i++){
char c=txt.charAt(i);
if(c >= 0x4E00 && c <= 0x9FA5){
String str=starthtml+c+endhtml;
sb.append(str);
}else{
sb.append(c);
}
}
}else{
return txt;
}
return sb.toString();
}
}

23
src/com/fr/function/GETIP.java

@ -0,0 +1,23 @@
package com.fr.function;
import com.fr.script.AbstractFunction;
import java.net.InetAddress;
public class GETIP extends AbstractFunction {
@Override
public Object run(Object[] objects) {
try {
InetAddress ia = InetAddress.getLocalHost();
return ia.getHostAddress();
} catch (Exception e) {
return e.getMessage();
}
}
public static InetAddress getInetAddress() {
return null;
}
}

36
src/com/fr/io/ExcuteDemo.java

@ -1,13 +1,21 @@
package com.fr.io;
import com.fr.base.operator.common.CommonOperator;
import com.fr.env.operator.CommonOperatorImpl;
import com.fr.general.ModuleContext;
import com.fr.config.activator.BaseDBActivator;
import com.fr.config.activator.ConfigurationActivator;
import com.fr.data.impl.config.activator.RestrictionActivator;
import com.fr.io.exporter.ExcelExporter;
import com.fr.main.TemplateWorkBook;
import com.fr.main.workbook.ResultWorkBook;
import com.fr.report.module.EngineModule;
import com.fr.module.Module;
import com.fr.module.tool.ActivatorToolBox;
import com.fr.report.ReportActivator;
import com.fr.report.module.ReportBaseActivator;
import com.fr.serialization.SerializationActivator;
import com.fr.stable.WriteActor;
import com.fr.startup.WorkspaceRegister;
import com.fr.store.StateServerActivator;
import com.fr.workspace.engine.WorkspaceActivator;
import com.fr.workspace.server.ServerWorkspaceRegister;
import com.fr.workspace.simple.SimpleWork;
import java.io.File;
@ -18,11 +26,21 @@ public class ExcuteDemo {
public static void main(String[] args) {
try {
// 首先需要定义执行所在的环境,这样才能正确读取数据库信息
String envPath = "D:\\FineReport_8.0\\WebReport\\WEB-INF";
SimpleWork.checkIn(envPath);
ModuleContext.startModule(EngineModule.class.getName());
// 定义报表运行环境,用于执行报表
Module module = ActivatorToolBox.simpleLink(
new WorkspaceActivator(),
new BaseDBActivator(),
new ConfigurationActivator(),
new StateServerActivator(),
new ReportBaseActivator(),
new RestrictionActivator(),
new ReportActivator(),
new WorkspaceRegister(),
new ServerWorkspaceRegister(),
new SerializationActivator());
String envpath = "D:\\FineReport_10\\webapps\\webroot\\WEB-INF";//工程路径
SimpleWork.checkIn(envpath);
module.start();
// 读取模板
TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook("\\doc\\Primary\\Parameter\\Parameter.cpt");
/*

29
src/com/fr/io/ExportApi.java

@ -1,6 +1,9 @@
package com.fr.io;
import com.fr.base.Parameter;
import com.fr.config.activator.BaseDBActivator;
import com.fr.config.activator.ConfigurationActivator;
import com.fr.data.impl.config.activator.RestrictionActivator;
import com.fr.general.ModuleContext;
import com.fr.io.exporter.CSVExporter;
import com.fr.io.exporter.EmbeddedTableDataExporter;
@ -13,8 +16,16 @@ import com.fr.io.exporter.WordExporter;
import com.fr.io.exporter.excel.stream.StreamExcel2007Exporter;
import com.fr.main.impl.WorkBook;
import com.fr.main.workbook.ResultWorkBook;
import com.fr.report.module.EngineModule;
import com.fr.module.Module;
import com.fr.module.tool.ActivatorToolBox;
import com.fr.report.ReportActivator;
import com.fr.report.module.ReportBaseActivator;
import com.fr.serialization.SerializationActivator;
import com.fr.stable.WriteActor;
import com.fr.startup.WorkspaceRegister;
import com.fr.store.StateServerActivator;
import com.fr.workspace.engine.WorkspaceActivator;
import com.fr.workspace.server.ServerWorkspaceRegister;
import com.fr.workspace.simple.SimpleWork;
import java.io.File;
@ -24,9 +35,21 @@ import java.io.FileOutputStream;
public class ExportApi {
public static void main(String[] args) {
// 定义报表运行环境,才能执行报表
String envpath = "D:\\FineReport_8.0\\WebReport\\WEB-INF";
// 定义报表运行环境,用于执行报表
Module module = ActivatorToolBox.simpleLink(
new WorkspaceActivator(),
new BaseDBActivator(),
new ConfigurationActivator(),
new StateServerActivator(),
new ReportBaseActivator(),
new RestrictionActivator(),
new ReportActivator(),
new WorkspaceRegister(),
new ServerWorkspaceRegister(),
new SerializationActivator());
String envpath = "D:\\FineReport_10\\webapps\\webroot\\WEB-INF";//工程路径
SimpleWork.checkIn(envpath);
ModuleContext.startModule(EngineModule.class.getName());
module.start();
ResultWorkBook rworkbook = null;
try {
// 未执行模板工作薄

56
src/com/fr/io/ExportBatch.java

@ -1,12 +1,23 @@
package com.fr.io;
import com.fr.config.activator.BaseDBActivator;
import com.fr.config.activator.ConfigurationActivator;
import com.fr.data.impl.config.activator.RestrictionActivator;
import com.fr.general.ModuleContext;
import com.fr.io.exporter.ExcelExporter;
import com.fr.main.TemplateWorkBook;
import com.fr.main.workbook.ResultWorkBook;
import com.fr.report.module.EngineModule;
import com.fr.module.Module;
import com.fr.module.tool.ActivatorToolBox;
import com.fr.report.ReportActivator;
import com.fr.report.module.ReportBaseActivator;
import com.fr.serialization.SerializationActivator;
import com.fr.stable.StableUtils;
import com.fr.stable.WriteActor;
import com.fr.startup.WorkspaceRegister;
import com.fr.store.StateServerActivator;
import com.fr.workspace.engine.WorkspaceActivator;
import com.fr.workspace.server.ServerWorkspaceRegister;
import com.fr.workspace.simple.SimpleWork;
import java.io.BufferedReader;
@ -21,30 +32,41 @@ import java.util.Arrays;
public class ExportBatch {
public static void main(String[] args) {
try {
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD>б<EFBFBD><EFBFBD><EFBFBD>
String envpath = "D:\\FineReport_7.1\\WebReport\\WEB-INF";
// 定义报表运行环境,用于执行报表
Module module = ActivatorToolBox.simpleLink(
new WorkspaceActivator(),
new BaseDBActivator(),
new ConfigurationActivator(),
new StateServerActivator(),
new ReportBaseActivator(),
new RestrictionActivator(),
new ReportActivator(),
new WorkspaceRegister(),
new ServerWorkspaceRegister(),
new SerializationActivator());
String envpath = "D:\\FineReport_10\\webapps\\webroot\\WEB-INF";//工程路径
SimpleWork.checkIn(envpath);
ModuleContext.startModule(EngineModule.class.getName());
// <EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>µ<EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
module.start();
// 读取环境下的模板文件
TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(
"doc\\Primary\\DetailReport\\Details.cpt");
// <EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD>ڱ<EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD>txt<EFBFBD>ļ<EFBFBD>
// 读取用于保存的参数值的txt文件
File parafile = new File(envpath + "\\para.txt");
FileInputStream fileinputstream;
fileinputstream = new FileInputStream(parafile);
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileinputstream));
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>map<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD>б<EFBFBD><EFBFBD><EFBFBD>
// 定义保存参数的map,用于执行报表
java.util.Map paramap = new java.util.HashMap();
/*
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>txt<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>txt<EFBFBD>ļ<EFBFBD><EFBFBD>в<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʽΪ para1,para2 <EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>б<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϣ<EFBFBD><EFBFBD><EFBFBD>para1=<EFBFBD><EFBFBD><EFBFBD>ա<EFBFBD>para2=<EFBFBD><EFBFBD><EFBFBD>𣬸<EFBFBD><EFBFBD>ݲ<EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>excel excel<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>+<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
*/
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>У<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
/*
* 遍历参数值所在txt文件txt文件中参数保存形式为 para1,para2 江苏,陈羽 江苏,安娜 首先取出第一行保存参数名称
* 遍历每个参数组合如para1=江苏para2=陈羽根据参数执行模板并将结果导出excel excel文件名为名称+导出编号
*/
// 读第一行,保存参数名称
String lineText = bufferedReader.readLine();
lineText = lineText.trim();
String[] paraname = StableUtils.splitString(lineText, ",");
System.out.println(Arrays.toString(paraname));
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ÿ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ϣ<EFBFBD>ִ<EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// 遍历每个参数组合,执行模板,导出结果
int number = 0;
while ((lineText = bufferedReader.readLine()) != null) {
lineText = lineText.trim();
@ -52,11 +74,11 @@ public class ExportBatch {
for (int j = 0; j < paravalue.length; j++) {
paramap.put(paraname[j], paravalue[j]);
}
ResultWorkBook result = workbook.execute(paramap, new WriteActor());
ResultWorkBook result = workbook.execute(paramap,new WriteActor());
OutputStream outputstream = new FileOutputStream(new File("E:\\ExportEg" + number + ".xls"));
ExcelExporter excelexporter = new ExcelExporter();
excelexporter.export(outputstream, result);
// <EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>²<EFBFBD><EFBFBD><EFBFBD>map<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>´μ<EFBFBD><EFBFBD><EFBFBD>
// 最后要清空一下参数map,用于下次计算
paramap.clear();
number++;
outputstream.close();
@ -64,8 +86,6 @@ public class ExportBatch {
ModuleContext.stopModules();
} catch (Exception e) {
e.printStackTrace();
} finally {
SimpleWork.checkOut();
}
}
}
}

38
src/com/fr/io/SetParameterWindow.java

@ -2,12 +2,22 @@
package com.fr.io;
import com.fr.base.background.ColorBackground;
import com.fr.config.activator.BaseDBActivator;
import com.fr.config.activator.ConfigurationActivator;
import com.fr.data.impl.config.activator.RestrictionActivator;
import com.fr.general.Background;
import com.fr.general.ModuleContext;
import com.fr.io.exporter.EmbeddedTableDataExporter;
import com.fr.main.impl.WorkBook;
import com.fr.main.parameter.ReportParameterAttr;
import com.fr.report.module.EngineModule;
import com.fr.module.Module;
import com.fr.module.tool.ActivatorToolBox;
import com.fr.report.ReportActivator;
import com.fr.report.module.ReportBaseActivator;
import com.fr.serialization.SerializationActivator;
import com.fr.startup.WorkspaceRegister;
import com.fr.store.StateServerActivator;
import com.fr.workspace.engine.WorkspaceActivator;
import com.fr.workspace.server.ServerWorkspaceRegister;
import com.fr.workspace.simple.SimpleWork;
import java.awt.Color;
@ -17,15 +27,25 @@ import java.io.FileOutputStream;
public class SetParameterWindow {
public static void main(String[] args) {
try {
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD>б<EFBFBD><EFBFBD><EFBFBD>
String envPath = "D:\\FineReport\\develop\\code\\build\\package\\WebReport\\WEB-INF";
SimpleWork.checkIn(envPath);
ModuleContext.startModule(EngineModule.class.getName());
// <EFBFBD><EFBFBD>ȡģ<EFBFBD><EFBFBD><EFBFBD>ΪWorkBook<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// 定义报表运行环境,用于执行报表
Module module = ActivatorToolBox.simpleLink(
new WorkspaceActivator(),
new BaseDBActivator(),
new ConfigurationActivator(),
new StateServerActivator(),
new ReportBaseActivator(),
new RestrictionActivator(),
new ReportActivator(),
new WorkspaceRegister(),
new ServerWorkspaceRegister(),
new SerializationActivator());
String envpath = "D:\\FineReport_10\\webapps\\webroot\\WEB-INF";//工程路径
SimpleWork.checkIn(envpath);
module.start();
WorkBook workbook = (WorkBook) TemplateWorkBookIO
.readTemplateWorkBook(
"\\doc\\Primary\\Parameter\\Parameter.cpt");
// <EFBFBD><EFBFBD>ȡWorkBook<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ReportParameterAttr
// <EFBFBD><EFBFBD>ȡWorkBook<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ReportParameterAttr
ReportParameterAttr paraAttr = workbook.getReportParameterAttr();
/* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><EFBFBD><EFBFBD>
* 0 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD>
@ -43,7 +63,7 @@ public class SetParameterWindow {
*/
Background background = ColorBackground.getInstance(new Color(0, 255, 255));
paraAttr.setBackground(background);
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ս<EFBFBD><EFBFBD>
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ս<EFBFBD><EFBFBD>
workbook.setReportParameterAttr(paraAttr);
FileOutputStream outputStream = new FileOutputStream(new File(
"D:\\newParameter.cpt"));

33
src/com/fr/io/SimpleDemo.java

@ -2,12 +2,22 @@
package com.fr.io;
import com.fr.base.Style;
import com.fr.config.activator.BaseDBActivator;
import com.fr.config.activator.ConfigurationActivator;
import com.fr.data.impl.config.activator.RestrictionActivator;
import com.fr.general.FRFont;
import com.fr.general.ModuleContext;
import com.fr.main.impl.WorkBook;
import com.fr.module.Module;
import com.fr.module.tool.ActivatorToolBox;
import com.fr.report.ReportActivator;
import com.fr.report.cell.CellElement;
import com.fr.report.elementcase.TemplateElementCase;
import com.fr.report.module.EngineModule;
import com.fr.report.module.ReportBaseActivator;
import com.fr.serialization.SerializationActivator;
import com.fr.startup.WorkspaceRegister;
import com.fr.store.StateServerActivator;
import com.fr.workspace.engine.WorkspaceActivator;
import com.fr.workspace.server.ServerWorkspaceRegister;
import com.fr.workspace.simple.SimpleWork;
import java.awt.Color;
@ -16,10 +26,21 @@ import java.io.FileOutputStream;
public class SimpleDemo {
public static void main(String[] args) {
// <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>л<EFBFBD><EFBFBD><EFBFBD>,<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ִ<EFBFBD>б<EFBFBD><EFBFBD><EFBFBD>
String envPath = "D:\\FineReport_7.0\\WebReport\\WEB-INF";
SimpleWork.checkIn(envPath);
ModuleContext.startModule(EngineModule.class.getName());
// 定义报表运行环境,用于执行报表
Module module = ActivatorToolBox.simpleLink(
new WorkspaceActivator(),
new BaseDBActivator(),
new ConfigurationActivator(),
new StateServerActivator(),
new ReportBaseActivator(),
new RestrictionActivator(),
new ReportActivator(),
new WorkspaceRegister(),
new ServerWorkspaceRegister(),
new SerializationActivator());
String envpath = "D:\\FineReport_10\\webapps\\webroot\\WEB-INF";//工程路径
SimpleWork.checkIn(envpath);
module.start();
try {
// <EFBFBD><EFBFBD>ȡģ<EFBFBD><EFBFBD>
WorkBook workbook = (WorkBook) TemplateWorkBookIO

12
src/com/fr/log/LogApi.java

@ -0,0 +1,12 @@
package com.fr.log;
/**
* 后台输出log信息-http://help.finereport.com/doc-view-746.html
*/
public class LogApi {
public static void main(String[] args) {
FineLoggerFactory.getLogger().info( "This is level info"); //需要服务器log级别为info时才会显示
FineLoggerFactory.getLogger().warn("This is level warning"); //需要服务器log级别为info、warning时才会显示
FineLoggerFactory.getLogger().error("This is level error"); //需要服务器log级别为info、warning、error时才会显示,10.0取消了server级别日志记录
}
}

26
src/com/fr/plugin/chart/IndependentChartProviderImpl.java

@ -0,0 +1,26 @@
package com.fr.plugin.chart;
import com.fr.chart.chartattr.Chart;
import com.fr.chart.fun.impl.AbstractIndependentChartProvider;
public class IndependentChartProviderImpl extends AbstractIndependentChartProvider {
@Override
public void init() {
}
@Override
public void destroy() {
}
@Override
public String getChartName() {
return "";
}
@Override
public Chart[] getChartTypes() {
return null;
}
}

22
src/com/fr/plugin/chart/IndependentChartUIProviderImpl.java

@ -0,0 +1,22 @@
package com.fr.plugin.chart;
import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPane;
import com.fr.extended.chart.AbstractExtendedChartTableDataPane;
import com.fr.extended.chart.AbstractExtendedChartUIProvider;
public class IndependentChartUIProviderImpl extends AbstractExtendedChartUIProvider {
@Override
protected AbstractExtendedChartTableDataPane getTableDataSourcePane() {
return null;
}
@Override
protected AbstractReportDataContentPane getReportDataSourcePane() {
return null;
}
@Override
public String getIconPath() {
return "";
}
}

23
src/com/fr/plugin/core/ActionCMDImpl.java

@ -0,0 +1,23 @@
package com.fr.plugin.core;
import com.fr.web.core.ActionCMD;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ActionCMDImpl implements ActionCMD {
@Override
public String getCMD() {
return "";
}
@Override
public void actionCMD(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String s) throws Exception {
}
@Override
public void actionCMD(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws Exception {
}
}

18
src/com/fr/plugin/core/AttachmentDownloaderImpl.java

@ -0,0 +1,18 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractAttachmentDownloader;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class AttachmentDownloaderImpl extends AbstractAttachmentDownloader {
@Override
public void download(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String s, String[] strings) throws Exception {
}
@Override
public String createDownloadScript(String s) {
return "";
}
}

18
src/com/fr/plugin/core/CellValueProcessorImpl.java

@ -0,0 +1,18 @@
package com.fr.plugin.core;
import com.fr.base.Style;
import com.fr.report.cell.cellattr.CellGUIAttr;
import com.fr.report.fun.impl.AbstractCellValueProvider;
import com.fr.stable.script.CalculatorProvider;
public class CellValueProcessorImpl extends AbstractCellValueProvider {
@Override
public Object process(Object o, CalculatorProvider calculatorProvider) {
return null;
}
@Override
public Object processBeforeToTag(Object o, CellGUIAttr cellGUIAttr, Style style, int i, int i1) {
return null;
}
}

10
src/com/fr/plugin/core/CssFileHandlerImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractCssFileHandler;
public class CssFileHandlerImpl extends AbstractCssFileHandler {
@Override
public String[] pathsForFiles() {
return null;
}
}

7
src/com/fr/plugin/core/DebugLogProviderImpl.java

@ -0,0 +1,7 @@
package com.fr.plugin.core;
public class DebugLogProviderImpl {
public static void main(String[] args) {
}
}

18
src/com/fr/plugin/core/DialectCreatorImpl.java

@ -0,0 +1,18 @@
package com.fr.plugin.core;
import com.fr.stable.UrlDriver;
import com.fr.stable.fun.impl.AbstractDialectCreator;
import java.sql.Connection;
public class DialectCreatorImpl extends AbstractDialectCreator {
@Override
public Class<?> generate(UrlDriver urlDriver) {
return null;
}
@Override
public Class<?> generate(Connection connection) {
return null;
}
}

13
src/com/fr/plugin/core/EmailProcessorImpl.java

@ -0,0 +1,13 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractEmailProcessor;
import java.util.HashMap;
import java.util.Map;
public class EmailProcessorImpl extends AbstractEmailProcessor {
@Override
public Map<String, Object> loadMailProperties(String s, String s1, String s2, String s3, String s4) {
return new HashMap<String, Object>();
}
}

11
src/com/fr/plugin/core/ExcelExportCellValueProviderImpl.java

@ -0,0 +1,11 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractExcelExportCellValueProvider;
import com.fr.stable.script.CalculatorProvider;
public class ExcelExportCellValueProviderImpl extends AbstractExcelExportCellValueProvider {
@Override
public Object getCellValue(Object o, Object o1, CalculatorProvider calculatorProvider) {
return null;
}
}

6
src/com/fr/plugin/core/ExcelExportProcessorImpl.java

@ -0,0 +1,6 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractExcelExportProcessor;
public class ExcelExportProcessorImpl extends AbstractExcelExportProcessor {
}

10
src/com/fr/plugin/core/FunctionDefineProviderImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.core;
import com.fr.stable.fun.FunctionDefineProvider;
public class FunctionDefineProviderImpl implements FunctionDefineProvider {
@Override
public int currentAPILevel() {
return 0;
}
}

13
src/com/fr/plugin/core/GraphDrawProcessorImpl.java

@ -0,0 +1,13 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractGraphDrawProcessor;
import java.awt.Graphics;
import java.awt.Image;
public class GraphDrawProcessorImpl extends AbstractGraphDrawProcessor {
@Override
public void paintImage(Graphics graphics, int i, int i1, Image image, int i2, int i3, int i4, int i5, int i6) {
}
}

10
src/com/fr/plugin/core/HttpAuthProcessorImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.core;
/**
* 10.0已经废弃
*/
public class HttpAuthProcessorImpl {
public static void main(String[] args) {
//HttpAuthProcessor pro = new HttpAuthProcessor();
}
}

10
src/com/fr/plugin/core/JavaScriptFileHandlerImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractJavaScriptFileHandler;
public class JavaScriptFileHandlerImpl extends AbstractJavaScriptFileHandler {
@Override
public String[] pathsForFiles() {
return null;
}
}

25
src/com/fr/plugin/core/LogDBRecordProcessorImpl.java

@ -0,0 +1,25 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractLogDBRecordProcessor;
public class LogDBRecordProcessorImpl extends AbstractLogDBRecordProcessor {
@Override
public String driver() {
return "";
}
@Override
public String url() {
return "";
}
@Override
public String username() {
return "";
}
@Override
public String password() {
return "";
}
}

6
src/com/fr/plugin/core/LogProviderImpl.java

@ -0,0 +1,6 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractLogProvider;
public class LogProviderImpl extends AbstractLogProvider {
}

12
src/com/fr/plugin/core/PrintCellValueProviderImpl.java

@ -0,0 +1,12 @@
package com.fr.plugin.core;
import com.fr.report.cell.cellattr.CellGUIAttr;
import com.fr.report.cell.cellattr.PageExportCellElement;
import com.fr.report.fun.impl.AbstractPrintCellValueProvider;
public class PrintCellValueProviderImpl extends AbstractPrintCellValueProvider {
@Override
public Object getCellValue(PageExportCellElement pageExportCellElement, CellGUIAttr cellGUIAttr, Object o, int i, int i1) {
return null;
}
}

33
src/com/fr/plugin/core/RequestParameterCollectorImpl.java

@ -0,0 +1,33 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractRequestParameterCollector;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
public class RequestParameterCollectorImpl extends AbstractRequestParameterCollector {
@Override
public Map<String, Object> getParametersFromSession(HttpServletRequest httpServletRequest) {
return null;
}
@Override
public Map<String, Object> getParametersFromAttribute(HttpServletRequest httpServletRequest) {
return null;
}
@Override
public Map<String, Object> getParametersFromReqInputStream(HttpServletRequest httpServletRequest) {
return null;
}
@Override
public Map<String, Object> getParametersFromParameter(HttpServletRequest httpServletRequest) {
return null;
}
@Override
public Map<String, Object> getParametersFromJSON(HttpServletRequest httpServletRequest, Map<String, Object> map) {
return null;
}
}

32
src/com/fr/plugin/core/RequestParameterHandlerImpl.java

@ -0,0 +1,32 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractRequestParameterHandler;
import javax.servlet.http.HttpServletRequest;
public class RequestParameterHandlerImpl extends AbstractRequestParameterHandler {
@Override
public Object getParameterFromRequest(HttpServletRequest httpServletRequest, String s) {
return null;
}
@Override
public Object getParameterFromRequestInputStream(HttpServletRequest httpServletRequest, String s) {
return null;
}
@Override
public Object getParameterFromAttribute(HttpServletRequest httpServletRequest, String s) {
return null;
}
@Override
public Object getParameterFromJSONParameters(HttpServletRequest httpServletRequest, String s) {
return null;
}
@Override
public Object getParameterFromSession(HttpServletRequest httpServletRequest, String s) {
return null;
}
}

18
src/com/fr/plugin/core/ServiceImpl.java

@ -0,0 +1,18 @@
package com.fr.plugin.core;
import com.fr.stable.fun.Service;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ServiceImpl implements Service {
@Override
public String actionOP() {
return "";
}
@Override
public void process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String s, String s1) throws Exception {
}
}

10
src/com/fr/plugin/core/SpecialCharProcessorImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractSpecialCharProcessor;
public class SpecialCharProcessorImpl extends AbstractSpecialCharProcessor {
@Override
public String processChar(String s) {
return "";
}
}

6
src/com/fr/plugin/core/TableDataProviderImpl.java

@ -0,0 +1,6 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractTableDataProvider;
public class TableDataProviderImpl extends AbstractTableDataProvider {
}

10
src/com/fr/plugin/core/WidgetSwitcherImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.core;
import com.fr.stable.fun.impl.AbstractWidgetSwitcher;
public class WidgetSwitcherImpl extends AbstractWidgetSwitcher {
@Override
public String toNewMarkType(String s) {
return "";
}
}

7
src/com/fr/plugin/core/XMLFileManagerProviderImpl.java

@ -0,0 +1,7 @@
package com.fr.plugin.core;
public class XMLFileManagerProviderImpl {
public static void main(String[] args) {
// XMLFileManagerProvider provider = new XMLFileManagerProvider();
}
}

11
src/com/fr/plugin/design/CellAttributeProviderImpl.java

@ -0,0 +1,11 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractCellAttributeProvider;
import com.fr.design.gui.frpane.AbstractAttrNoScrollPane;
public class CellAttributeProviderImpl extends AbstractCellAttributeProvider {
@Override
public AbstractAttrNoScrollPane createCellAttributePane() {
return null;
}
}

27
src/com/fr/plugin/design/CellWidgetOptionProviderImpl.java

@ -0,0 +1,27 @@
package com.fr.plugin.design;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.fun.impl.AbstractCellWidgetOptionProvider;
import com.fr.form.ui.Widget;
public class CellWidgetOptionProviderImpl extends AbstractCellWidgetOptionProvider {
@Override
public Class<? extends Widget> classForWidget() {
return null;
}
@Override
public Class<? extends BasicBeanPane<? extends Widget>> appearanceForWidget() {
return null;
}
@Override
public String iconPathForWidget() {
return "";
}
@Override
public String nameForWidget() {
return "";
}
}

28
src/com/fr/plugin/design/ConnectionProviderImpl.java

@ -0,0 +1,28 @@
package com.fr.plugin.design;
import com.fr.data.impl.Connection;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.fun.impl.AbstractConnectionProvider;
public class ConnectionProviderImpl extends AbstractConnectionProvider {
@Override
public String nameForConnection() {
return "";
}
@Override
public String iconPathForConnection() {
return "";
}
@Override
public Class<? extends Connection> classForConnection() {
return null;
}
@Override
public Class<? extends BasicBeanPane<? extends Connection>> appearanceForConnection() {
return null;
}
}

26
src/com/fr/plugin/design/FormWidgetOptionProviderImpl.java

@ -0,0 +1,26 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractFormWidgetOptionProvider;
import com.fr.form.ui.Widget;
public class FormWidgetOptionProviderImpl extends AbstractFormWidgetOptionProvider {
@Override
public Class<? extends Widget> classForWidget() {
return null;
}
@Override
public Class<?> appearanceForWidget() {
return null;
}
@Override
public String iconPathForWidget() {
return "";
}
@Override
public String nameForWidget() {
return "";
}
}

12
src/com/fr/plugin/design/GlobalListenerProviderImpl.java

@ -0,0 +1,12 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractGlobalListenerProvider;
import java.awt.event.AWTEventListener;
public class GlobalListenerProviderImpl extends AbstractGlobalListenerProvider {
@Override
public AWTEventListener listener() {
return null;
}
}

17
src/com/fr/plugin/design/HighlightProviderImpl.java

@ -0,0 +1,17 @@
package com.fr.plugin.design;
import com.fr.design.condition.ConditionAttrSingleConditionPane;
import com.fr.design.condition.ConditionAttributesPane;
import com.fr.design.fun.impl.AbstractHighlightProvider;
public class HighlightProviderImpl extends AbstractHighlightProvider {
@Override
public Class<?> classForHighlightAction() {
return null;
}
@Override
public ConditionAttrSingleConditionPane appearanceForCondition(ConditionAttributesPane conditionAttributesPane) {
return null;
}
}

6
src/com/fr/plugin/design/IndentationUnitProcessorImpl.java

@ -0,0 +1,6 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractIndentationUnitProcessor;
public class IndentationUnitProcessorImpl extends AbstractIndentationUnitProcessor {
}

12
src/com/fr/plugin/design/JavaScriptActionProviderImpl.java

@ -0,0 +1,12 @@
package com.fr.plugin.design;
import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.fun.impl.AbstractJavaScriptActionProvider;
import com.fr.js.JavaScript;
public class JavaScriptActionProviderImpl extends AbstractJavaScriptActionProvider {
@Override
public FurtherBasicBeanPane<? extends JavaScript> getJavaScriptActionPane() {
return null;
}
}

27
src/com/fr/plugin/design/ParameterWidgetOptionProviderImpl.java

@ -0,0 +1,27 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractParameterWidgetOptionProvider;
import com.fr.form.ui.Widget;
public class ParameterWidgetOptionProviderImpl extends AbstractParameterWidgetOptionProvider {
@Override
public Class<? extends Widget> classForWidget() {
return null;
}
@Override
public Class<?> appearanceForWidget() {
return null;
}
@Override
public String iconPathForWidget() {
return null;
}
@Override
public String nameForWidget() {
return null;
}
}

25
src/com/fr/plugin/design/PreviewProviderImpl.java

@ -0,0 +1,25 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractPreviewProvider;
public class PreviewProviderImpl extends AbstractPreviewProvider {
@Override
public String nameForPopupItem() {
return "";
}
@Override
public String iconPathForPopupItem() {
return "";
}
@Override
public String iconPathForLarge() {
return "";
}
@Override
public int previewTypeCode() {
return 0;
}
}

28
src/com/fr/plugin/design/ShortCutImpl.java

@ -0,0 +1,28 @@
package com.fr.plugin.design;
import com.fr.design.menu.ShortCut;
import javax.swing.JPopupMenu;
import javax.swing.JToolBar;
public class ShortCutImpl extends ShortCut {
@Override
public void intoJPopupMenu(JPopupMenu jPopupMenu) {
}
@Override
public void intoJToolBar(JToolBar jToolBar) {
}
@Override
public void setEnabled(boolean b) {
}
@Override
public boolean isEnabled() {
return true;
}
}

21
src/com/fr/plugin/design/SubmitProviderImpl.java

@ -0,0 +1,21 @@
package com.fr.plugin.design;
import com.fr.design.beans.BasicBeanPane;
import com.fr.design.fun.impl.AbstractSubmitProvider;
public class SubmitProviderImpl extends AbstractSubmitProvider {
@Override
public BasicBeanPane appearanceForSubmit() {
return null;
}
@Override
public String dataForSubmit() {
return "";
}
@Override
public String keyForSubmit() {
return "";
}
}

37
src/com/fr/plugin/design/TableDataDefineProviderImpl.java

@ -0,0 +1,37 @@
package com.fr.plugin.design;
import com.fr.base.TableData;
import com.fr.design.data.tabledata.tabledatapane.AbstractTableDataPane;
import com.fr.design.fun.impl.AbstractTableDataDefineProvider;
public class TableDataDefineProviderImpl extends AbstractTableDataDefineProvider {
@Override
public Class<? extends TableData> classForTableData() {
return null;
}
@Override
public Class<? extends TableData> classForInitTableData() {
return null;
}
@Override
public Class<? extends AbstractTableDataPane> appearanceForTableData() {
return null;
}
@Override
public String nameForTableData() {
return "";
}
@Override
public String prefixForTableData() {
return "";
}
@Override
public String iconPathForTableData() {
return "";
}
}

13
src/com/fr/plugin/design/TitlePlaceProcessorImpl.java

@ -0,0 +1,13 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractTitleProcessor;
import java.awt.Component;
import java.awt.Container;
public class TitlePlaceProcessorImpl extends AbstractTitleProcessor {
@Override
public void hold(Container container, Component component, Component component1) {
}
}

16
src/com/fr/plugin/design/UIFormulaProcessorImpl.java

@ -0,0 +1,16 @@
package com.fr.plugin.design;
import com.fr.design.formula.UIFormula;
import com.fr.design.fun.impl.AbstractUIFormulaProcessor;
public class UIFormulaProcessorImpl extends AbstractUIFormulaProcessor {
@Override
public UIFormula appearanceFormula() {
return null;
}
@Override
public UIFormula appearanceWhenReserveFormula() {
return null;
}
}

11
src/com/fr/plugin/design/WidgetDesignHandlerImpl.java

@ -0,0 +1,11 @@
package com.fr.plugin.design;
import com.fr.design.fun.impl.AbstractWidgetDesignHandler;
import com.fr.form.ui.Widget;
public class WidgetDesignHandlerImpl extends AbstractWidgetDesignHandler {
@Override
public void transferWidgetProperties(Widget widget, Widget widget1) {
}
}

11
src/com/fr/plugin/report/ActorProviderImpl.java

@ -0,0 +1,11 @@
package com.fr.plugin.report;
import com.fr.report.fun.impl.AbstractActorProvider;
import com.fr.report.stable.fun.Actor;
public class ActorProviderImpl extends AbstractActorProvider {
@Override
public Actor[] createActor() {
return null;
}
}

12
src/com/fr/plugin/report/CellTooltipProcessorImpl.java

@ -0,0 +1,12 @@
package com.fr.plugin.report;
import com.fr.report.fun.impl.AbstractCellTagTransformer;
import com.fr.script.Calculator;
import com.fr.stable.html.Tag;
public class CellTooltipProcessorImpl extends AbstractCellTagTransformer {
@Override
public Tag process(Calculator calculator, Tag tag, String s, Object o) {
return null;
}
}

10
src/com/fr/plugin/report/ExcelExportAppProviderImpl.java

@ -0,0 +1,10 @@
package com.fr.plugin.report;
import com.fr.report.fun.impl.AbstractExcelExportAppProvider;
public class ExcelExportAppProviderImpl extends AbstractExcelExportAppProvider {
@Override
public String exportType() {
return "";
}
}

14
src/com/fr/plugin/report/ExcelImportProcessor.java

@ -0,0 +1,14 @@
package com.fr.plugin.report;
import com.fr.main.TemplateWorkBook;
import com.fr.report.fun.impl.AbstractExcelImportProcessor;
import java.io.InputStream;
import java.util.Map;
public class ExcelImportProcessor extends AbstractExcelImportProcessor {
@Override
public TemplateWorkBook generateWorkBookByStream(InputStream inputStream, String s, Map<String, Object> map) throws Exception {
return null;
}
}

6
src/com/fr/plugin/report/ExportEncodeProviderImpl.java

@ -0,0 +1,6 @@
package com.fr.plugin.report;
import com.fr.report.fun.impl.AbstractExportEncodeProvider;
public class ExportEncodeProviderImpl extends AbstractExportEncodeProvider {
}

21
src/com/fr/plugin/report/ExportExtensionProcessorImpl.java

@ -0,0 +1,21 @@
package com.fr.plugin.report;
import com.fr.io.collection.ExportCollection;
import com.fr.report.fun.impl.AbstractExportExtension;
import com.fr.web.core.ReportSessionIDInfor;
import com.fr.web.core.TemplateSessionIDInfo;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ExportExtensionProcessorImpl extends AbstractExportExtension {
@Override
public String fileName(HttpServletRequest httpServletRequest, TemplateSessionIDInfo templateSessionIDInfo) throws Exception {
return "";
}
@Override
public ExportCollection createCollection(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, ReportSessionIDInfor reportSessionIDInfor, String s, String s1, boolean b) throws Exception {
return null;
}
}

16
src/com/fr/plugin/report/ExportOperateProviderImpl.java

@ -0,0 +1,16 @@
package com.fr.plugin.report;
import com.fr.report.fun.impl.AbstractExportOperateProvider;
import com.fr.web.core.reserve.Operate;
public class ExportOperateProviderImpl extends AbstractExportOperateProvider {
@Override
public Operate operate() {
return null;
}
@Override
public String markType() {
return "";
}
}

13
src/com/fr/plugin/report/FromExportProcessorImpl.java

@ -0,0 +1,13 @@
package com.fr.plugin.report;
import com.fr.form.stable.fun.AbstractFormExportProcessor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class FromExportProcessorImpl extends AbstractFormExportProcessor {
@Override
public void dealWithExport(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String s) {
}
}

18
src/com/fr/plugin/report/PageCalObjectProcessorImpl.java

@ -0,0 +1,18 @@
package com.fr.plugin.report;
import com.fr.report.cell.CellElement;
import com.fr.report.cell.cellattr.highlight.HighlightGroup;
import com.fr.report.fun.impl.AbstractPageCalObjectProcessor;
import com.fr.script.Calculator;
public class PageCalObjectProcessorImpl extends AbstractPageCalObjectProcessor {
@Override
public void collectPageCalHighlight(CellElement cellElement, Calculator calculator, HighlightGroup highlightGroup) {
}
@Override
public void resolvePageCalHighlight(Calculator calculator, CellElement cellElement) {
}
}

13
src/com/fr/plugin/report/ReportPretreatmentProcessorImpl.java

@ -0,0 +1,13 @@
package com.fr.plugin.report;
import com.fr.report.fun.impl.AbstractReportPretreatmentProcessor;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ReportPretreatmentProcessorImpl extends AbstractReportPretreatmentProcessor {
@Override
public void process(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, String s) {
}
}

16
src/main/java/com/fr/learn/Leaner.java

@ -0,0 +1,16 @@
package com.fr.learn;
import com.fr.start.Designer;
public class Leaner extends Designer {
static {
// 这段代码让插件能支持远程设计的时候的调试
String workDir = System.getProperty("user.dir");
System.setProperty("fine.plugin.home", workDir + "/webroot/WEB-INF/plugins");
}
public Leaner(String[] strings) {
super(strings);
}
}

8
src/main/java/com/fr/learn/Learner4Debug.java

@ -0,0 +1,8 @@
package com.fr.learn;
public class Learner4Debug {
public static void main(String... args) {
org.swingexplorer.Launcher.main(new String[]{"com.fr.start.Designer"});
}
}
Loading…
Cancel
Save