Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Posts: 83
Registered: ‎02-22-2009
My Device: Not Specified
Accepted Solution

how to set editfield default input numerical ?

how to set editfield default  input numerical ?
Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: how to set editfield default input numerical ?

[ Edited ]

Example:

 

BasicEditField bef = new BasicEditField(BasicEditField.FILTER_NUMERIC);

 

You can set the setFilter method also.

 

BasicEditField bef = new BasicEditField() ;

bef.setFilter(TextFilter.get(TextFilter.NUMERIC));

Message Edited by BBDeveloper on 09-04-2009 03:08 PM

Use Search. "Accept Solution" If the problem is resolved.
New Developer
Posts: 3
Registered: ‎01-12-2010
My Device: 8330
My Carrier: Verizon

Re: how to set editfield default input numerical ?

How can this be done for a Html INPUT control?

 

-Alex