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
Developer
ankur_siwach
Posts: 148
Registered: ‎09-28-2012
My Device: Blackberry Developer

how to get text of a list

Hello,

 

i have a list using ListStyleButtonField, how can i get the text of a seleted list item,

 

Thanx


----------------------------------------------------------
Feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: how to get text of a list

as the field is not in the standard api you should link it here:
https://github.com/blackberry/Samples-for-Java/blob/master/Advanced%20UI/src/com/samples/toolkit/ui/...

you get a fieldchanged event with the field, you can use the methods that field provides to read its values.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter