Browse Source

整数控件

pull/11/head
richie 5 years ago
parent
commit
43ecfb0bb1
  1. 26
      src/main/java/com/fanruan/api/design/ui/component/UIIntNumberField.java

26
src/main/java/com/fanruan/api/design/ui/component/UIIntNumberField.java

@ -1,5 +1,29 @@
package com.fanruan.api.design.ui.component;
/**
* 整数控件该控件只能输入整数数字
*/
public class UIIntNumberField extends com.fr.design.gui.itextfield.UIIntNumberField {
public UIIntNumberField(){};
public UIIntNumberField() {
}
/**
* 获取整数数值
*
* @return 整数值
*/
public int getInt() {
return (int) getValue();
}
/**
* 设置整数数值
*
* @param value 整数值
*/
public void setInt(int value) {
setValue(value);
}
}

Loading…
Cancel
Save