Thanks for the quick reply!
With regards to the sort comparator used for the sorted list, would I use the same comparator *TreeFormat (in your example SimpleBeanTreeFormat)?
Also, if the chain of events is:
BasicEventList -> SortedList -> ObservableElementList -> TreeList
At which level would I apply the GlazedListsSwing.swingThreadProxyList() and the GlazedLists.threadSafeList()? Should I be applying these at the lowest level (i.e. BasicEventList), or at the highest level (i.e TreeList)?
And one more point with regards to chaining Lists together, is there a standard way that one list must be chained to the next? Or is it a free-for-all in the order that you chain lists together?
Cheers!
If you add a SortedList upstream of your TreeList, you'll get sorted output.
SortedList -> TreeList
dingwa wrote:
Hi,
How is it possible to sort TreeLists? When I add rows to the tree list they seem be be inserted into an arbitrary position. I am wanting to control the position of any new rows that are inserted into the TreeList (i.e. at the top of the table)
Would I have either have to insert the row into the TreeList and then sort the list so the newly inserted row is at the top? Or is it even possible to insert the top level expandable row at a specified position?
Cheers!