From b88c0f774d89919e013232d864d91ee9bb54bcf8 Mon Sep 17 00:00:00 2001 From: richie Date: Wed, 28 Aug 2019 20:54:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=AC=E5=BC=8F=E6=96=87=E6=9C=AC=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/formula/UIFormulaTextField.java | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 src/main/java/com/fanruan/api/design/ui/component/formula/UIFormulaTextField.java diff --git a/src/main/java/com/fanruan/api/design/ui/component/formula/UIFormulaTextField.java b/src/main/java/com/fanruan/api/design/ui/component/formula/UIFormulaTextField.java new file mode 100644 index 0000000..0faaf7f --- /dev/null +++ b/src/main/java/com/fanruan/api/design/ui/component/formula/UIFormulaTextField.java @@ -0,0 +1,40 @@ +package com.fanruan.api.design.ui.component.formula; + +import com.fr.design.formula.TinyFormulaPane; + +/** + * @author richie + * @version 10.0 + * Created by richie on 2019-08-28 + * 带公式选择器的公式输入文本框 + */ +public class UIFormulaTextField extends TinyFormulaPane { + + public UIFormulaTextField() { + + } + + /** + * 设置公式文本框的内容 + * @param text 公式文本 + */ + public void setText(String text) { + populateBean(text); + } + + /** + * 获取公式文本框的内容 + * @return 公式内容 + */ + public String getText() { + return updateBean(); + } + + /** + * 公式窗口点击确定后的事件接口,该方法一般用于重载 + */ + public void okEvent() { + + } + +}