How do I hide data/field in a List in J2ME

Posted by pi on Stack Overflow See other posts from Stack Overflow or by pi
Published on 2010-04-29T06:22:07Z Indexed on 2010/04/29 6:27 UTC
Read the original article Hit count: 266

Filed under:
|

Hi, I am working on a J2ME app which has dynamically generated Lists. Items on this list may be consequently selected, and the selection processed within the commandAction block.

Is there a way to have the IDs of variables populating the List (from a remote database) included in the List item definition as in:

this.append("A", null);
this.append("B", null);

or:

String[] arrayOfValues = {"A", "B"};
new List("Menu", List.IMPLICIT, arrayOfValues, null);

such that when an item is selected, perhaps A, I can also have its database ID for perhaps further processing. Is it possible to hide a field/data? Thanks.

© Stack Overflow or respective owner

Related posts about j2me

Related posts about lists