Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT and Renderers


Moira, there are no renderers in SWT.  Yes, you would need to explicitly change the text field in every item.  JFace is the layer above SWT that provides this kind of abstraction.



"Moira Robertson" <moirafish@xxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

01/23/03 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
 


Back to the top