Tuesday, March 24, 2009

Code : ListField with check boxes


Code The default implementation of a ListField on a BlackBerry device will display text in a number of selectable rows. It is possible to expand on this behaviour and allow an application to add a series of check boxes to the list. This can provide a visual indication to the user of rows that have some significance to the application. In the attached sample application, check boxes are added to the left side of a ListField. The boxes can be checked and unchecked by highlighting the appropriate row and by either pressing the SPACEBAR or selecting Change Option from the menu. Here is a screenshot of what the list looks like with the first row highlighted on a BlackBerry 7290 Wireless Handheld™ with BlackBerry Device Software 4.1.


To download the source code of this application, see the CheckboxListField.zip file.

5 comments:

  1. It's looks very nice.
    Hence i am new in this field i didn't get any
    thing to read.
    Can u post some doc so new developer can get he help.

    ReplyDelete
  2. Hi Dear,
    Nice piece of code.
    I want to extend this work for KeywordFilterField.
    I used an existing KeywordFilterField displaying a sorted list of object and filtering the items after entering the text.
    Now I want to add the check box i.e your option.
    and I added to it as well.
    but the problem is I could not filter the items after adding and implementing ListFieldCallback and setting _keywordFilterField.setCallback(this);
    Can you please help in this regard.
    I can send you the source code if you think so.
    Kind Regards
    Asim Ali
    soroya @ gmail.com

    ReplyDelete
  3. HI
    Nice blog i like it
    This fame led to the gradual development of Blackberry Applications and Software Market that has made this industry an ever growing and advancing field of survival.

    ReplyDelete
  4. Nice set of tutorials. Also, find the tutorials to download image over HTTP in blackberry here.
    http://objectechenica.blogspot.com/2012/02/downloading-image-over-http-in.html

    ReplyDelete
  5. hi,the tutorial is good.but using this example i need to add two more string[] data to the listfield along with that string[] and checkbox.can anybody tell how to do it.i serached a lot but i did nt find any solution.

    ReplyDelete

Place your comments here...