From 76bb3b07956a8b583528ee1e17d62507274f79f2 Mon Sep 17 00:00:00 2001 From: richie Date: Wed, 28 Aug 2019 21:06:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E5=AD=97=E6=96=87=E6=9C=AC=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../design/ui/component/UINumberField.java | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 src/main/java/com/fanruan/api/design/ui/component/UINumberField.java diff --git a/src/main/java/com/fanruan/api/design/ui/component/UINumberField.java b/src/main/java/com/fanruan/api/design/ui/component/UINumberField.java new file mode 100644 index 0000000..22db55d --- /dev/null +++ b/src/main/java/com/fanruan/api/design/ui/component/UINumberField.java @@ -0,0 +1,45 @@ +package com.fanruan.api.design.ui.component; + +/** + * @author richie + * @version 10.0 + * Created by richie on 2019-08-28 + * 数字文本框 + */ +public class UINumberField extends com.fr.design.gui.itextfield.UINumberField { + + /** + * 默认的数字文本框,限制最大的输入整数位数为32位,限制最大的小数输入位数为16位 + */ + public UINumberField() { + super(); + } + + /** + * 默认的数字文本框,限制最大的输入整数位数为32位,限制最大的小数输入位数为16位 + * @param columns 最大的文本输入列数 + */ + public UINumberField(int columns) { + super(columns); + } + + /** + * 限制整数和小数位数的数字文本框 + * @param maxIntegerLength 最大整数位数 + * @param maxDecimalLength 最大小数位数 + */ + public UINumberField(int maxIntegerLength, int maxDecimalLength) { + super(maxIntegerLength, maxDecimalLength); + } + + /** + * 限制整数和小数位数、最大值以及最小值的数字文本框 + * @param maxIntegerLength 最大整数位数 + * @param maxDecimalLength 最大小数位数 + * @param minValue 最小值 + * @param maxValue 最大值 + */ + public UINumberField(int maxIntegerLength, int maxDecimalLength, double minValue, double maxValue) { + super(maxIntegerLength, maxDecimalLength, minValue, maxValue); + } +}