Summary: | Add indicator for multi column sorting | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] Platform | Reporter: | Stefan Lötscher <stefan.loetscher> | ||||
Component: | SWT | Assignee: | Steve Northover <steve_northover> | ||||
Status: | NEW --- | QA Contact: | |||||
Severity: | enhancement | ||||||
Priority: | P3 | CC: | andreas, b.michael, daniel.kruegler, laeubi, mike.rumpf, mlists, philip.wenig, Silenio_Quarti, steve_northover, veronika_irvine | ||||
Version: | 3.2 | ||||||
Target Milestone: | --- | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Stefan Lötscher
2006-03-24 09:43:12 EST
Created attachment 36886 [details]
Multicolumn sorting example (wihout native indicator support)
Visualization of multi column sort indicator not done in table itself. Order of columns in drop-down indicate the sort order.
Not sure what this is. Is it a request for a popup menu? (In reply to comment #0) No, it has nothing to do with a popup menu. The screen shot is just an example how we visualized the order of the sorting if you have more than one column sorted a the same time. The thougt is that we need an interface on the Table class that looks as follows to support multi column sorting with native sort indicators. <code> public TableColumn[] getSortColumns(); public void setSortDirection(int sortDirection, int columnIndex); public void addSortColumn (TableColumn column); public removeSortColumn (TableColumn column); Ok, I understand. VI or SSQ, which platform had the restriction that there could only be a single sort column? (In reply to comment #3) [..] > The thougt is that we need an interface on the Table class that looks as > follows to support multi column sorting with native sort indicators. > > <code> > public TableColumn[] getSortColumns(); > public void setSortDirection(int sortDirection, int columnIndex); > public void addSortColumn (TableColumn column); > public removeSortColumn (TableColumn column); Basically I agree, but I strongly suggest that at least additional a setter void setSortColumns(TableColumn[] columns); is provided. This is much more powerful than add/removeColumn and history shows that usually such a request will follow later. Just have a look at StructuredViewer#setFilters compared to StructuredViewer#addFilter/StructuredViewer#removeFilter. May I ask if there is any progress on this? |