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
Regular Contributor
naveen1989
Posts: 56
Registered: ‎09-14-2011
My Device: 9000

Make List-field without using implement ListFieldCallback

Hi

please how to make listfied(in which one image + Text + one checkbox) is inserted without implement ListFieldCallback ..?

 

From my view we will take just like custom buttons.

 

Regards

Developer
lakshman9687
Posts: 243
Registered: ‎07-22-2011
My Device: BlackBerry Z10

Re: Make List-field without using implement ListFieldCallback

Hi,

 

It is possible by using managers, take one custom class extends manager and add what ever you want .

 

 

Regards,

Lakshman K

----------------------------------------------------------
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.

Regular Contributor
naveen1989
Posts: 56
Registered: ‎09-14-2011
My Device: 9000

Re: Make List-field without using implement ListFieldCallback

Hi 

 

But listfield is expendable and how to find which row is clicked .Do you have any sample code.? 

Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Make List-field without using implement ListFieldCallback

you cannot use listfield without listfieldcallback.
----------------------------------------------------------
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
Regular Contributor
naveen1989
Posts: 56
Registered: ‎09-14-2011
My Device: 9000

Re: Make List-field without using implement ListFieldCallback

Hi
there must be possibility ...Actually someone ask me this Question in interview ......
Developer
simon_hain
Posts: 16,282
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport

Re: Make List-field without using implement ListFieldCallback

from the API docs:
A ListField must register a class that implements the ListFieldCallback interface using the setCallback method before the class can be used

is that ambiguous? no. but feel free not to believe me nor the API docs...
----------------------------------------------------------
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
Regular Contributor
naveen1989
Posts: 56
Registered: ‎09-14-2011
My Device: 9000

Re: Make List-field without using implement ListFieldCallback

is it not necessary to use list field class , use any anything but show data in row just same as listfield( image+ over image some text +check box)+field should be expandable same size as vector in which data is stored.
Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Make List-field without using implement ListFieldCallback

What you want to do is possible, but you have to put some effort in to it.  The best approach from what I have seen would be for you to create your own Field.  Here is a KB article to help.  

 

http://supportforums.blackberry.com/t5/Java-Development/Create-custom-fields/ta-p/444962

 

You will find further help if you search the forum - look for "custom field". 

 

While not specifically targeting your requirement, I recommend that review these samples.  They demonstrate some well written custom Fields, that should provide you with an understanding of how to do things like you want. 

 

http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-manage...

 

So have a go at creating something.  Good luck.