Thanks, the TableViewer looks almost exactly like
JTable in Swing, just what i need to use...
OK, I'll check out what subjects should be posted
where :-)
----- Original Message -----
Sent: Thursday, January 23, 2003 10:02
PM
Subject: Re: [platform-swt-dev] SWT and
Renderers
Moira,
swt itself doesn't have a model layer since its goal is
to be as close to the platform as possible. You'll find what you're
looking for at the jface level, in particular the TableViewer class. It
can take any object as a model and you give it providers which determine the
table's content as desired.
Note
that in the future questions like this are better asked in the Eclipse
newsgroup.
Grant
| "Moira Robertson"
<moirafish@xxxxxx> Sent by: platform-swt-dev-admin@xxxxxxxxxxx
01/23/2003 03:07 PM Please respond to platform-swt-dev
| To:
<platform-swt-dev@xxxxxxxxxxx> cc:
Subject: [platform-swt-dev] SWT
and Renderers
|
I have a Swing background, and I'm having
trouble understanding the concept of Trees in SWT In SWT, TableItem is used to fill a Table with data. In Swing, i was
able to have a data model that could be rendered to the table in different
ways. In SWT, if i want data to
be shown differently in a Table, i have to change the contents of each
TableItem.
For example, if i have a list of dates as longs, i may want
to display them in a format that is dependable on user preference. Do I have
to go through each TableItem changing the text field?
Have i understood
this correctly?
Cheers, Moira
|