From 9043085fb5f34c254899319a7e38f9db209a7ace Mon Sep 17 00:00:00 2001 From: richie Date: Fri, 30 Aug 2019 15:37:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=BC=8F=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/design/ui/factory/FormulaFactory.java | 7 ----- .../api/design/work/formula/FormulaUIKit.java | 27 +++++++++++++++++++ 2 files changed, 27 insertions(+), 7 deletions(-) delete mode 100644 src/main/java/com/fanruan/api/design/ui/factory/FormulaFactory.java create mode 100644 src/main/java/com/fanruan/api/design/work/formula/FormulaUIKit.java diff --git a/src/main/java/com/fanruan/api/design/ui/factory/FormulaFactory.java b/src/main/java/com/fanruan/api/design/ui/factory/FormulaFactory.java deleted file mode 100644 index ed74925..0000000 --- a/src/main/java/com/fanruan/api/design/ui/factory/FormulaFactory.java +++ /dev/null @@ -1,7 +0,0 @@ -package com.fanruan.api.design.ui.factory; - -/* -* FormulaFactory:公式编辑管理器 -* */ -public class FormulaFactory extends com.fr.design.formula.FormulaFactory{ -} diff --git a/src/main/java/com/fanruan/api/design/work/formula/FormulaUIKit.java b/src/main/java/com/fanruan/api/design/work/formula/FormulaUIKit.java new file mode 100644 index 0000000..bd350fe --- /dev/null +++ b/src/main/java/com/fanruan/api/design/work/formula/FormulaUIKit.java @@ -0,0 +1,27 @@ +package com.fanruan.api.design.work.formula; + +import com.fr.design.formula.UIFormula; + +/** + * 获取公式编辑器面板工具类 + */ +public class FormulaUIKit { + + /** + * 获取普通公式面板 + * + * @return 公式面板 + */ + public static UIFormula createFormulaPane() { + return com.fr.design.formula.FormulaFactory.createFormulaPane(); + } + + /** + * 获取可设置导出excel时是否保留公式的公式面板 + * + * @return 公式面板 + */ + public static UIFormula createFormulaPaneWhenReserveFormula() { + return com.fr.design.formula.FormulaFactory.createFormulaPaneWhenReserveFormula(); + } +}