Browse Source

finkit初次修改

remotes/1611766341912730171/master
Palin 5 years ago
parent
commit
635e03f693
  1. 4
      src/main/java/com/fanruan/api/design/ui/container/ReportletPane.java
  2. 4
      src/main/java/com/fanruan/api/err/ValidationException.java
  3. 6
      src/main/java/com/fanruan/api/function/FunctionKit.java
  4. 6
      src/main/java/com/fanruan/api/net/NetworkKit.java
  5. 4
      src/main/java/com/fanruan/api/newer/NodeVisitor.java
  6. 4
      src/main/java/com/fanruan/api/newer/RHFunctionProcessor.java
  7. 4
      src/main/java/com/fanruan/api/newer/TemplateSessionIDInfo.java
  8. 13
      src/main/java/com/fanruan/api/util/RenderKit.java

4
src/main/java/com/fanruan/api/design/ui/container/ReportletPane.java

@ -0,0 +1,4 @@
package com.fanruan.api.design.ui.container;
public class ReportletPane extends com.fr.design.gui.itree.filetree.ReportletPane {
}

4
src/main/java/com/fanruan/api/err/ValidationException.java

@ -0,0 +1,4 @@
package com.fanruan.api.err;
public abstract class ValidationException extends com.fr.design.Exception.ValidationException {
}

6
src/main/java/com/fanruan/api/function/FunctionKit.java

@ -7,6 +7,7 @@ import com.fr.file.FunctionManager;
import com.fr.file.FunctionManagerProvider; import com.fr.file.FunctionManagerProvider;
import com.fr.script.Calculator; import com.fr.script.Calculator;
import com.fr.stable.StringUtils; import com.fr.stable.StringUtils;
import com.fr.stable.fun.FunctionHelper;
import com.fr.stable.script.FunctionDef; import com.fr.stable.script.FunctionDef;
import java.util.ArrayList; import java.util.ArrayList;
@ -84,4 +85,9 @@ public class FunctionKit {
public static com.fr.file.FunctionManager getInstance() { public static com.fr.file.FunctionManager getInstance() {
return com.fr.file.FunctionManager.getInstance(); return com.fr.file.FunctionManager.getInstance();
} }
public static int generateFunctionID(String var0) {
return FunctionHelper.generateFunctionID(var0);
}
} }

6
src/main/java/com/fanruan/api/net/NetworkKit.java

@ -1,5 +1,6 @@
package com.fanruan.api.net; package com.fanruan.api.net;
import com.fr.base.ServerConfig;
import com.fr.data.NetworkHelper; import com.fr.data.NetworkHelper;
import org.jetbrains.annotations.Nullable; import org.jetbrains.annotations.Nullable;
@ -117,4 +118,9 @@ public class NetworkKit {
public static @Nullable String getHTTPRequestParameter(HttpServletRequest req, String... paraNames) { public static @Nullable String getHTTPRequestParameter(HttpServletRequest req, String... paraNames) {
return NetworkHelper.getHTTPRequestParameter(req, paraNames); return NetworkHelper.getHTTPRequestParameter(req, paraNames);
} }
public static String createServletURL(HttpServletRequest req) {
return NetworkHelper.createServletURL(req, ServerConfig.getInstance().getServletName());
}
} }

4
src/main/java/com/fanruan/api/newer/NodeVisitor.java

@ -0,0 +1,4 @@
package com.fanruan.api.newer;
public abstract class NodeVisitor extends com.fr.stable.core.NodeVisitor {
}

4
src/main/java/com/fanruan/api/newer/RHFunctionProcessor.java

@ -0,0 +1,4 @@
package com.fanruan.api.newer;
public abstract class RHFunctionProcessor extends com.fr.plugin.form.widget.monitor.RHFunctionProcessor {
}

4
src/main/java/com/fanruan/api/newer/TemplateSessionIDInfo.java

@ -0,0 +1,4 @@
package com.fanruan.api.newer;
public abstract class TemplateSessionIDInfo extends com.fr.web.core.TemplateSessionIDInfo {
}

13
src/main/java/com/fanruan/api/util/RenderKit.java

@ -1,6 +1,7 @@
package com.fanruan.api.util; package com.fanruan.api.util;
import com.fr.base.TemplateUtils; import com.fr.base.TemplateUtils;
import com.fr.script.Calculator;
import java.util.Map; import java.util.Map;
@ -19,4 +20,16 @@ public class RenderKit {
public static String renderParameter4Tpl(String text, Map<String, Object> map) throws Exception { public static String renderParameter4Tpl(String text, Map<String, Object> map) throws Exception {
return TemplateUtils.renderParameter4Tpl(text, map); return TemplateUtils.renderParameter4Tpl(text, map);
} }
/**
* 根据参数, 来计算文档字符串
* @param var0 待渲染的文本模板
* @param var1 参数集合
* @return 返回渲染后的文本
* @throws Exception 渲染过程中出现错误则抛出此异常
*/
public static String render(String var0, Calculator var1) throws Exception {
return TemplateUtils.render(var0, var1);
}
} }

Loading…
Cancel
Save