From 4ccc1aa068ecb03afc3872cee5ef75f4252ef9d4 Mon Sep 17 00:00:00 2001 From: zack Date: Mon, 4 Mar 2019 16:04:51 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-15174=20=E4=B8=BA=E4=BA=86=E8=A7=A3?= =?UTF-8?q?=E5=86=B3UNDEF-1709=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=B8=AE=E5=8A=A9=E6=96=87=E6=A1=A3=E6=89=80?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E4=BB=A3=E7=A0=81=EF=BC=8C=E6=AF=8F?= =?UTF-8?q?=E5=A4=A9=E9=83=BD=E8=A6=81=E8=83=BD=E4=BF=9D=E8=AF=81=E7=BC=96?= =?UTF-8?q?=E8=AF=91=E9=80=9A=E8=BF=87.=E4=BF=AE=E6=94=B9=E6=9C=89?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E7=9A=84api=20,=E5=8A=A0=E4=B8=8A=E6=89=80?= =?UTF-8?q?=E6=9C=89=E6=8F=92=E4=BB=B6=E7=9A=84=E9=BB=98=E8=AE=A4=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/com/fr/function/FlagHtmlColor.java | 67 +++++++++++++++++++ src/com/fr/function/GETIP.java | 23 +++++++ src/com/fr/io/ExcuteDemo.java | 36 +++++++--- src/com/fr/io/ExportApi.java | 29 +++++++- src/com/fr/io/ExportBatch.java | 56 +++++++++++----- src/com/fr/io/SetParameterWindow.java | 38 ++++++++--- src/com/fr/io/SimpleDemo.java | 33 +++++++-- src/com/fr/log/LogApi.java | 12 ++++ .../chart/IndependentChartProviderImpl.java | 26 +++++++ .../chart/IndependentChartUIProviderImpl.java | 22 ++++++ src/com/fr/plugin/core/ActionCMDImpl.java | 23 +++++++ .../plugin/core/AttachmentDownloaderImpl.java | 18 +++++ .../plugin/core/CellValueProcessorImpl.java | 18 +++++ .../fr/plugin/core/CssFileHandlerImpl.java | 10 +++ .../fr/plugin/core/DebugLogProviderImpl.java | 7 ++ .../fr/plugin/core/DialectCreatorImpl.java | 18 +++++ .../fr/plugin/core/EmailProcessorImpl.java | 13 ++++ .../ExcelExportCellValueProviderImpl.java | 11 +++ .../plugin/core/ExcelExportProcessorImpl.java | 6 ++ .../core/FunctionDefineProviderImpl.java | 10 +++ .../plugin/core/GraphDrawProcessorImpl.java | 13 ++++ .../fr/plugin/core/HttpAuthProcessorImpl.java | 10 +++ .../core/JavaScriptFileHandlerImpl.java | 10 +++ .../plugin/core/LogDBRecordProcessorImpl.java | 25 +++++++ src/com/fr/plugin/core/LogProviderImpl.java | 6 ++ .../core/PrintCellValueProviderImpl.java | 12 ++++ .../core/RequestParameterCollectorImpl.java | 33 +++++++++ .../core/RequestParameterHandlerImpl.java | 32 +++++++++ src/com/fr/plugin/core/ServiceImpl.java | 18 +++++ .../plugin/core/SpecialCharProcessorImpl.java | 10 +++ .../fr/plugin/core/TableDataProviderImpl.java | 6 ++ .../fr/plugin/core/WidgetSwitcherImpl.java | 10 +++ .../core/XMLFileManagerProviderImpl.java | 7 ++ .../design/CellAttributeProviderImpl.java | 11 +++ .../design/CellWidgetOptionProviderImpl.java | 27 ++++++++ .../plugin/design/ConnectionProviderImpl.java | 28 ++++++++ .../design/FormWidgetOptionProviderImpl.java | 26 +++++++ .../design/GlobalListenerProviderImpl.java | 12 ++++ .../plugin/design/HighlightProviderImpl.java | 17 +++++ .../design/IndentationUnitProcessorImpl.java | 6 ++ .../design/JavaScriptActionProviderImpl.java | 12 ++++ .../ParameterWidgetOptionProviderImpl.java | 27 ++++++++ .../fr/plugin/design/PreviewProviderImpl.java | 25 +++++++ src/com/fr/plugin/design/ShortCutImpl.java | 28 ++++++++ .../fr/plugin/design/SubmitProviderImpl.java | 21 ++++++ .../design/TableDataDefineProviderImpl.java | 37 ++++++++++ .../design/TitlePlaceProcessorImpl.java | 13 ++++ .../plugin/design/UIFormulaProcessorImpl.java | 16 +++++ .../design/WidgetDesignHandlerImpl.java | 11 +++ .../fr/plugin/report/ActorProviderImpl.java | 11 +++ .../report/CellTooltipProcessorImpl.java | 12 ++++ .../report/ExcelExportAppProviderImpl.java | 10 +++ .../plugin/report/ExcelImportProcessor.java | 14 ++++ .../report/ExportEncodeProviderImpl.java | 6 ++ .../report/ExportExtensionProcessorImpl.java | 21 ++++++ .../report/ExportOperateProviderImpl.java | 16 +++++ .../report/FromExportProcessorImpl.java | 13 ++++ .../report/PageCalObjectProcessorImpl.java | 18 +++++ .../ReportPretreatmentProcessorImpl.java | 13 ++++ src/main/java/com/fr/learn/Leaner.java | 16 +++++ src/main/java/com/fr/learn/Learner4Debug.java | 8 +++ 61 files changed, 1098 insertions(+), 45 deletions(-) create mode 100644 src/com/fr/function/FlagHtmlColor.java create mode 100644 src/com/fr/function/GETIP.java create mode 100644 src/com/fr/log/LogApi.java create mode 100644 src/com/fr/plugin/chart/IndependentChartProviderImpl.java create mode 100644 src/com/fr/plugin/chart/IndependentChartUIProviderImpl.java create mode 100644 src/com/fr/plugin/core/ActionCMDImpl.java create mode 100644 src/com/fr/plugin/core/AttachmentDownloaderImpl.java create mode 100644 src/com/fr/plugin/core/CellValueProcessorImpl.java create mode 100644 src/com/fr/plugin/core/CssFileHandlerImpl.java create mode 100644 src/com/fr/plugin/core/DebugLogProviderImpl.java create mode 100644 src/com/fr/plugin/core/DialectCreatorImpl.java create mode 100644 src/com/fr/plugin/core/EmailProcessorImpl.java create mode 100644 src/com/fr/plugin/core/ExcelExportCellValueProviderImpl.java create mode 100644 src/com/fr/plugin/core/ExcelExportProcessorImpl.java create mode 100644 src/com/fr/plugin/core/FunctionDefineProviderImpl.java create mode 100644 src/com/fr/plugin/core/GraphDrawProcessorImpl.java create mode 100644 src/com/fr/plugin/core/HttpAuthProcessorImpl.java create mode 100644 src/com/fr/plugin/core/JavaScriptFileHandlerImpl.java create mode 100644 src/com/fr/plugin/core/LogDBRecordProcessorImpl.java create mode 100644 src/com/fr/plugin/core/LogProviderImpl.java create mode 100644 src/com/fr/plugin/core/PrintCellValueProviderImpl.java create mode 100644 src/com/fr/plugin/core/RequestParameterCollectorImpl.java create mode 100644 src/com/fr/plugin/core/RequestParameterHandlerImpl.java create mode 100644 src/com/fr/plugin/core/ServiceImpl.java create mode 100644 src/com/fr/plugin/core/SpecialCharProcessorImpl.java create mode 100644 src/com/fr/plugin/core/TableDataProviderImpl.java create mode 100644 src/com/fr/plugin/core/WidgetSwitcherImpl.java create mode 100644 src/com/fr/plugin/core/XMLFileManagerProviderImpl.java create mode 100644 src/com/fr/plugin/design/CellAttributeProviderImpl.java create mode 100644 src/com/fr/plugin/design/CellWidgetOptionProviderImpl.java create mode 100644 src/com/fr/plugin/design/ConnectionProviderImpl.java create mode 100644 src/com/fr/plugin/design/FormWidgetOptionProviderImpl.java create mode 100644 src/com/fr/plugin/design/GlobalListenerProviderImpl.java create mode 100644 src/com/fr/plugin/design/HighlightProviderImpl.java create mode 100644 src/com/fr/plugin/design/IndentationUnitProcessorImpl.java create mode 100644 src/com/fr/plugin/design/JavaScriptActionProviderImpl.java create mode 100644 src/com/fr/plugin/design/ParameterWidgetOptionProviderImpl.java create mode 100644 src/com/fr/plugin/design/PreviewProviderImpl.java create mode 100644 src/com/fr/plugin/design/ShortCutImpl.java create mode 100644 src/com/fr/plugin/design/SubmitProviderImpl.java create mode 100644 src/com/fr/plugin/design/TableDataDefineProviderImpl.java create mode 100644 src/com/fr/plugin/design/TitlePlaceProcessorImpl.java create mode 100644 src/com/fr/plugin/design/UIFormulaProcessorImpl.java create mode 100644 src/com/fr/plugin/design/WidgetDesignHandlerImpl.java create mode 100644 src/com/fr/plugin/report/ActorProviderImpl.java create mode 100644 src/com/fr/plugin/report/CellTooltipProcessorImpl.java create mode 100644 src/com/fr/plugin/report/ExcelExportAppProviderImpl.java create mode 100644 src/com/fr/plugin/report/ExcelImportProcessor.java create mode 100644 src/com/fr/plugin/report/ExportEncodeProviderImpl.java create mode 100644 src/com/fr/plugin/report/ExportExtensionProcessorImpl.java create mode 100644 src/com/fr/plugin/report/ExportOperateProviderImpl.java create mode 100644 src/com/fr/plugin/report/FromExportProcessorImpl.java create mode 100644 src/com/fr/plugin/report/PageCalObjectProcessorImpl.java create mode 100644 src/com/fr/plugin/report/ReportPretreatmentProcessorImpl.java create mode 100644 src/main/java/com/fr/learn/Leaner.java create mode 100644 src/main/java/com/fr/learn/Learner4Debug.java diff --git a/src/com/fr/function/FlagHtmlColor.java b/src/com/fr/function/FlagHtmlColor.java new file mode 100644 index 0000000..76da40b --- /dev/null +++ b/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=""; + String endhtml=""; + StringBuffer sb=new StringBuffer(); + int len=txt.length(); + if("N".equalsIgnoreCase(flag)){//数字 + for(int i=0;i='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='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= 0x4E00 && c <= 0x9FA5){ + String str=starthtml+c+endhtml; + sb.append(str); + }else{ + sb.append(c); + } + } + }else{ + return txt; + } + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/com/fr/function/GETIP.java b/src/com/fr/function/GETIP.java new file mode 100644 index 0000000..f247c53 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/io/ExcuteDemo.java b/src/com/fr/io/ExcuteDemo.java index 6861181..d77fa1c 100644 --- a/src/com/fr/io/ExcuteDemo.java +++ b/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"); /* diff --git a/src/com/fr/io/ExportApi.java b/src/com/fr/io/ExportApi.java index c2a44b4..8786733 100644 --- a/src/com/fr/io/ExportApi.java +++ b/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 { // 未执行模板工作薄 diff --git a/src/com/fr/io/ExportBatch.java b/src/com/fr/io/ExportBatch.java index 31d27f2..efe2a29 100644 --- a/src/com/fr/io/ExportBatch.java +++ b/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 { - // ���屨�����л���,����ִ�б��� - 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()); - // ��ȡ�����µ�ģ���ļ� + module.start(); + // 读取环境下的模板文件 TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook( "doc\\Primary\\DetailReport\\Details.cpt"); - // ��ȡ���ڱ���IJ���ֵ��txt�ļ� + // 读取用于保存的参数值的txt文件 File parafile = new File(envpath + "\\para.txt"); FileInputStream fileinputstream; fileinputstream = new FileInputStream(parafile); BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(fileinputstream)); - // ���屣�������map������ִ�б��� + // 定义保存参数的map,用于执行报表 java.util.Map paramap = new java.util.HashMap(); - /* - * ��������ֵ����txt�ļ���txt�ļ��в���������ʽΪ para1,para2 ����,���� ����,���� ����ȡ����һ�б���������� - * ����ÿ��������ϣ���para1=���ա�para2=���𣬸��ݲ���ִ��ģ�壬�����������excel excel�ļ���Ϊ����+������� - */ - // ����һ�У������������ + /* + * 遍历参数值所在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)); - // ����ÿ��������ϣ�ִ��ģ�壬������� + // 遍历每个参数组合,执行模板,导出结果 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); - // ���Ҫ���һ�²���map�������´μ��� + // 最后要清空一下参数map,用于下次计算 paramap.clear(); number++; outputstream.close(); @@ -64,8 +86,6 @@ public class ExportBatch { ModuleContext.stopModules(); } catch (Exception e) { e.printStackTrace(); - } finally { - SimpleWork.checkOut(); } } -} \ No newline at end of file +} \ No newline at end of file diff --git a/src/com/fr/io/SetParameterWindow.java b/src/com/fr/io/SetParameterWindow.java index 9792465..aec2d19 100644 --- a/src/com/fr/io/SetParameterWindow.java +++ b/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 { - // ���屨�����л���,����ִ�б��� - String envPath = "D:\\FineReport\\develop\\code\\build\\package\\WebReport\\WEB-INF"; - SimpleWork.checkIn(envPath); - ModuleContext.startModule(EngineModule.class.getName()); - // ��ȡģ�屣��ΪWorkBook���� + // 定义报表运行环境,用于执行报表 + 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"); - // ��ȡWorkBook�������IJ�������ReportParameterAttr + // ��ȡWorkBook�������IJ�������ReportParameterAttr ReportParameterAttr paraAttr = workbook.getReportParameterAttr(); /* ��������IJ��� * 0 : ���� @@ -43,7 +63,7 @@ public class SetParameterWindow { */ Background background = ColorBackground.getInstance(new Color(0, 255, 255)); paraAttr.setBackground(background); - // �������ò�������,�������ս�� + // �������ò�������,�������ս�� workbook.setReportParameterAttr(paraAttr); FileOutputStream outputStream = new FileOutputStream(new File( "D:\\newParameter.cpt")); diff --git a/src/com/fr/io/SimpleDemo.java b/src/com/fr/io/SimpleDemo.java index c966cde..8a0357f 100644 --- a/src/com/fr/io/SimpleDemo.java +++ b/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) { - // ���屨�����л���,����ִ�б��� - 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 { // ��ȡģ�� WorkBook workbook = (WorkBook) TemplateWorkBookIO diff --git a/src/com/fr/log/LogApi.java b/src/com/fr/log/LogApi.java new file mode 100644 index 0000000..dd50e08 --- /dev/null +++ b/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级别日志记录 + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/chart/IndependentChartProviderImpl.java b/src/com/fr/plugin/chart/IndependentChartProviderImpl.java new file mode 100644 index 0000000..bd1b741 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/chart/IndependentChartUIProviderImpl.java b/src/com/fr/plugin/chart/IndependentChartUIProviderImpl.java new file mode 100644 index 0000000..9445e2d --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/ActionCMDImpl.java b/src/com/fr/plugin/core/ActionCMDImpl.java new file mode 100644 index 0000000..436ef9c --- /dev/null +++ b/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 { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/AttachmentDownloaderImpl.java b/src/com/fr/plugin/core/AttachmentDownloaderImpl.java new file mode 100644 index 0000000..1909f32 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/CellValueProcessorImpl.java b/src/com/fr/plugin/core/CellValueProcessorImpl.java new file mode 100644 index 0000000..a140b57 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/CssFileHandlerImpl.java b/src/com/fr/plugin/core/CssFileHandlerImpl.java new file mode 100644 index 0000000..d164ce2 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/DebugLogProviderImpl.java b/src/com/fr/plugin/core/DebugLogProviderImpl.java new file mode 100644 index 0000000..08fe2dc --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/DialectCreatorImpl.java b/src/com/fr/plugin/core/DialectCreatorImpl.java new file mode 100644 index 0000000..167513c --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/EmailProcessorImpl.java b/src/com/fr/plugin/core/EmailProcessorImpl.java new file mode 100644 index 0000000..1c6af76 --- /dev/null +++ b/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 loadMailProperties(String s, String s1, String s2, String s3, String s4) { + return new HashMap(); + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/ExcelExportCellValueProviderImpl.java b/src/com/fr/plugin/core/ExcelExportCellValueProviderImpl.java new file mode 100644 index 0000000..f75368f --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/ExcelExportProcessorImpl.java b/src/com/fr/plugin/core/ExcelExportProcessorImpl.java new file mode 100644 index 0000000..1fb65a6 --- /dev/null +++ b/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 { +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/FunctionDefineProviderImpl.java b/src/com/fr/plugin/core/FunctionDefineProviderImpl.java new file mode 100644 index 0000000..7983e36 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/GraphDrawProcessorImpl.java b/src/com/fr/plugin/core/GraphDrawProcessorImpl.java new file mode 100644 index 0000000..7149894 --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/HttpAuthProcessorImpl.java b/src/com/fr/plugin/core/HttpAuthProcessorImpl.java new file mode 100644 index 0000000..e7bfffb --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/JavaScriptFileHandlerImpl.java b/src/com/fr/plugin/core/JavaScriptFileHandlerImpl.java new file mode 100644 index 0000000..95ee326 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/LogDBRecordProcessorImpl.java b/src/com/fr/plugin/core/LogDBRecordProcessorImpl.java new file mode 100644 index 0000000..40e22f2 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/LogProviderImpl.java b/src/com/fr/plugin/core/LogProviderImpl.java new file mode 100644 index 0000000..95b2aa9 --- /dev/null +++ b/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 { +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/PrintCellValueProviderImpl.java b/src/com/fr/plugin/core/PrintCellValueProviderImpl.java new file mode 100644 index 0000000..c93ed4b --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/RequestParameterCollectorImpl.java b/src/com/fr/plugin/core/RequestParameterCollectorImpl.java new file mode 100644 index 0000000..46de013 --- /dev/null +++ b/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 getParametersFromSession(HttpServletRequest httpServletRequest) { + return null; + } + + @Override + public Map getParametersFromAttribute(HttpServletRequest httpServletRequest) { + return null; + } + + @Override + public Map getParametersFromReqInputStream(HttpServletRequest httpServletRequest) { + return null; + } + + @Override + public Map getParametersFromParameter(HttpServletRequest httpServletRequest) { + return null; + } + + @Override + public Map getParametersFromJSON(HttpServletRequest httpServletRequest, Map map) { + return null; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/RequestParameterHandlerImpl.java b/src/com/fr/plugin/core/RequestParameterHandlerImpl.java new file mode 100644 index 0000000..340bb25 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/ServiceImpl.java b/src/com/fr/plugin/core/ServiceImpl.java new file mode 100644 index 0000000..fb31d2b --- /dev/null +++ b/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 { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/SpecialCharProcessorImpl.java b/src/com/fr/plugin/core/SpecialCharProcessorImpl.java new file mode 100644 index 0000000..c52d360 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/TableDataProviderImpl.java b/src/com/fr/plugin/core/TableDataProviderImpl.java new file mode 100644 index 0000000..0e6b92f --- /dev/null +++ b/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 { +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/WidgetSwitcherImpl.java b/src/com/fr/plugin/core/WidgetSwitcherImpl.java new file mode 100644 index 0000000..f5495c0 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/core/XMLFileManagerProviderImpl.java b/src/com/fr/plugin/core/XMLFileManagerProviderImpl.java new file mode 100644 index 0000000..16f7155 --- /dev/null +++ b/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(); + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/CellAttributeProviderImpl.java b/src/com/fr/plugin/design/CellAttributeProviderImpl.java new file mode 100644 index 0000000..d0cb46d --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/CellWidgetOptionProviderImpl.java b/src/com/fr/plugin/design/CellWidgetOptionProviderImpl.java new file mode 100644 index 0000000..e236aff --- /dev/null +++ b/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 classForWidget() { + return null; + } + + @Override + public Class> appearanceForWidget() { + return null; + } + + @Override + public String iconPathForWidget() { + return ""; + } + + @Override + public String nameForWidget() { + return ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/ConnectionProviderImpl.java b/src/com/fr/plugin/design/ConnectionProviderImpl.java new file mode 100644 index 0000000..46a6015 --- /dev/null +++ b/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 classForConnection() { + return null; + + } + + @Override + public Class> appearanceForConnection() { + return null; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/FormWidgetOptionProviderImpl.java b/src/com/fr/plugin/design/FormWidgetOptionProviderImpl.java new file mode 100644 index 0000000..0fccb52 --- /dev/null +++ b/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 classForWidget() { + return null; + } + + @Override + public Class appearanceForWidget() { + return null; + } + + @Override + public String iconPathForWidget() { + return ""; + } + + @Override + public String nameForWidget() { + return ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/GlobalListenerProviderImpl.java b/src/com/fr/plugin/design/GlobalListenerProviderImpl.java new file mode 100644 index 0000000..169cf08 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/HighlightProviderImpl.java b/src/com/fr/plugin/design/HighlightProviderImpl.java new file mode 100644 index 0000000..ff5ab5c --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/IndentationUnitProcessorImpl.java b/src/com/fr/plugin/design/IndentationUnitProcessorImpl.java new file mode 100644 index 0000000..36aa2e4 --- /dev/null +++ b/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 { +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/JavaScriptActionProviderImpl.java b/src/com/fr/plugin/design/JavaScriptActionProviderImpl.java new file mode 100644 index 0000000..abda85c --- /dev/null +++ b/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 getJavaScriptActionPane() { + return null; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/ParameterWidgetOptionProviderImpl.java b/src/com/fr/plugin/design/ParameterWidgetOptionProviderImpl.java new file mode 100644 index 0000000..1bbaa88 --- /dev/null +++ b/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 classForWidget() { + return null; + } + + @Override + public Class appearanceForWidget() { + return null; + } + + @Override + public String iconPathForWidget() { + return null; + + } + + @Override + public String nameForWidget() { + return null; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/PreviewProviderImpl.java b/src/com/fr/plugin/design/PreviewProviderImpl.java new file mode 100644 index 0000000..d182b6c --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/ShortCutImpl.java b/src/com/fr/plugin/design/ShortCutImpl.java new file mode 100644 index 0000000..c10dfe9 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/SubmitProviderImpl.java b/src/com/fr/plugin/design/SubmitProviderImpl.java new file mode 100644 index 0000000..e0ae021 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/TableDataDefineProviderImpl.java b/src/com/fr/plugin/design/TableDataDefineProviderImpl.java new file mode 100644 index 0000000..ba8b9e0 --- /dev/null +++ b/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 classForTableData() { + return null; + } + + @Override + public Class classForInitTableData() { + return null; + } + + @Override + public Class appearanceForTableData() { + return null; + } + + @Override + public String nameForTableData() { + return ""; + } + + @Override + public String prefixForTableData() { + return ""; + } + + @Override + public String iconPathForTableData() { + return ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/TitlePlaceProcessorImpl.java b/src/com/fr/plugin/design/TitlePlaceProcessorImpl.java new file mode 100644 index 0000000..b8f959e --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/UIFormulaProcessorImpl.java b/src/com/fr/plugin/design/UIFormulaProcessorImpl.java new file mode 100644 index 0000000..0c04c5d --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/design/WidgetDesignHandlerImpl.java b/src/com/fr/plugin/design/WidgetDesignHandlerImpl.java new file mode 100644 index 0000000..10d0c8f --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ActorProviderImpl.java b/src/com/fr/plugin/report/ActorProviderImpl.java new file mode 100644 index 0000000..09fb693 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/CellTooltipProcessorImpl.java b/src/com/fr/plugin/report/CellTooltipProcessorImpl.java new file mode 100644 index 0000000..9840b74 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ExcelExportAppProviderImpl.java b/src/com/fr/plugin/report/ExcelExportAppProviderImpl.java new file mode 100644 index 0000000..24e7e04 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ExcelImportProcessor.java b/src/com/fr/plugin/report/ExcelImportProcessor.java new file mode 100644 index 0000000..75932d1 --- /dev/null +++ b/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 map) throws Exception { + return null; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ExportEncodeProviderImpl.java b/src/com/fr/plugin/report/ExportEncodeProviderImpl.java new file mode 100644 index 0000000..700d368 --- /dev/null +++ b/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 { +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ExportExtensionProcessorImpl.java b/src/com/fr/plugin/report/ExportExtensionProcessorImpl.java new file mode 100644 index 0000000..b874a58 --- /dev/null +++ b/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; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ExportOperateProviderImpl.java b/src/com/fr/plugin/report/ExportOperateProviderImpl.java new file mode 100644 index 0000000..84c2b71 --- /dev/null +++ b/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 ""; + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/FromExportProcessorImpl.java b/src/com/fr/plugin/report/FromExportProcessorImpl.java new file mode 100644 index 0000000..0818d01 --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/PageCalObjectProcessorImpl.java b/src/com/fr/plugin/report/PageCalObjectProcessorImpl.java new file mode 100644 index 0000000..50c7866 --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/com/fr/plugin/report/ReportPretreatmentProcessorImpl.java b/src/com/fr/plugin/report/ReportPretreatmentProcessorImpl.java new file mode 100644 index 0000000..16c2bb3 --- /dev/null +++ b/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) { + + } +} \ No newline at end of file diff --git a/src/main/java/com/fr/learn/Leaner.java b/src/main/java/com/fr/learn/Leaner.java new file mode 100644 index 0000000..c35f2ab --- /dev/null +++ b/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); + } +} diff --git a/src/main/java/com/fr/learn/Learner4Debug.java b/src/main/java/com/fr/learn/Learner4Debug.java new file mode 100644 index 0000000..94b77f6 --- /dev/null +++ b/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"}); + } +}