Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Gallery with widgets instead of images
Gallery with widgets instead of images [message #61895] Tue, 20 January 2009 09:13 Go to next message
Eclipse User
Originally posted by: mk.nospam.org

Hi,

is it possible to have a Gallery widget display other widgets instead of
images only?

The use-case for this would be some kind of monitoring dashboard that
displays e.g. the performance of several production lines each
visualized by a custom widget with some current numbers, state and
buttons for access to further detailed information.

Thanks in advance for your feedback.

Martin Klinke
Re: Gallery with widgets instead of images [message #61942 is a reply to message #61895] Tue, 20 January 2009 09:41 Go to previous messageGo to next message
Eclipse User
Originally posted by: baboulaz.yahoo.fr

Hi,

I don't thing it is possible for the moment, although such a functionality
would be awesome. It would allow the gallery widget to be used in many
more situations.

Baptiste
Re: Gallery with widgets instead of images [message #62399 is a reply to message #61942] Thu, 29 January 2009 12:54 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
Messages: 179
Registered: July 2009
Senior Member
Hi Martin, Baptiste

This is not supported out of the box, but you can try the following :

- You can create your own ItemRenderer : You can draw whatever you want
instead of an Image and a label. The groupRenderer also be updated to
forward mouse clicks to the item renderer. You can also try to create a
widget and move it to the right possition.

OR add a paint listener to the Gallery : take a look at
CustomDrawSnippet (org.eclipse.nebula.snippets)

- You can use a GridLayout to display widgets like the Gallery widget
does for images. This was what I tried first before creating a custom
widget. Even if using GridLayout and Label to display images is far too
slow, it can be useable for your usecase.

--
Nicolas


baptiste a écrit :
> Hi,
>
> I don't thing it is possible for the moment, although such a
> functionality would be awesome. It would allow the gallery widget to be
> used in many more situations.
> Baptiste
>
Re: Gallery with widgets instead of images [message #593266 is a reply to message #61895] Tue, 20 January 2009 09:41 Go to previous message
baptiste is currently offline baptiste
Messages: 1
Registered: July 2009
Junior Member
Hi,

I don't thing it is possible for the moment, although such a functionality
would be awesome. It would allow the gallery widget to be used in many
more situations.

Baptiste
Re: Gallery with widgets instead of images [message #593464 is a reply to message #61942] Thu, 29 January 2009 12:54 Go to previous message
Nicolas Richeton is currently offline Nicolas Richeton
Messages: 179
Registered: July 2009
Senior Member
Hi Martin, Baptiste

This is not supported out of the box, but you can try the following :

- You can create your own ItemRenderer : You can draw whatever you want
instead of an Image and a label. The groupRenderer also be updated to
forward mouse clicks to the item renderer. You can also try to create a
widget and move it to the right possition.

OR add a paint listener to the Gallery : take a look at
CustomDrawSnippet (org.eclipse.nebula.snippets)

- You can use a GridLayout to display widgets like the Gallery widget
does for images. This was what I tried first before creating a custom
widget. Even if using GridLayout and Label to display images is far too
slow, it can be useable for your usecase.

--
Nicolas


baptiste a écrit :
> Hi,
>
> I don't thing it is possible for the moment, although such a
> functionality would be awesome. It would allow the gallery widget to be
> used in many more situations.
> Baptiste
>
Previous Topic:GridViewer - update scrollbars when programtically setting a column visible
Next Topic:PShelf tabbing trhough Items
Goto Forum:
  


Current Time: Wed Jul 30 23:31:45 EDT 2014

Powered by FUDForum. Page generated in 0.02217 seconds