|Re: Creating a custom control and viewer [message #635498 is a reply to message #635447]
||Wed, 27 October 2010 07:02
| Cedric Moonen
Registered: August 2009
Thanks for your answer. In fact, no it's not really like the Gallery from Nebula (I downloaded it to have an example of a custom control).
It is something very specific to my needs: it is something similar as you see in roleplaying video games. You have a list of characters represented by their images, the name of the character on top of the image and some properties of the character below the image (like attacks, defenses, skills, ...) displayed as text. Then, on the image itself you have some icons representing the effects that are currently affecting them. And probably next to the image would be a bar representing the hit points of the character.
I am doing this on a spare time project in order to improve my skills in SWT/JFace (I'm really interested in learning more on how to create custom controls).
So, the gallery widget from Nebula is not a match for my requirements here. Maybe the use of Viewer is unnecessary here, but I will anyway need some kind of controller. I liked the Viewer approach because it automatically manages the changes in the model and the user has only to write a label provider and a content provider.
Of course here the case is much more complex since an entry in my widget is made of several elements.
I was wondering which approach to take in order to handle this problem. I'm not looking for a full solution, only advices on what is a good approach for this (as I said, my main concern is to learn how to do this properly).
Powered by FUDForum
. Page generated in 0.01884 seconds