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

Andy Goryachev angorya at openjdk.org
Thu Jul 21 21:10:11 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.TableViewSelectionModel.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).

Kevin:
Proposed CSR - JDK-8290741
what would be the "correct fix version"?

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

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


More information about the openjfx-dev mailing list