changeset 7035:01d454dab4f2

RT-37052 Regression: TableView single selects on multiple selection DND Reviewed by: jgiles
author Martin Sladecek <martin.sladecek@oracle.com>
date Thu, 15 May 2014 09:56:25 +0200
parents cc419fb66f71
children 1174087bb560
files modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/CellBehaviorBase.java modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableCellBehaviorBase.java
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/CellBehaviorBase.java	Thu May 15 09:54:31 2014 +0200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/CellBehaviorBase.java	Thu May 15 09:56:25 2014 +0200
@@ -127,7 +127,7 @@
         if (e.isSynthesized()) {
             latePress = true;
         } else {
-            latePress  = getControl().isSelected();
+            latePress  = isSelected();
             if (!latePress) {
                 doSelect(e.getX(), e.getY(), e.getButton(), e.getClickCount(),
                         e.isShiftDown(), e.isShortcutDown());
@@ -295,4 +295,8 @@
             }
         }
     }
+
+    protected boolean isSelected() {
+        return getControl().isSelected();
+    }
 }
--- a/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableCellBehaviorBase.java	Thu May 15 09:54:31 2014 +0200
+++ b/modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/TableCellBehaviorBase.java	Thu May 15 09:56:25 2014 +0200
@@ -221,7 +221,8 @@
         return -1;
     }
 
-    private boolean isSelected() {
+    @Override
+    protected boolean isSelected() {
         TableSelectionModel<S> sm = getSelectionModel();
         if (sm == null) return false;