Browse Source
* commit 'fce2663ab67ff4dc2b125148be0e740ac431fbe5': REPORT-21203 去掉多余的实现接口 REPORT-21203 【水印密度】水印密度框输入特殊符号--,输入小数应该不让允许research/11.0
Hugh.C
5 years ago
2 changed files with 34 additions and 2 deletions
@ -0,0 +1,31 @@ |
|||||||
|
package com.fr.design.gui.ispinner; |
||||||
|
|
||||||
|
import com.fr.design.gui.itextfield.UIIntNumberField; |
||||||
|
import com.fr.design.gui.itextfield.UINumberField; |
||||||
|
|
||||||
|
/** |
||||||
|
* Created by IntelliJ IDEA. |
||||||
|
* Author : Hugh.C |
||||||
|
* Date: 19-08-28 |
||||||
|
* Time: 下午2:19 |
||||||
|
*/ |
||||||
|
public class UnsignedIntUISpinner extends UISpinner { |
||||||
|
|
||||||
|
|
||||||
|
public UnsignedIntUISpinner(double minValue, double maxValue, double dierta) { |
||||||
|
super(minValue, maxValue, dierta); |
||||||
|
} |
||||||
|
|
||||||
|
public UnsignedIntUISpinner(double minValue, double maxValue, double dierta, double defaultValue) { |
||||||
|
super(minValue, maxValue, dierta, defaultValue); |
||||||
|
} |
||||||
|
|
||||||
|
@Override |
||||||
|
protected UINumberField initNumberField() { |
||||||
|
return new UIIntNumberField() { |
||||||
|
public boolean shouldResponseChangeListener() { |
||||||
|
return false; |
||||||
|
} |
||||||
|
}; |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue