TableHeader listener [message #454320] |
Wed, 20 April 2005 11:39 |
Eclipse User |
|
|
|
Originally posted by: elbucho.gmx.de
Is it possible to add a listener to the header of column of a table ? I'm
trying to implement a sort mechanism, that the user can click on the column
header to change form ascending sorting to descending sorting or vice versa.
Is something like this possible ?
|
|
|
|
|
Re: TableHeader listener [message #454457 is a reply to message #454329] |
Thu, 21 April 2005 09:36 |
Eclipse User |
|
|
|
Originally posted by: elbucho.gmx.de
Thanks to both of you. That was it !
"Chad" <cgustafson@chessys.com> wrote in message
news:d45qbj$8r0$1@news.eclipse.org...
>
> Roland
>
> You can add a selection listener to the table column.
>
> TableColumn[] columns = getColumns();
> int i=0;
> for (TableColumn column: columns){
> if (i == 0) {
> i++;
> continue;
> }
> column.addSelectionListener(new SelectionAdapter() ...);
> i++;
> }
>
> Good Luck
> Chad
>
>
> "Roland J
|
|
|
|
Powered by
FUDForum. Page generated in 0.02843 seconds