ID should be display as Integer in ZK NumberEditor

This commit is contained in:
longnan 2012-04-05 23:21:25 +08:00
parent 1894fa898f
commit deef7564be
1 changed files with 3 additions and 1 deletions

View File

@ -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());