« Return to Thread: [Issue 474] New - Table view indexes mismatched with model indexes

[Issue 474] Table view indexes mismatched with model indexes

by kikonen-2 :: Rate this Message:

Reply to Author | View in Thread

https://glazedlists.dev.java.net/issues/show_bug.cgi?id=474






------- Additional comments from kikonen@... Tue May 26 21:30:58 +0000 2009 -------
Figured out workaround:

- Had to override completely (i.e. copy/paste code)
  * SortingState
    ~ has Map<modelIndex, SortingColumn>
  * TableComparatorChooser
  * MouseSortingStrategy
- Add new interface to get model indexes from table format
  * SortableTableFormat{ int[] getModelIndexes(); }

Important point is that model indexes can be arbitary integer values (ex. 10,
12, 100, 7500) so Map is required.


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...

 « Return to Thread: [Issue 474] New - Table view indexes mismatched with model indexes