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

Richard Bair richard.bair at
Fri Jan 18 10:16:39 PST 2013

>>> * How will the developer know that the WrapperList is the list to be used?
>> It somewhat depends. If I had it to do over, I might have started off with a control specific implementation of ObservableList as the model for the control. Maybe that is still a way to go, such that although you can specify any ObservableList you want, we default to a TableViewModel (instance of ObservableList) and have a TableViewModel class in the control package. It would be fairly natural and discoverable in that case.
> So you propose having setItems(TableViewModel model) and deprecate setItems(ObservableList model) or handle it internaly in some "if ( items instanceof TableViewModel)" ? Or have both methods?

instanceof was the thought to avoid deprecation.


More information about the openjfx-dev mailing list