Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » custom list viewer
custom list viewer [message #447242] Thu, 09 December 2004 19:37
Tomas Carnecky is currently offline Tomas CarneckyFriend
Messages: 11
Registered: July 2009
Junior Member
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

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?

Previous Topic:Messenger Style Notifications
Next Topic:Why control's appearance looks different?
Goto Forum:

Current Time: Fri May 14 20:31:29 GMT 2021

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

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

Back to the top