TableView filtering and sorting (was Re: FilteredList/SortedList)

Richard Bair richard.bair at oracle.com
Fri Jan 18 10:02:20 PST 2013


> Werner Lehmann writes:  "Generally speaking, it would be nice to be able
> to set the sorting arrows on columns manually, without getting automatic
> sort behaviour."
> 
> +1 All we really need to be able to do is to set the arrows manually,
> and register for a callback when the user clicks in the column headers.
> As developers, we should be able to decide how we want to handle that
> callback.  If we decide to sort the list, the TableView will see that
> the list has changed and redraw itself accordingly.  
> 
> Perhaps you could move the sorting functionality you have now into a
> default handler that responds to mouse clicks in the header by changing
> the arrows and sorting the list.  But that default can be replaced by
> the developer.  Then there would no longer be a need to make a
> distinction inside TableView between view and model indexes.

I agree I think that having this as pluggable behavior is the right thing to do. Jonathan, is there already a JIRA for it?

Richard


More information about the openjfx-dev mailing list