Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Gallery Item event listeners
Gallery Item event listeners [message #47966] Mon, 28 January 2008 16:38 Go to next message
Stavros Kounis is currently offline Stavros Kounis
Messages: 15
Registered: July 2009
Junior Member
hi all

I'm trying listen to "mouse down" or/and other events on Nebula GalleryItem

<snip>
GalleryItem item = new GalleryItem(group, SWT.NONE);
....
....
item.addListener(SWT.MouseDown, new Listener(){
public void handleEvent(Event event) {
// TODO Auto-generated method stub
System.out.println("event on item handled...");
}
});
</snip>

unfortunately handleEvent is never called. My GalleryItem belongs to a group
where group
is a GalleryItem belongs to a Gallery
(GalleryItem group = new GalleryItem(gallery, SWT.NONE);)

Is somenthing i'm missing here or event handling is not yet implemented ?

thank you

Stavros
Re: Gallery Item event listeners [message #49571 is a reply to message #47966] Wed, 20 February 2008 03:35 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
Messages: 179
Registered: July 2009
Senior Member
Hi,

MouseDown is not yet implemented. You can use the Selection event to
track item selection in a gallery.

If you need a particular event, please open a bug.

--
Nicolas

Stavros Kounis a écrit :
> hi all
>
> I'm trying listen to "mouse down" or/and other events on Nebula GalleryItem
>
> <snip>
> GalleryItem item = new GalleryItem(group, SWT.NONE);
> ...
> ...
> item.addListener(SWT.MouseDown, new Listener(){
> public void handleEvent(Event event) {
> // TODO Auto-generated method stub
> System.out.println("event on item handled...");
> }
> });
> </snip>
>
> unfortunately handleEvent is never called. My GalleryItem belongs to a group
> where group
> is a GalleryItem belongs to a Gallery
> (GalleryItem group = new GalleryItem(gallery, SWT.NONE);)
>
> Is somenthing i'm missing here or event handling is not yet implemented ?
>
> thank you
>
> Stavros
>
>
Re: Gallery Item event listeners [message #588633 is a reply to message #47966] Wed, 20 February 2008 03:35 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
Messages: 179
Registered: July 2009
Senior Member
Hi,

MouseDown is not yet implemented. You can use the Selection event to
track item selection in a gallery.

If you need a particular event, please open a bug.

--
Nicolas

Stavros Kounis a écrit :
> hi all
>
> I'm trying listen to "mouse down" or/and other events on Nebula GalleryItem
>
> <snip>
> GalleryItem item = new GalleryItem(group, SWT.NONE);
> ...
> ...
> item.addListener(SWT.MouseDown, new Listener(){
> public void handleEvent(Event event) {
> // TODO Auto-generated method stub
> System.out.println("event on item handled...");
> }
> });
> </snip>
>
> unfortunately handleEvent is never called. My GalleryItem belongs to a group
> where group
> is a GalleryItem belongs to a Gallery
> (GalleryItem group = new GalleryItem(gallery, SWT.NONE);)
>
> Is somenthing i'm missing here or event handling is not yet implemented ?
>
> thank you
>
> Stavros
>
>
Previous Topic:Suggestions for display of editable and non-editable cells in Grid
Next Topic:Gallery : NullPointerException at clearAll()
Goto Forum:
  


Current Time: Thu Apr 17 00:06:56 EDT 2014

Powered by FUDForum. Page generated in 0.01618 seconds