custom list viewer [message #447242] |
Thu, 09 December 2004 14:37 |
Eclipse User |
|
|
|
Hi folks,
I'd like to create a custom list to display more complicated
data then just text and icons. Preferably directly some kind
of widgets. Is it possible? Or even present somewhere in
swt/jface?
I thought of the following:
The List consists of ListItems, each list item implements the
IListItem interface.
Upon displaying, each list item tells the list how much space
(horizontal) it needs and the list makes sure each list item
gets painted.
Why? I want to display some information about the history of
files, their versions, description, dates when they were
changed/modified etc. Each change is displayed in a litle box
with a border, when clicked on the title (or whatever there
may be) the box expands and displays aditional imformation
(description, date, changelog etc).
Nothing fancy, just a decent border (without title) and a
uniform background color, a little space between the boxes.
And a scroll bar on the right side of the whole thing.
It's a pitty opengl isn't included in swt (mostly because
I'm not familiar with the swt internals and I don't know how
to draw a line with a custom color), but in opengl, it would
need only two filled triangles and a LINE_LOOP around the
whole thing... and some text of course.
Something like the following:
+-----------------------------------------------+
| title here version 1.24 |
| some more text here |
| description here date here |
+-----------------------------------------------+
+-----------------------------------------------+
| + click here to expand version 1.23 |
+-----------------------------------------------+
+-----------------------------------------------+
| + click here to expand version 1.14 |
+-----------------------------------------------+
+-----------------------------------------------+
| + click here to expand version 1.10 |
+-----------------------------------------------+
Does anyone has an idea how to do it?
thanks
tom
|
|
|
Powered by
FUDForum. Page generated in 0.11881 seconds