BlackBerryForums.com : Your Number One BlackBerry Community
     

»Sponsored Links


BlackBerryApps.com Best Sellers



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
bdowling Offline
Thumbs Must Hurt
 
Posts: 181
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Default TextFilter not working? - 02-06-2007, 08:01 AM

Hi All,

I'm trying to configure an edit field where the user can enter an IP address. I thought the IpTextFilter would do the job:
Code:
ipField = new BasicEditField( "IP Address: ",
   (String) data.get( Options.KEY_IP_SERVER_ADDRESS ) );

ipField.setMaxSize( 15 );
ipField.setFilter( new IPTextFilter() );
screen.add( ipField );
but it seems the filter has no effect! You can type whatever characters you want into the edit field. Have I missed something?

Thanks, Ben
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
bdowling Offline
Thumbs Must Hurt
 
Posts: 181
Join Date: Jan 2007
Model: 8800
Carrier: Orange
Default 02-08-2007, 11:38 AM

Do I need to extend a BasicEditField to get what I want, or can it be done with a TextFilter? If so am I using the wrong filter?

TIA, Ben
   
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2009 BlackBerryFAQ.com, BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of Research In Motion Limited.