Gallery Item Selection [message #579283] |
Thu, 01 March 2007 06:33 |
Swetha 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
|
|
|
Powered by
FUDForum. Page generated in 0.02623 seconds