Integrated: 8235491: Tree/TableView: implementation of isSelected(int) violates contract
Andy Goryachev
angorya at openjdk.org
Tue Aug 23 15:25:38 UTC 2022
On Tue, 19 Jul 2022 22:08:19 GMT, Andy Goryachev <angorya at openjdk.org> wrote:
> 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. modified TreeTableRow.updateSelection() to use the right isSelected() method
> 4. updated tests for Tree/TableView
>
> NOTE: proposed change alters semantics of isSelected(int) method (in the right direction, in my opinion).
This pull request has now been integrated.
Changeset: 7cb8d679
Author: Andy Goryachev <angorya at openjdk.org>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/7cb8d679dc2aa96b7c9a2bd60983ab74aa275967
Stats: 325 lines in 8 files changed: 285 ins; 9 del; 31 mod
8235491: Tree/TableView: implementation of isSelected(int) violates contract
Reviewed-by: aghaisas, fastegal, kcr
-------------
PR: https://git.openjdk.org/jfx/pull/839
More information about the openjfx-dev
mailing list