Skip to main content


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 21:38 Go to next message
Stavros Kounis is currently offline Stavros KounisFriend
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 08:35 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
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 08:35 Go to previous message
Nicolas Richeton is currently offline Nicolas RichetonFriend
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: Fri Apr 26 05:54:35 GMT 2024

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

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

Back to the top