Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Gallery Item Selection
Gallery Item Selection [message #579283] Thu, 01 March 2007 06:33
Swetha is currently offline SwethaFriend
Messages: 68
Registered: July 2009
Member
Hi All,

I am using the Gallery Widget for displaying the list of
contents(folders and files) just like a Windows explorer kind of thing...

If I select a particular folder, the contents of that folder is getting
displayed ,the problem is it is not clearing the selection even after I
placed deselectAll() method;

Here is the code...for constructGallery on click of folder.


private void constructGallery(CustomerModel domain)
{
gallery.clearAll();
gallery.deselectAll();
i1 = new GalleryItem(gallery, SWT.NONE);
i1.setText(domain.toString());
if (domain.child != null)
{
for (int i = 0; i < domain.child.size(); i++)
{
GalleryItem i2 = new GalleryItem(i1, SWT.NONE);
// Your image here
i2.setImage(Util.getImageRegistry().get("galleryImage"));
i2.setText(domain.child.get(i).toString());
gallery.deselectAll();
}
}
gallery.deselectAll();

}


Thanks in advance,
Swetha
Previous Topic:Selecting a tree node
Next Topic:Gallery Item Selection
Goto Forum:
  


Current Time: Sat Apr 27 00:23:30 GMT 2024

Powered by FUDForum. Page generated in 0.02623 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top