|
|
|
We found that the rounding should be changed, too.
The behaviour could be configured using the following snippet: We recommend to provide a improved UI class that let it configure with an appropriate setter on the ULC side. public static class UICustomNumberDataType extends UINumberDataType { public void setMaxFractionDigits(int maxDigits) { fMaxFractionDigits = maxDigits; super.setMaxFractionDigits(maxDigits); } //this function allows rounding on various number of scale New API:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Swing's JFormattedTextField behaves the same way.
You should implement a custom data type if you want to round according to a differend rounding policy.