Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
AW: [riena-dev] TableRidget Sorting Behaviour

Hi Rolf,

it is intentional. 

There are two reasons why the sorting direction carries over to another column: 

(a) it's common: the existing swing framework and the windows file explorer follow the same pattern 

(a) the sorting direction is a property of the table not of the column. This is expressed by the API, that is setSortedAscending(isAscending) and not setSortedAscending(column, isAscending).

Hope this helps,
Elias.


-----Ursprüngliche Nachricht-----
Von: riena-dev-bounces@xxxxxxxxxxx [mailto:riena-dev-bounces@xxxxxxxxxxx] Im Auftrag von r.paulsen@xxxxxx
Gesendet: Wednesday, October 08, 2008 12:11
An: riena-dev@xxxxxxxxxxx
Betreff: [riena-dev] TableRidget Sorting Behaviour

Hi Riena committers,

I tried code-Snippet SnippetTableRidget002 and saw the following unexpected behavior (Using TableRidget and TableRidgetLabelProvider from HEAD):

1. Sorting ascending (UP) shows the "v"-triangel in the column-header ("^" expected), descending the "^" ("v" expected)

2. When sorting descending, the direction descending is kept even when another column is selected (I expect sorting ascending as initial direction on selection of different column)

I'm not sure if it's a feature.

Thanks and regards,
Rolf
________________________________________________________________________
Schon gehört? Bei WEB.DE gibt' s viele kostenlose Spiele:
http://games.entertainment.web.de/de/entertainment/games/free/index.html

_______________________________________________
riena-dev mailing list
riena-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/riena-dev


Back to the top