ID should be display as Integer in ZK NumberEditor
This commit is contained in:
parent
1894fa898f
commit
deef7564be
|
@ -115,7 +115,9 @@ public class WNumberEditor extends WEditor implements ContextMenuListener
|
|||
getComponent().getDecimalbox().setCols(displayLength);
|
||||
}
|
||||
|
||||
if (!DisplayType.isNumeric(displayType))
|
||||
if (DisplayType.isID(displayType))
|
||||
displayType = DisplayType.Integer;
|
||||
else if (!DisplayType.isNumeric(displayType))
|
||||
displayType = DisplayType.Number;
|
||||
DecimalFormat format = DisplayType.getNumberFormat(displayType, AEnv.getLanguage(Env.getCtx()));
|
||||
getComponent().getDecimalbox().setFormat(format.toPattern());
|
||||
|
|
Loading…
Reference in New Issue