RFR: 8235491: Tree/TableView: implementation of isSelected(int) violates contract

Kevin Rushforth kcr at openjdk.org
Tue Jul 19 22:42:47 UTC 2022


On Tue, 19 Jul 2022 22:08:19 GMT, Andy Goryachev <angorya at openjdk.org> wrote:

> …ontract
> 
> 1. reword SelectionModel.isSelected(int) javadoc, removing incorrect statement "Is functionally equivalent to calling <code>getSelectedIndices().contains(index)</code>." 
> 2. reimplement TableView.isSelected(int) method to return true when at least one cell in *any* column is selected on the given row (was: *all* columns)
> 3. change selectRowWhenInSingleCellSelectionMode() and selectRowWhenInSingleCellSelectionMode2() in TableViewSelectionModelImplTest to reflect new reality.
> 
> NOTE: proposed change alters semantics of isSelected(int) method (in the right direction, in my opinion).

Because there is a spec change, and a behavioral change, this needs a CSR. What are the implications of this change on applications?

-------------

PR: https://git.openjdk.org/jfx/pull/839


More information about the openjfx-dev mailing list