forked from fanruan/finekit
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
521 B
29 lines
521 B
package com.fanruan.api.design.ui.component; |
|
|
|
/** |
|
* 整数控件,该控件只能输入整数数字 |
|
*/ |
|
public class UIIntNumberField extends com.fr.design.gui.itextfield.UIIntNumberField { |
|
|
|
public UIIntNumberField() { |
|
|
|
} |
|
|
|
/** |
|
* 获取整数数值 |
|
* |
|
* @return 整数值 |
|
*/ |
|
public int getInt() { |
|
return (int) getValue(); |
|
} |
|
|
|
/** |
|
* 设置整数数值 |
|
* |
|
* @param value 整数值 |
|
*/ |
|
public void setInt(int value) { |
|
setValue(value); |
|
} |
|
}
|
|
|