changeset 7536:d287605a963d

[Accessibility] fix RT-37610, initially applied to TableView, is also needed in TreeTableView
author Felipe Heidrich <felipe.heidrich@oracle.com>
date Wed, 16 Jul 2014 14:08:49 -0700
parents 026e6a18af35
children 2bd100a12f7c
files modules/controls/src/main/java/javafx/scene/control/TreeTableView.java
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/javafx/scene/control/TreeTableView.java	Wed Jul 16 14:07:15 2014 -0700
+++ b/modules/controls/src/main/java/javafx/scene/control/TreeTableView.java	Wed Jul 16 14:08:49 2014 -0700
@@ -2916,9 +2916,6 @@
         private void updateSelectedIndex(int row) {
             setSelectedIndex(row);
             setSelectedItem(getModelItem(row));
-
-            /* Does this get all the change events ? */
-            getTreeTableView().notifyAccessibleAttributeChanged(AccessibleAttribute.SELECTED_CELLS);
         }
         
         @Override public void focus(int row) {
@@ -2933,6 +2930,7 @@
             if (getTreeTableView().getFocusModel() == null) return;
 
             getTreeTableView().getFocusModel().focus(pos.getRow(), pos.getTableColumn());
+            getTreeTableView().notifyAccessibleAttributeChanged(AccessibleAttribute.SELECTED_CELLS);
         }
 
         @Override public int getFocusedIndex() {