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
Posts: 55
Registered: ‎05-30-2011
My Device: BlackBerry torch 9800
My Carrier: Airtel

How to gain Focus on a particular field....in a list field manager?

[ Edited ]

Hi ,

 

In my demo app, there is a screen which contains a listfield..

 

One row of list-field contains three fields.... as follows...... button, editfield, editfield.

 

 9530.png

 

by default list field provide focus on a row (as a whole), and not to a single field on a single row....

 

9530-01.png

 

 

how to get the focus on the button or edit fileds separatly.... Is this possible in list field???

 

thnks.

 

 

 

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to gain Focus on a particular field....in a list field manager?

as you already recognized, listfields provide the focus per row.
if you want a different behavior you'll have to use a different field or rather manager.
(you cannot put other fields in a listfield btw)
----------------------------------------------------------
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
Developer
Posts: 55
Registered: ‎05-30-2011
My Device: BlackBerry torch 9800
My Carrier: Airtel

Re: How to gain Focus on a particular field....in a list field manager?

I used Manager class to create a single row.........of list field...and this manager contains three fields....one button and two editfields.

 

so is there no method to customize the behaviour of list field...???

Developer
Posts: 16,676
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to gain Focus on a particular field....in a list field manager?

that is not the way a listfield should be used.
you draw a row using drawListRow, and that's it.

you can use a manager or combination of managers if you want, but listfield offers the best performance for long lists.
----------------------------------------------------------
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