Column Sorting Using SWTDesigner

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Column Sorting Using SWTDesigner

Postby nelsonfernando » Thu Jul 24, 2008 6:50 am

Hi,

We would like to know how SWTDesigner can help me on implementing column sorting given that each row corresponds to single object.

Checking the SWT Examples I saw that I would have to develop a new Comparator for each column which would be not productive.

Thanks for your attention.



PS.: We have 10 licenses of the SWTDesigner (CSHG Brazil)
nelsonfernando
 
Posts: 4
Joined: Mon Jul 14, 2008 5:37 am

Re: Column Sorting Using SWTDesigner

Postby Eric Clayberg » Thu Jul 24, 2008 11:27 am

nelsonfernando wrote:We would like to know how SWTDesigner can help me on implementing column sorting given that each row corresponds to single object.

It won't help you with that at all.

The approach taken in the SWT snippets is generally how this is done since the Table widget itself does not have built-in sorting support.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests