开发者

how to make edit field accept number up to two decimal value in blackberry

开发者 https://www.devze.com 2023-04-09 04:15 出处:网络
I wan开发者_StackOverflow社区t to accept a number in edit Field up to two decimal value(for example 123.34).I am using

I wan开发者_StackOverflow社区t to accept a number in edit Field up to two decimal value(for example 123.34).I am using new EditField(EditField.FILTER_REAL_NUMERIC); and new EditField(EditField.FILTER_INTEGER);

How can i do this

thank you


Extend NumericTextFilter class and override validate() method to conform your rules. And set the customized filter instance to your field via setFilter() method.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号