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
Contributor
Posts: 41
Registered: ‎01-19-2011
My Device: Not Specified

Display Thumbnail View and make selectable

Hi guys

 

 I need to display my images in thumbnail View and select the file to View in Full Size.

I had used GridFieldManager and added my Bitmap image into that

 

it displays all my images perfectly, but there is no selection available.

 

How can i acheive selection and get the selected File index or name to view the Full Size image of that?

 

Your help is highly appreciated

 

thanks

Vinoopraj

Developer
Posts: 713
Registered: ‎05-31-2010
My Device: 8520
My Carrier: Movistar

Re: Display Thumbnail View and make selectable

Add the style Focusable to your BitmapFields

Contributor
Posts: 41
Registered: ‎01-19-2011
My Device: Not Specified

Re: Display Thumbnail View and make selectable

I cant get selected Bitmap Image index to populate its Full View ...

 

This is my code

 

 

FlowFieldManager flowFieldManager = new FlowFieldManager();
for(int i= 1;i <=100;i++)
        {
        Bitmap img1 = getBanner("img"+i+"_t.jpg", "thumbnail");        	 
        	 BitmapField bfm = new BitmapField(img1,BitmapField.FOCUSABLE);
        	 bfm.setSpace(4, 4);        	 
        	 bfm.select(true);
        	 bfm.setEnabled(true);
        	 bfm.setEditable(true);        	
        	 flowFieldManager.add(bfm);
        } 
        
    	flowFieldManager.setChangeListener(this);     	
    	flowFieldManager.setEnabled(true);
    	flowFieldManager.setEditable(true);
    	flowFieldManager.select(true);  
    	add(flowFieldManager);

 

 

Which  event want  to fire when i click the selected Bitmap Image ?

 

Your help is highly appreciated

Vinoopraj

Contributor
Posts: 41
Registered: ‎01-19-2011
My Device: Not Specified

Re: Display Thumbnail View and make selectable

 

ya got it by using this..

 

flowFieldManager.getFieldWithFocusIndex()

 

thanks