public static interface CalculatorBox.RangeCheck
Edit ed = new Edit(); ed.rangeCheck = new CalculatorBox.RangeCheck() { public String check(double value) { if (value > 0 && value < 10) return null; return "The value must be between 0 and 10"; } }; ed.setMode(Edit.CURRENCY,true); add(ed,LEFT,TOP);
Modifier and Type | Method and Description |
---|---|
java.lang.String |
check(double value) |